跳到正文
arXiv (AI + Vision + Imaging)· Heshen Zhan, Youhan Huang, Yunke Peng, Yao Wang, Linghui Kong, Ziwei Zhu, Qingyu Han, Yaoyuan Wang, Congliang Chen, Ruoyu Sun·· 4 小时前AI 评分28

BReD:面向低比特EMA优化器状态稳定性的块重放抖动方法

BReD: Block Replay Dithering for Stable Low-Bit EMA Optimizer States

AI 导读

针对优化器状态反复量化-反量化导致EMA误差递归累积的问题,BReD将经典减法抖动引入优化器状态量化,用确定性种子重放与块级共享抖动值避免额外随机张量存储和逐元素抖动生成。在120M至3.4B模型预训练与7B模型监督微调中,4-bit BReD与全精度优化器状态训练接近,预训练PPL偏移≤0.5、微调≤0.2,下游平均性能变化在0.7分以内;3-bit BReD在评测设置下仍保持稳定收敛。

正文 · 原文

arXiv:2611.33951v1 Announce Type: new Abstract: Low-bit storage of optimizer states can substantially reduce the memory footprint of large-scale training. In practice, however, these states are not quantized once: at every training step, they are dequantized, updated, requantized, and written back. This iterative quantization pipeline can destabilize training. We identify a failure mode behind this instability: for states updated via exponential moving averages (EMAs), quantization errors are recursively fed into subsequent updates. As a result, biased errors accumulate over time while high-variance errors are amplified, particularly when the EMA decay factor is close to 1. To address this error accumulation, we propose BReD (Block Replay Dithering), a method that reduces rounding bias and controls rounding variance during quantization. BReD adapts classical subtractive dithering to optimizer-state quantization by combining deterministic seed replay with block-wise shared dither values, avoiding auxiliary random-tensor storage and per-element dither values generation. Across the default pretraining settings (five optimizers at 120M; AdamW and Muon at 1.1B and 3.4B model) and supervised fine-tuning (AdamW and Muon at 7B model), 4-bit BReD closely matches training with full-precision optimizer states, with PPL shifts $\leq0.5$ in pretraining and $\leq0.2$ in fine-tuning and average downstream performance changes within 0.7 points. Moreover, 3-bit BReD preserves stable convergence in the evaluated settings, offering a more aggressive alternative. Our implementation of BReD is available at: https://github.com/ZhanHeshen/BReD

来源:arXiv (AI + Vision + Imaging) · arxiv.org