可学习的乘数:解放语言模型矩阵层的尺度
Learnable Multipliers: Freeing the Scale of Language Model Matrix Layers
AI总结:
本研究提出可学习乘数方法,通过引入可学习的行和列乘数来优化语言模型矩阵层的尺度,提升性能并减少计算开销。
摘要:
在大规模语言模型预训练中,对矩阵层应用权衰减(WD)是标准做法。先前的研究表明,随机梯度噪声导致权重矩阵W产生类似布朗运动的扩展,其增长被WD抵消,从而形成具有特定权重范数||W||的WD-噪声平衡。在本工作中,我们将这种平衡范数视为训练过程的有害产物,并通过引入可学习的乘数来解决这一问题。首先,我们将可学习的标量乘数附加到W上,并确认WD-噪声平衡范数是次优的:学习的尺度适应数据并提升性能。随后我们论证单个行和列范数也受到限制,并通过引入可学习的每行和每列乘数来释放其尺度。我们的方法可以视为muP乘数的可学习、更具表现力的推广。它优于经过良好调优的muP基线,减少了乘数调优的计算开销,并揭示了实际问题,如前向传递对称性和学习乘数的宽度扩展。最后,我们通过Adam和Muon优化器验证了可学习乘数,在下游评估中显示出与从Adam切换到Muon的改进相匹配的提升。
英文摘要:
Applying weight decay (WD) to matrix layers is standard practice in large-language-model pretraining. Prior work suggests that stochastic gradient noise induces a Brownian-like expansion of the weight matrices W, whose growth is counteracted by WD, leading to a WD-noise equilibrium with a certain weight norm ||W||. In this work, we view the equilibrium norm as a harmful artifact of the training procedure, and address it by introducing learnable multipliers to learn the optimal scale. First, we attach a learnable scalar multiplier to W and confirm that the WD-noise equilibrium norm is suboptimal: the learned scale adapts to data and improves performance. We then argue that individual row and column norms are similarly constrained, and free their scale by introducing learnable per-row and per-column multipliers. Our method can be viewed as a learnable, more expressive generalization of muP multipliers. It outperforms a well-tuned muP baseline, reduces the computational overhead of multiplier tuning, and surfaces practical questions such as forward-pass symmetries and the width-scaling of the learned multipliers. Finally, we validate learnable multipliers with both Adam and Muon optimizers, where it shows improvement in downstream evaluations matching the improvement of the switching from Adam to Muon.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。