Training nGPT

Ilya Loshchilov, Boris GinsburgarXiv 2026

TL;DR

The paper introduces a highly optimized training recipe for the Normalized Transformer (nGPT), an architecture that constrains all parameter and activation vectors to a unit hypersphere. When evaluated on modern hybrid Mamba-2–Transformer Mixture-of-Experts (MoE) models up to 30B parameters, this hyperspherical approach achieves the same validation loss as standard Transformers using approximately half as many training tokens, effectively doubling data efficiency.

What Problem Does This Paper Address?

In standard Transformer architectures, the norms of activation and parameter vectors fluctuate significantly during training. To keep these fluctuations from destabilizing the model, practitioners rely on a complex web of normalization layers (like LayerNorm or RMSNorm), weight decay, and highly tuned learning rate schedules.

The Normalized Transformer (nGPT) bypasses this by forcing all vectors onto a unit hypersphere, transforming representation learning into a geometric optimization process on a sphere.

Figure 1: nGPT’s forward pass as a multi-step optimization on the hypersphere.

However, scaling nGPT to massive, modern architectures like hybrid Mamba-2–Transformer Mixture-of-Experts (MoE) models introduces new optimization hurdles. Specifically, hidden time-varying gradient multipliers and coordinate-level instabilities can emerge at scale. This paper provides the practical training recipe required to make hyperspherical learning stable, predictable, and highly efficient for large-scale production models.

Methods

The authors develop a suite of optimization ingredients tailored specifically for hyperspherical learning:

  1. Logit Gradient Preconditioning (LGP): The authors observed that the learned logit scale vector grows logarithmically over time, acting as an unintended global multiplier on backward gradients. LGP decouples this by replacing the explicit backward multiplier with a normalized scale, stabilizing the effective learning rate.
  2. Logarithmic Learning Rate Decay: Because nGPT constrains parameter norms, it doesn't use weight decay. This allows for a more front-loaded learning rate schedule that allocates more of the optimization budget early in training.
  3. GatedAdamW: A variation of AdamW that separates numerical stability from a tunable soft gate. This prevents the suppression of updates at small second-moment scales, which is common in standard AdamW.
  4. Angular Step Cap (ASC): A geometric safeguard that caps the angular displacement of normalized parameter vectors to prevent destabilizingly large updates.

To adapt nGPT to hybrid Mamba-2–Transformer MoE architectures, the authors stripped out standard RMSNorm layers and introduced trainable scaling factors ($s_{mamba}$, $s_{moe}$) to ensure inputs remain at an appropriate scale for nonlinearities like SiLU and the sigmoid router.

Datasets

The models were trained and evaluated using an industry-grade data blend developed by the NVIDIA Nemotron Team. The token allocation scaled progressively with model size:

  • 1B Model: 88B tokens
  • 2B Model: 140B tokens
  • 4B Model: 215B tokens
  • 7B Model: 310B tokens
  • 14B Model: 560B tokens
  • 30B Model: 1000B (1 Trillion) tokens

Key Insights and Ideas

  • The "Hidden Multiplier" Discovery: One of the most compelling findings is that in standard nGPT, the vocabulary logit scale vector ($s_z$) grows logarithmically during long training runs. This growth acts as a hidden accelerator for gradients flowing to all preceding layers, explaining why gradient norms often climb unexpectedly during LLM pretraining.
Figure 2: Mean value of the logit scale vector sz for an 8B dense nGPT model trained on 4T tokens. The fit is computed from iteration t ≥1000.
  • Front-Loaded Learning is Better on Spheres: Without the need to balance learning rates with weight decay, front-loaded schedules (like the proposed logarithmic decay) perform significantly better. They exploit the geometric constraints of the hypersphere by making massive progress early in the training cycle.

Key Results

The nGPT training recipe was evaluated against a standard GPT baseline (unnormalized, trained with AdamW) across a scaling ladder up to 30B total parameters.

  • Consistent Loss Reduction: Across all model sizes, nGPT consistently achieved training and validation losses that were 2.5% to 3.0% lower than the baseline at identical token counts.
  • 2x Data Efficiency: For the largest 30B parameter model (trained on 1 trillion tokens), nGPT reached the same validation loss as the standard baseline using approximately half the training tokens.

Limitations and Future Work

  • Compute Budget Constraints: Due to a limited compute budget, the authors could not perform an exhaustive ablation study of every individual component or establish definitive hyperparameter scaling laws for nGPT.
  • Computational Overhead: The 30B nGPT model incurs roughly a 6% computational overhead during training, though the authors note this may be due to implementation details rather than fundamental FLOP requirements.
  • Heuristic Multipliers: Certain parameters, such as multiplying the learning rate of routed expert matrices by 1.5, were determined empirically on smaller models and were not systematically retuned at scale.

Summary updated

BibTeX
@misc{loshchilov2026training,
  author = {Ilya Loshchilov and Boris Ginsburg},
  title = {{Training nGPT}},
  year = {2026},
  eprint = {2608.01284},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.01284},
}
Figure