arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.06067cs.LGcs.AI
收藏

归一化架构本质上是4位的

Normalized Architectures are Natively 4-Bit

NVIDIA;Department of Electrical and Computer Engineering - Technion(技术学院电子工程系)

Maxim Fishman, Brian Chmiel, Ron Banner, Daniel Soudry, Boris Ginsburg

AI总结:

本文提出归一化架构在4位精度下具有更高的鲁棒性,无需额外干预即可实现稳定训练,通过分析点积发现其在隐藏维度增长时信号噪声比提高,损失景观更平缓。

摘要:

在4位精度下训练大语言模型对效率至关重要。我们证明nGPT架构通过将权重和隐藏表示限制在单位超球面上,本质上更鲁棒于低精度运算。这消除了诸如应用随机Hadamard变换和执行每张张量缩放计算等干预的需要,从而实现了稳定的端到端NVFP4训练。我们在1.2B密集模型和高达3B/30B参数的混合(Mamba-Transformer)MoE模型上验证了这一方法。我们追溯这种鲁棒性到点积:尽管在标准和归一化架构中量化噪声仍大多不相关,但信号行为不同。在nGPT中,超球面约束增强了元素乘积间的弱正相关性,导致信号在隐藏维度上构造性累积,而噪声继续平均消除。这产生了更高的有效信噪比和更平的损失景观,随着隐藏维度增长,效果增强,表明在规模扩大时具有增加的优势。参考实现可在https://github.com/anonymous452026/ngpt-nvfp4获得。

英文摘要:

Training large language models at 4-bit precision is critical for efficiency. We show that nGPT, an architecture that constrains weights and hidden representations to the unit hypersphere, is inherently more robust to low-precision arithmetic. This removes the need for interventions-such as applying random Hadamard transforms and performing per-tensor scaling calculations-to preserve model quality, and it enables stable end-to-end NVFP4 training. We validate this approach on both a 1.2B dense model and hybrid (Mamba-Transformer) MoE models of up to 3B/30B parameters. We trace this robustness to the dot product: while quantization noise remains largely uncorrelated in both standard and normalized architectures, the signal behaves differently. In nGPT, the hypersphere constraint enhances weak positive correlations among the element-wise products, leading to a constructive accumulation of the signal across the hidden dimension while the noise continues to average out. This yields a higher effective signal-to-noise ratio and a flatter loss landscape, with the effect strengthening as the hidden dimension grows, suggesting increasing advantages at scale. A reference implementation is available at https://github.com/anonymous452026/ngpt-nvfp4

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

↑