Taming Curvature: Architecture Warm-up for Stable Transformer Training

Sameera Ramasinghe, Thalaiyasingam Ajanthan, Hadi Mohaghegh Dolatabadi, Chamin P Hewa Koneputugodage, Gil Avraham, Violetta Shevchenko, Yan Zuo, Karol Pajak, Alexander Long

Introduction

Training billion-parameter Transformers is notoriously brittle. Engineers frequently encounter transient loss spikes or complete model divergence, wasting massive amounts of expensive compute time. According to the Edge of Stability (EoS) theory, these crashes occur when the product of the learning rate and the "sharpness" (or curvature) of the loss landscape exceeds a specific threshold.

While empirical workarounds like learning rate warmup or QK-normalization exist, directly monitoring or controlling this curvature at scale has historically been impossible because calculating the Hessian matrix is computationally prohibitive for massive models. This paper introduces a principled, curvature-aware training approach that makes tracking and taming the loss landscape feasible at the billion-parameter scale.

Efficient Curvature Tracking

To track curvature without massive overhead, the authors introduce a "warm-started" variant of the power iteration method. Standard methods start from a random vector at every step to find the largest eigenvalue of the Hessian. Instead, this new approach reuses the eigenvector from the previous training step.

Because the top eigenvector of the Hessian changes very slowly during training (it is "lazy"), the warm-started method can accurately track curvature with fewer than five Hessian-Vector Products (HVPs) per step.

Warm-started vs. cold-started HVP error

This is an order of magnitude faster than previous methods. As shown in the data, cold-start methods require 20+ iterations and still exhibit high variance, whereas the warm-started approach achieves high-accuracy curvature estimates almost immediately.

Architecture Warm-up

Armed with this fast online estimator, the researchers observed that curvature increases significantly with model depth. Adding layers does not just increase capacity; it multiplicatively increases the potential for curvature spikes.

To mitigate this, they propose Architecture Warm-up. Instead of training the full network immediately, training begins with a "shallow" version of the model (e.g., half the layers) during the initial learning rate warmup phase. The remaining layers are then gradually "unlocked."

Crucially, these new layers are initialized to act as identity functions—setting weights to zero and excluding them from the optimizer initially. This ensures the model's behavior and its derivatives remain continuous, preventing "curvature shocks" during the transition. Simply zeroing out projection weights is insufficient; if the rest of the layer has random weights, even a tiny update causes a massive jump in the model's Lipschitz constant.

Experimental Results

The researchers evaluated their approach on modern large-scale corpora (Fineweb, DCLM, and Olmo-Mix) using models ranging from 640M to 3 billion parameters.

Training loss comparison showing stabilized training
  • Superior Stability: In head-to-head comparisons, Architecture Warm-up remained stable at high learning rates where standard baselines and other techniques (like QK-Norm or Softcap) diverged or suffered massive loss spikes.
  • Better Performance: On the DCLM dataset, the proposed method achieved a validation perplexity of 22.64, significantly outperforming QK-Norm (61.57) and Softcap (43.38).
  • Compute Efficiency: Validated in a "Chinchilla-optimal" setting (1B parameters, 25B tokens), the stability gains translated into better final model quality without slowing down convergence.
  • Replacing LR Warmup: Surprisingly, Architecture Warm-up proved so effective at controlling stability that it can potentially replace traditional learning rate warmup entirely.

Limitations and Future Directions

While highly effective, the method introduces a new hyperparameter: the schedule for unlocking layers. Although the approach is robust to the exact schedule, it still requires manual configuration. Additionally, while 5 HVPs is fast, it adds a non-zero computational cost to every training step compared to a standard baseline.

Finally, the current study focuses on decoder-only Transformers; extending this to Mixture of Experts (MoE) or Encoder-Decoder models remains future work. The authors suggest that future iterations could automatically unlock layers based on real-time curvature feedback rather than relying on a fixed schedule.

Summary updated

BibTeX
@inproceedings{ramasinghe2026taming,
  author = {Sameera Ramasinghe and Thalaiyasingam Ajanthan and Hadi Mohaghegh Dolatabadi and Chamin P Hewa Koneputugodage and Gil Avraham and Violetta Shevchenko and Yan Zuo and Karol Pajak and Alexander Long},
  title = {{Taming Curvature: Architecture Warm-up for Stable Transformer Training}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=DuNf2vPTTK},
}
Figure