TL;DR
Standard practice optimizes large language model (LLM) pretraining hyperparameters to minimize validation loss, assuming that a lower loss automatically yields a better base model. This paper challenges that assumption, demonstrating that higher pretraining weight decay significantly improves "model plasticity"—the ability to adapt during fine-tuning—even when it results in a higher (worse) pretraining validation loss.
What Problem Does This Paper Address?
Modern LLMs are developed in two distinct stages: massive-scale pretraining to create a base model, followed by post-training (fine-tuning, alignment, and reinforcement learning) to prepare the model for downstream tasks. Currently, these two stages are treated as decoupled. Pretraining teams optimize hyperparameters like weight decay solely to achieve the lowest possible cross-entropy validation loss.
However, does a lower pretraining loss always translate to a better fine-tuned model? The authors address this critical gap by studying pretraining through the lens of model plasticity—the capacity of a pretrained model to effectively flex, change its internal representations, and learn new tasks without needing a complete reinitialization.
Methods
The authors conducted a systematic, end-to-end empirical study by varying the weight decay hyperparameter ($\lambda$) in the AdamW optimizer during the pretraining phase and subsequently evaluating the models after supervised fine-tuning (SFT).
To ensure robust conclusions, they scaled their experiments across:
- Two model families: Llama-2 and OLMo-2.
- Multiple model sizes: Up to 4B parameters.
- Two training regimes: Compute-optimal (20 tokens-per-parameter, or TPP) and overtrained (140 TPP).
To understand why weight decay impacts plasticity, the authors also introduced three mechanistic probes:
- Linear Probing: Training a linear classifier on intermediate layer embeddings to test if representations are linearly separable.
- Attention Pseudo-Rank: Computing the effective dimensionality of the query-key ($W_{QK}$) and value-projection ($W_{VP}$) matrices.
- Train-Val Gap: Tracking the difference between validation and training loss to quantify overfitting.
Datasets
The models were pretrained on standard high-quality web corpora:
- FineWeb-Edu (for Llama-2 models)
- OLMo-Mix-1124 (for OLMo-2 models)
For downstream evaluation, the authors fine-tuned the models on a diverse suite of twelve benchmarks spanning three categories:
- Chain-of-Thought (CoT) Reasoning: MetaMathQA, MedMCQA, PubMedQA, MMLUProCoT, RACE, and SimpleScaling.
- Language Understanding & Commonsense: HellaSwag, Winogrande, PiQA, Arc-Easy, and Arc-Challenge.
- Safety Alignment: A general-purpose instruction dataset mixed with safety-related prompts from Bianchi et al. (2024).
Key Insights and Ideas
- The Pretraining Loss Deception: Optimizing hyperparameters purely for pretraining validation loss can actively harm downstream performance. There is a clear training regime where higher weight decay leads to worse pretraining loss but superior post-tuning accuracy.
- Structured Representations Ease Adaptation: Mechanistic analysis revealed that higher weight decay encourages more structured, linearly separable internal representations. This means fine-tuning can focus on aligning existing features to the new task rather than forcing the model to learn entirely new feature extractors from scratch.
- Low-Rank Attention Prevents Noise Overfitting: Weight decay naturally reduces the pseudo-rank of attention matrices. By forcing these matrices into lower-rank configurations, the model avoids memorizing high-dimensional noise in the pretraining data, capturing broader, more adaptable patterns instead.
- Mitigating the Stability-Plasticity Dilemma: Higher weight decay monotonically decreases the train-val loss gap, meaning it reduces overfitting. Less memorization of pretraining data leaves the model with more capacity to absorb new knowledge during fine-tuning.
Key Results
The paper's primary finding is that the optimal weight decay for downstream performance is consistently higher than both the standard default (0.1) and the value that minimizes pretraining loss.
As seen in the pretraining loss curves above, for 20 TPP models, the lowest pretraining loss occurs at a weight decay of 0.5–0.6. However, when looking at downstream performance after fine-tuning, the optimal pretraining weight decay shifts even higher to 1.0.
The contrast is even sharper in the overtrained (140 TPP) regime. For the OLMo-2-1B-140x model, the standard default of 0.1 yields the best pretraining validation loss. Yet, after fine-tuning on downstream tasks, the model pretrained with a higher weight decay of 0.3 significantly outperforms the 0.1 variant across multiple metrics (such as Greedy and Pass@16 accuracy).
Limitations and Future Work
While comprehensive, the authors acknowledge a few limitations:
- Scale Constraints: The study evaluates models up to 4B parameters and 140 TPP. Whether these exact trade-offs hold for frontier-scale models (e.g., 70B+ parameters trained on tens of trillions of tokens) remains to be verified.
- Correlational Mechanisms: While the effect of weight decay on plasticity is causal, the underlying explanations (linear separability, attention rank reduction) are correlational, as it is difficult to isolate these variables during training.
Future research directions include exploring weight decay dynamics in other foundation modalities (like vision and multimodal models) and investigating more complex post-training pipelines beyond standard supervised fine-tuning.
Summary updated