跳到正文
arXiv:cs.AI· Ahmed Nebli·· 3 小时前

Phase-HDC:用梯度阈值替代优化器历史记录做离散相位学习

Phase-HDC: Replacing Optimizer History with Gradient Thresholds in Discrete Phase Learning

AI 导读

Phase-HDC 提出一种无需存储优化器历史记录的训练方法,每次更新仅让存储角度沿当前梯度符号移动至多一步,且仅当梯度足够大时才触发。在其余条件固定时,它的准确率与使用 6-bit 动量(moments)的 Adam 相当,但存储量少 3 倍;相较标准 float32 Adam 存储少 16–23 倍,相较 8-bit Adam 少 4–6 倍。

正文

View PDF HTML (experimental)

Abstract:Training a compact model often needs far more memory than storing it, because the optimizer keeps its own records of past gradients. For a hyperdimensional classifier whose learned parameters are low-bit angles, which we call a \emph{phase memory}, these records take several times more memory than the model itself. We ask whether such a model can be trained while storing nothing but the model. The proposed method, Phase-HDC, turns each stored angle by at most one step per update, against the sign of its current gradient, and only when that gradient is large enough. We show that this simple rule is the exact solution of a first-order loss model in which every changed parameter pays a fixed cost. When everything except the update rule is held fixed, Phase-HDC matches the accuracy of Adam with 6-bit moments while storing three times less. Across eleven image, tabular, and text datasets, it stores 16--23$\times$ less than standard float32 Adam and 4--6$\times$ less than 8-bit Adam. The price is an average loss of about five accuracy points against float32 Adam, while Phase-HDC is more accurate than 8-bit Adam on six of the eleven datasets, including byte-level text prediction, where 8-bit Adam collapses. Instrumented training runs explain these outcomes. Once parameters must sit on a discrete grid, Adam's moments mainly decide whether a parameter moves at all, a decision that a threshold on the current gradient can make without memory, and coarse quantization of the moments breaks this decision for inputs that the data rarely contain. The storage savings are logical state rather than measured hardware memory.
Subjects: Machine Learning (cs.LG); Artificial Intelligence (cs.AI)
Cite as: arXiv:2610.10630 [cs.LG]
  (or arXiv:2610.10630v1 [cs.LG] for this version)
  https://doi.org/10.48550/arXiv.2610.10630

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Ahmed Nebli [view email]
[v1] Wed, 7 Oct 2026 13:05:15 UTC (256 KB)

来源:arXiv:cs.AI · arxiv.org