AI
Training Transformer Models 2x Faster by Tuning Learning Rates Per Block
Researchers discovered that different layers in transformer networks have varying loss landscapes, and exploiting this difference through tailored learning rates can dramatically accelerate language model training.
Transformer neural networks contain many distinct components—from embeddings and normalization to attention and feedforward layers—yet they're often trained with a single learning rate across the board. A new study shows this one-size-fits-all approach is suboptimal.
The Sharpness Disparity Finding#
Researchers analyzing how transformers learn uncovered a Sharpness Disparity Principle: different architectural blocks have fundamentally different loss landscape geometries (some sharp, others flat) that emerge early in training and remain stable throughout. This suggests that each block would benefit from a customized learning rate suited to its own curvature characteristics, rather than sharing one universal rate.
Blockwise Learning Rate Strategy#
To capitalize on this discovery, the team developed Blockwise Learning Rate, a technique that assigns each transformer block its own learning rate proportional to its sharpness. When integrated into the standard AdamW optimizer, this approach yielded:
- Lower final training loss compared to vanilla AdamW
- Nearly 2× speedup in convergence across multiple configurations
- Consistent gains across GPT-2 and LLaMA models (0.12B to 2B parameters)
- Validation on diverse datasets including OpenWebText, MiniPile, and C4
Synergy with Memory-Efficient Methods#
The researchers further demonstrated that Blockwise LR pairs well with existing optimizations. When combined with Adam-mini (a recent memory-efficient Adam variant), the approach achieved both a 2× training speedup and 2× reduction in memory consumption—a significant win for scaling language models on resource-constrained hardware.
Why It Matters#
Understanding how different layers learn at different paces opens pathways to more efficient pre-training. By respecting the natural geometry of each block's loss surface, practitioners can train larger models faster without sacrificing final performance—a critical advantage in an era of ever-growing model sizes.

