LOTION:平滑量化训练中的优化景观
LOTION: Smoothing the Optimization Landscape for Quantized Training
AI总结:
针对量化训练中梯度为零的难题,提出LOTION框架,用随机舍入噪声的期望平滑损失曲面,保证收敛并保留全局最小值,在大型语言模型上优于标准QAT。
摘要:
针对量化目标优化神经网络从根本上具有挑战性,因为量化器是分段常数函数,除量化阈值处导数未定义外,其余位置梯度均为零。大多数现有方法通过直通估计器(STE)等技术放宽梯度计算来解决此问题,但不提供任何收敛保证。在本工作中,受Nesterov平滑的启发,我们用连续损失曲面近似量化损失曲面。具体而言,我们引入LOTION(低精度优化通过随机噪声平滑),这是一个原则性的平滑框架,用无偏随机舍入噪声下的期望替代原始量化损失。在此框架下,标准优化器保证收敛到损失曲面的局部最小值。此外,当使用源自随机舍入的噪声时,我们证明原始量化损失的全局最小值得以保留。我们通过实验证明,该方法在合成测试平台以及1.5亿和3亿参数的语言模型上优于标准QAT。
英文摘要:
Optimizing neural networks for quantized objectives is fundamentally challenging because the quantizer is piece-wise constant, yielding zero gradients everywhere except at quantization thresholds where the derivative is undefined. Most existing methods deal with this issue by relaxing gradient computations with techniques like Straight Through Estimators (STE) and do not provide any guarantees of convergence. In this work, taking inspiration from Nesterov smoothing, we approximate the quantized loss surface with a continuous loss surface. In particular, we introduce LOTION, \textbf{L}ow-precision \textbf{O}ptimization via s\textbf{T}ochastic-no\textbf{I}se sm\textbf{O}othi\textbf{N}g, a principled smoothing framework that replaces the raw quantized loss with its expectation under unbiased randomized-rounding noise. In this framework, standard optimizers are guaranteed to converge to a local minimum of the loss surface. Moreover, when using noise derived from stochastic rounding, we show that the global minima of the original quantized loss are preserved. We empirically demonstrate that this method outperforms standard QAT on synthetic testbeds and on 150M- and 300M- parameter language models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。