Output Embedding Centering for Stable LLM Pretraining

Felix Stollenwerk, Anna Lokrantz, Niclas Hertzberg
1/5/2026
cs.LGcs.AIcs.CL

No official code found. Best implementation: flxst/output-embedding-centering (1 star, last commit 2026-04-22).

Abstract

Pretraining of large language models is not only expensive but also prone to certain training instabilities. A specific instability that often occurs for large learning rates at the end of training is output logit divergence. The most widely used mitigation strategy, z-loss, merely addresses 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 its cause. Based on this, we propose output embedding centering (OEC) as a new mitigation strategy, and prove 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 and learning rate sensitivity. In particular, they ensure that training converges even for large learning rates when z-loss fails. Furthermore, we find that μ-loss is significantly less sensitive to regularization hyperparameter tuning than z-loss.

View on arXivView PDF

Code Implementations(1)

Code to reproduce results from the paper https://arxiv.org/abs/2601.02031

10TeX, ShellJan 4, 20266 months ago

Similar Papers

Cite this paper

@article{stollenwerk2026output,
  title  = {Output Embedding Centering for Stable LLM Pretraining},
  author = {Felix Stollenwerk and Anna Lokrantz and Niclas Hertzberg},
  year   = {2026},
  eprint = {2601.02031},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.02031v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.02031.svg)](https://codeofpaper.com/paper/2601.02031)

Discussion