arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.09245cs.LGcs.AIcs.CLcs.CVcs.NAmath.NA
收藏

在任意精度和稀疏性下神经网络的鲁棒训练

Robust Training of Neural Networks at Arbitrary Precision and Sparsity

Google DeepMind(谷歌DeepMind)

Chengxi Ye, Grace Chu, Yanfeng Liu, Yichi Zhang, Lukasz Lew, Li Zhang, Mark Sandler, Andrew Howard

AI总结:

本文提出了一种统一框架,通过显式建模量化为加性噪声,解决在任意精度和稀疏性下神经网络的鲁棒训练问题,实现稳定训练和超高效网络。

摘要:

量化和稀疏化固有的不连续操作引入了一个长期存在的障碍,阻碍了反向传播,尤其是在超低精度和稀疏性领域。尽管社区长期以来认为量化不利于梯度下降,因为其缺乏光滑性,我们首次指出关键问题在于缺乏适当的梯度路径,允许训练学习对量化噪声的鲁棒性。标准的Straight-Through Estimator(STE)加剧了这一问题,其已知的不匹配:具有量化意识的正向传递但无意识的反向传递,导致未管理的误差和不稳定性。我们通过显式建模量化为加性噪声来解决这个问题,使完整的正向-反向路径明确无误,而无需启发式梯度估计。作为自然解决方案,我们引入了一个去噪去量化变换,源自一个原理性的岭回归目标,创建了一个显式、纠正的梯度路径,使学习能够对STE所绕过的噪声鲁棒。我们将其扩展到稀疏化,将其视为一种特殊的量化形式,将小值设为零。我们的统一框架使用现成的配方训练任意精度和稀疏性级别的模型,使A1W1和次1位网络稳定,而其他方法则无法做到。它实现了最先进的结果,映射了现代大语言模型的效率前沿,并提供了一个理论基础的路径,以实现超高效的神经网络。

英文摘要:

The discontinuous operations inherent in quantization and sparsification introduce a long-standing obstacle to backpropagation, particularly in ultra-low precision and sparse regimes. While the community has long viewed quantization as unfriendly to gradient descent due to its lack of smoothness, we pinpoint-for the first time-that the key issue is the absence of a proper gradient path that allows training to learn robustness to quantization noise. The standard Straight-Through Estimator (STE) exacerbates this with its well-understood mismatch: a quantization-aware forward pass but oblivious backward pass, leading to unmanaged error and instability. We solve this by explicitly modeling quantization as additive noise, making the full forward-backward path well-defined without heuristic gradient estimation. As one natural solution, we introduce a denoising dequantization transform derived from a principled ridge regression objective, creating an explicit, corrective gradient path that makes learning robust to the noise STE bypasses. We extend this to sparsification by treating it as a special form of quantization that zeros out small values. Our unified framework trains models at arbitrary precisions and sparsity levels with off-the-shelf recipes, enabling stable A1W1 and sub-1-bit networks where others falter. It yields state-of-the-art results, mapping efficiency frontiers for modern LLMs and providing a theoretically grounded path to hyper-efficient neural networks.

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

↑