Quantifying Hyperparameter Transfer and the Importance of Embedding Layer Learning Rate
Summary (Overview)
- Develops a quantitative framework for evaluating hyperparameter transfer quality using three complementary metrics: loss predictability error ( ), transfer robustness exponent ( ), and asymptotic loss degradation ( )
- Isolates the embedding layer learning rate as the primary driver of P's advantage over SP when training GPT-style Transformers with AdamW, contradicting the notion that the full set of P conditions is necessary
- Demonstrates that SP with a corrected embedding learning rate (SP+Embd) matches P across all three transfer metrics, providing practitioners a simple fix for reliable transfer
- Reveals that insufficient embedding layer learning rate causes training instabilities, not just slower convergence—a counterintuitive finding since one would expect later layers to compensate
- Shows weight decay improves loss predictability but degrades asymptotic performance in fixed-step settings and hurts transfer robustness in compute-optimal (fixed token-per-parameter) settings
Introduction and Theoretical Foundation
Background and Motivation
Training large neural networks requires careful hyperparameter tuning, which becomes prohibitively expensive as models scale to trillions of parameters. Hyperparameter transfer addresses this by finding optimal hyperparameters at small scales and extrapolating them to larger scales via scaling laws or structural parameterization choices.
Two main approaches exist:
- Fitted scaling laws: Fit functional forms to predict how optimal learning rate scales with model/data size
- Structural parameterization: Design the model so that training dynamics remain invariant across scales (e.g., Maximal Update Parameterization, P)
Theoretical Foundation: Neural Network Parameterizations
Following Yang and Hu [48], networks are parameterized using four scalar exponents per layer :
- controls forward pass scaling:
- scales initialization variance:
- scales layer-wise learning rate:
- scales weight decay:
Standard Parameterization (SP) requires activations at initialization to not blow up or vanish, imposing one constraint per layer. Maximal Update Parameterization (P) imposes a stronger condition: both activations and their updates must be width-independent.
Key Differences Between SP and P
The two parameterizations differ in four key ways (Table 1):
| Parameterization | Layer | Multiplier (n⁻ᵃ) | Variance (n⁻²ᵇ) | LR (n⁻ᶜ) | WD (n⁻ᵈ) |
|---|---|---|---|---|---|
| SP | Embedding | 1 | 1 | 1/n | n |
| Hidden | 1 | 1/n | 1/n | n | |
| Last | 1 | 1/n | 1/n | n | |
| LayerNorm | - | - | 1/n | - | |
| Attention scale | 1/√d | - | - | - | |
| P | Embedding | 1 | 1 | 1 | 1 |
| Hidden | 1 | 1/n | 1/n | n | |
| Last | 1 | 1/n² | 1/n | n | |
| LayerNorm | - | - | 1 | - | |
| Attention scale | 1/d | - | - | - |
Theoretical Gaps
The theoretical derivation of P makes assumptions that don't hold in practice:
- Finite training steps in the infinite width limit (practice is the opposite)
- Full alignment between weight updates and activations (rarely achieved)
- Fixed dataset size (practice scales data with parameters)
Despite these violations, P still exhibits high-quality transfer—motivating this investigation.
Methodology
Experimental Setup
- Architecture: GPT-style decoder-only Transformers
- Dataset: FineWeb-Edu [36]
- Optimizer: AdamW with Warmup-Stable-Decay (WSD) schedule (20% warmup, 60% stable, 20% decay)
- Training: Fixed 10,000 steps, batch size 1024 (1M tokens/step)
- Width scaling: , head dimension fixed at
Three Transfer Metrics
1. Loss Predictability Error ()
Models the loss landscape as a joint scaling law:
where . The error is computed as:
2. Transfer Robustness Exponent ()
Defined as . The parameterization exhibits robust transfer if:
Negative means the loss landscape flattens with width, so prediction errors diminish at scale. Positive amplifies errors, degrading transfer reliability.
3. Asymptotic Loss Degradation ()
Measures the performance gap at scale relative to the best possible parameterization.
Ablation Strategy
To isolate which of the four differences between SP and P matters most, the authors performed all 16 ablations, systematically modifying one component at a time:
- SP+Embd: SP with embedding learning rate
- P-Embd: P with embedding learning rate
- Similar modifications for attention scale, LayerNorm LR, and last-layer initialization
Empirical Validation / Results
SP vs. P: Surprising Similarity
Despite SP exhibiting noisier loss curves (training instabilities), both parameterizations show:
- Comparable asymptotic loss gap
- Converging optimal learning rates to finite asymptotic values
- Negative robustness exponents (robust transfer)
Key difference: SP's predictability error is ~3× larger than P's, making SP transfer unreliable in practice despite working in principle.
The Embedding Layer Learning Rate is Critical
Figure 2 demonstrates the key finding:
- SP+Embd ( embedding LR): Eliminates training instabilities, yields smooth P-like curves
- P-Embd ( embedding LR): Reintroduces SP-like instabilities
Figure 3 shows SP+Embd matches P across all three metrics, while other modifications (attention scaling, LayerNorm LR, last-layer initialization) contribute little or even hurt transfer.
When Does the Embedding Layer Matter Most?
Switching experiments reveal early training is most critical:
- P → slow embedding at step : Causes persistent loss gap (0.1-0.2) that grows for earlier switches
- SP → fast embedding at step : Eliminates instabilities and improves performance
Freezing the embedding at initialization hurts both parameterizations, but P much more than SP, showing later layers do not compensate for an untrained embedding.
Effect of Weight Decay
Fixed-step setting (Figure 5a-c):
- monotonically increases with (from ~0.01 to ~1 at large )
- Small weight decay improves for stable parameterizations
- At large , converges to ~0.01 across all parameterizations
Compute-optimal setting (fixed TPP = 20):
- Most parameterizations achieve near-zero
- degrades sharply with increasing weight decay, converging to
- The convention appears inadequate when training steps scale as
Theoretical and Practical Implications
Why Does Embedding LR Matter So Much?
The authors argue the embedding layer sits at the network boundary with no upstream processing to compensate for poor training. The embedding learning rate is required for activation updates to be —this first-layer update has only a single term contributing, so its scaling must be correct.
By contrast, the last-layer initialization constraint is weaker:
- It contributes to only one of three terms in the function update
- Its importance depends on alignment assumptions that may not hold in practice
- Learning rate warmup compensates for the higher sharpness from larger initialization
Practical Recommendations
- Practitioners using SP can recover P-comparable transfer by simply setting the embedding layer learning rate to instead of
- Slow embedding training may be an overlooked source of training instabilities in practice
- Weight decay scaling conventions need reconsideration in compute-optimal regimes
Generalization Beyond Transformers
In Section D, the authors show CNNs trained on CIFAR-100 exhibit the same pattern: SP with input-layer learning rate matches P's transfer quality. This suggests the first/last layer special role is architecture-agnostic, arising from their boundary position in the network.
Conclusion
This work provides both a quantitative framework for evaluating hyperparameter transfer and a surprising mechanistic insight: the primary practical benefit of P over SP for AdamW-trained Transformers comes from training the embedding layer fast enough.
Key takeaways:
- The three metrics (, , ) provide complementary diagnostic lenses for transfer quality
- The full P prescription is excessive—SP+Embd suffices
- Embedding layer learning rate is critical for both stability and transfer quality
Future directions:
- Extending analysis to other optimizers (SGD, Muon) whose update geometries differ
- Weight-tied embedding cases require careful treatment (naive SP needs output multiplier)
- Finding correct weight decay scaling in compute-optimal regimes where training horizon scales as
Limitations: Experiments limited to decoder-only Transformers with fixed depth, scaled to 1B parameters, trained with AdamW on a single dataset (FineWeb-Edu), with single random seed per configuration.
Related papers
- More Convincing, Not More Correct: Self-Play Reward Hacking of Reference-Free LLM Judges
Self-play training against reference-free LLM judges inflates pass rates without improving true accuracy, creating a 0.74 judge–truth gap; forcing judges to commit their own answer first collapses false positives from 0.719 to 0.012.
- Dense Contexts Are Hard Contexts: Lexical Density Limits Effective Context in LLMs
Lexical density, not just length, causally degrades LLM retrieval, activating lost-in-the-middle effects at contexts far below advertised limits.
- SPADE: Self-Play in Adaptive Synthetic Executable Environments
SPADE lets a single LLM both write executable training environments and solve them, achieving +8.1 average improvement over base on eight held-out benchmarks via hint-based regret self-play.