arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.02031cs.LGcs.AIcs.CL
收藏

输出嵌入中心化用于稳定大语言模型预训练

Output Embedding Centering for Stable LLM Pretraining

AI Sweden

Felix Stollenwerk, Anna Lokrantz, Niclas Hertzberg

AI总结:

本文提出输出嵌入中心化(OEC)方法,通过分析输出嵌入几何特性,解决预训练中的输出logit发散问题,提升训练稳定性。

摘要:

大语言模型的预训练不仅成本高且易出现训练不稳定。一种常见不稳定现象是输出logit发散。最常用的缓解策略z-loss和logit软限制仅解决表面问题而非根本原因。本文从输出嵌入几何角度分析,发现各向异性嵌入是其根源。基于此,提出输出嵌入中心化(OEC)作为新缓解策略,证明其能抑制输出logit发散。OEC可通过确定性操作μ-中心化或正则化方法μ-损失实现。实验表明,两种变体在训练稳定性上优于z-loss,且在有无权重绑定情况下均表现良好。此外,发现μ-损失对正则化超参数调优显著更鲁棒。

英文摘要:

Pretraining of large language models is not only expensive but also prone to certain training instabilities. A specific instability that often occurs at the end of training is output logit divergence. The most widely used mitigation strategies, z-loss and logit soft-capping, merely address the symptoms rather than the underlying cause of the problem. In this paper, we analyze the instability from the perspective of the output embeddings' geometry and identify anisotropic embeddings as its source. Based on this, we propose output embedding centering (OEC) as a new mitigation strategy, and demonstrate that it suppresses output logit divergence. OEC can be implemented in two different ways: as a deterministic operation called $μ$-centering, or a regularization method called $μ$-loss. Our experiments show that both variants outperform z-loss in terms of training stability, while being on par with logit soft-capping. This holds true both in the presence and the absence of weight tying. As a secondary result, we find that $μ$-loss is significantly less sensitive to regularization hyperparameter tuning than z-loss.

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

↑