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

理解大语言模型预训练中优化器状态的量化:状态陈旧的动力学与状态重置的有效性

Understanding Quantization of Optimizer States in LLM Pre-training: Dynamics of State Staleness and Effectiveness of State Resets

New York University(纽约大学)

Kristi Topollai, Anna Choromanska

AI总结:

研究低精度指数移动平均优化器状态的动力学,揭示量化导致状态陈旧的问题,并提出预测模型指导状态重置策略,提升低精度预训练性能。

摘要:

量化优化器状态已成为内存高效大规模预训练的重要组成部分,但由此产生的优化器动力学仍只部分被理解。我们研究低精度指数移动平均(EMA)优化器状态,展示量化如何导致许多名义更新回退到相同存储值,使状态实际上陈旧并减缓适应速度。我们随后开发了一个简单的预测模型,估计一步停滞概率并描述初始化后时间推移中停滞的累积。这种视角提供了优化器状态重置在低精度下有益的机制解释:一旦量化EMA变得实际上陈旧,重置它可以暂时恢复响应性。受此观点启发,我们推导出一种基于理论指导的方法来选择有用的重置时期,表明在低精度下,关键问题不仅在于重置是否有效,还在于何时应应用。受控模拟和LLM预训练实验表明,合适的重置计划可恢复低精度状态存储造成的性能损失,同时大幅减少优化器状态内存。

英文摘要:

Quantizing optimizer states is becoming an important ingredient of memory-efficient large-scale pre-training, but the resulting optimizer dynamics remain only partially understood. We study low-precision exponential moving average (EMA) optimizer states and show how quantization can cause many nominal updates to round back to the same stored value, making the state effectively stale and slowing adaptation beyond what the nominal decay would suggest. We then develop a simple predictive model of stalling that estimates one-step stalling probabilities and characterizes how stalling builds up over time after the initialization. This perspective provides a mechanistic explanation for why optimizer-state resets help in low precision: once a quantized EMA becomes effectively stale, resetting it can temporarily restore responsiveness. Motivated by this picture, we derive a simple theory-guided method for choosing useful reset periods, showing that in low precision the key question is not only whether resets help, but when they should be applied. Experiments in controlled simulations and LLM pre-training show that suitable reset schedules recover the performance lost to low-precision state storage while substantially reducing optimizer-state memory.

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

↑