arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.22101cs.CLcs.AIcs.LG
收藏

ECO:无需全精度主权重的量化训练

ECO: Quantized Training without Full-Precision Master Weights

Google Research(谷歌研究);ISTA

Mahdi Nikdan, Amir Zandieh, Dan Alistarh, Vahab Mirrokni

AI总结:

ECO通过直接在量化参数上应用更新,消除了主权重带来的内存开销,实现了在保持精度的同时提升内存效率。

摘要:

量化技术显著提高了大语言模型(LLM)训练的计算和内存效率。然而,现有方法仍然依赖于在高精度下累积更新:具体来说,梯度更新必须应用到高精度的权重缓冲区,即主权重。该缓冲区引入了显著的内存开销,特别是对于稀疏专家混合(SMoE)模型,其中模型参数和优化器状态占用了大部分内存。为了解决这个问题,我们引入了误差补偿优化器(ECO),通过直接在量化参数上应用更新来消除主权重。ECO在每一步后量化权重,并仔细地将所产生的量化误差注入到优化器动量中,形成一个误差反馈循环,而无需额外内存。我们证明,在标准假设和衰减学习率下,ECO收敛到最优解的常数半径邻域,而 naive 主权重移除会导致误差与学习率成反比。我们展示了在预训练小型Transformer(30-800M)、Gemma-3 1B模型和具有FP8量化的2.1B参数稀疏MoE模型,以及在INT4精度下微调DeepSeek-MoE-16B时的经验结果。在整个过程中,ECO在主权重基线中达到接近无损的精度,显著地改变了静态内存与验证损失帕累托前沿。

英文摘要:

Quantization has significantly improved the compute and memory efficiency of Large Language Model (LLM) training. However, existing approaches still rely on accumulating their updates in high-precision: concretely, gradient updates must be applied to a high-precision weight buffer, known as $\textit{master weights}$. This buffer introduces substantial memory overhead, particularly for Sparse Mixture of Experts (SMoE) models, where model parameters and optimizer states dominate memory usage. To address this, we introduce the Error-Compensating Optimizer (ECO), which eliminates master weights by applying updates directly to quantized parameters. ECO quantizes weights after each step and carefully injects the resulting quantization error into the optimizer momentum, forming an error-feedback loop with no additional memory. We prove that, under standard assumptions and a decaying learning rate, ECO converges to a constant-radius neighborhood of the optimum, while naive master-weight removal can incur an error that is inversely proportional to the learning rate. We show empirical results for pretraining small Transformers (30-800M), a Gemma-3 1B model, and a 2.1B parameter Sparse MoE model with FP8 quantization, and fine-tuning DeepSeek-MoE-16B in INT4 precision. Throughout, ECO matches baselines with master weights up to near-lossless accuracy, significantly shifting the static memory vs validation loss Pareto frontier.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑