2-bit量化优化器突破,内存减至1/8仍保持精度
Pushing the Limits of Low-Bit Optimizers: A Focus on EMA Dynamics
- 采用对数量化与动态动量调节,解决低比特下状态失效问题
- 在3比特下训练损失仅上升0.8%,2比特时精度下降不足1%
- 适合大规模模型训练,显著降低显存占用
模型规模的快速扩张导致训练和微调成本急剧上升。其中,状态型优化器(如Adam)需存储相当于模型两倍大小的辅助信息,是主要内存开销来源。本文提出SOLO,一种新型轻量级优化器,使Adam类优化器可在3比特甚至2比特精度下进行量化状态更新。该进展源于对两个核心挑战的识别与解决:无符号量化中的信号淹没问题导致状态动力学不变,以及有符号量化中梯度方差增大引发错误下降方向。理论分析表明,前者需定制对数量化策略,后者需针对精度调整动量超参数。SOLO可无缝集成至现有Adam类优化器,实现显著内存节省,且精度损失极小。
原文摘要 · Abstract (English)
The rapid scaling of models has led to prohibitively high training and fine-tuning costs. A major factor accounting for memory consumption is the widespread use of stateful optimizers (e.g., Adam), which maintain auxiliary information of even 2x the model size in order to achieve optimal convergence. We therefore present SOLO in this work to spawn a novel type of optimizer that requires an extremely light memory footprint. While previous efforts have achieved certain success in 8-bit or 4-bit cases, SOLO enables Adam-style optimizers to maintain quantized states with precision as low as 3 bits, or even 2 bits. This immense progress is due to the identification and resolution of two key challenges: the signal swamping problem in unsigned quantization that results in unchanged state dynamics, and the increased gradient variance in signed quantization that leads to incorrect descent directions. The theoretical analysis suggests a tailored logarithmic quantization for the former and a precision-specific momentum hyperparameter for the latter. SOLO can thus be seamlessly applied to Adam-style optimizers, leading to substantial memory savings with minimal accuracy loss.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。