Sharpness-Aware Pretraining Mitigates Catastrophic Forgetting
A forum post analyzing Watts et al. (2026), arXiv:2605.02105, which links the geometry of pretraining minima to downstream stability under post-training, quantization, and distillation.
Key points
- The standard pretraining objective \(\theta^* = \arg\min_\theta \mathcal{L}_{\text{pretrain}}(\theta)\) optimizes only the depth of the loss surface, not its shape. Minimum sharpness/flatness controls how much pretrained capability survives later parameter updates.
- Via second-order Taylor expansion, \(\mathcal{L}(\theta^* + \delta) \approx \mathcal{L}(\theta^*) + \tfrac{1}{2}\delta^T H(\theta^*)\delta\): sharp minima (large Hessian eigenvalues) turn small updates into large loss increases — the geometric root of catastrophic forgetting. Flat minima tolerate larger perturbations.
- Three mechanisms bias training toward flat minima, with orthogonal, combinable effects: 1. SAM (Sharpness-Aware Minimization, Foret et al. 2020): minimizes neighborhood worst-case loss \(\min_\theta \max_{\|\epsilon\| \le \rho} \mathcal{L}(\theta + \epsilon)\) via a two-step perturb-then-update procedure. Sharp basins receive large \(\nabla\mathcal{L}(\tilde{\theta})\) penalties and are pushed away from. 2. Larger learning rates: increase step size, ability to escape sharp local optima, and probability of landing in flat basins. Empirically, learning rate is negatively correlated with downstream forgetting. 3. Longer annealing (slower LR decay): extends the high-temperature exploration phase, analogous to avoiding quenching in simulated annealing.
- SAM costs ~2x compute (two forward-backward passes); mitigations include short mid-training phases, mSAM/ESAM approximations, or cost-free alternatives (larger LR, slow annealing).
- Theory assumes continuous gradient flow; Adam's momentum, adaptive step sizes, and second-moment estimates complicate the picture.
- Very deep Transformers (e.g., 96 layers) may exhibit emergent geometry per layer; needs verification.
- Title: Sharpness-Aware Pretraining Mitigates Catastrophic Forgetting
- Authors: Ishaan Watts, Catherine Li, Sachin Goyal, Jacob Mitchell Springer, Aditi Raghunathan
- arXiv: 2605.02105 (May 2026, cs.LG)
- Key results: up to 80% less forgetting (small scale), 40% less after 4-bit quantization (OLMo-2-1B)
Experimental evidence
| Scale | Intervention | Result | |:------|:-------------|:-------| | 20M–150M params, 5 downstream datasets | Flatness-oriented training | Up to 80% reduction in forgetting | | OLMo-2-1B | Short SAM mid-training + MetaMath post-training | 31% less forgetting | | OLMo-2-1B | Short SAM mid-training + 4-bit quantization | 40% less forgetting |
Notably, a short SAM phase applied to existing checkpoints suffices — no from-scratch retraining required, making flattening a viable remedial measure.
Critique of current evaluation frameworks
Benchmarks (perplexity, MMLU, GSM8K) measure pretraining loss but never minimum flatness. Consequences:
1. Leaderboard-winning models may be geometrically fragile. 2. Rankings may systematically reward sharp minima. 3. Downstream teams cannot predict a model's update stability.
Practical flatness proxies: stochastic Hessian trace estimates (Hutchinson), SAM loss values \(\max_{\|\epsilon\| \le \rho} \mathcal{L}(\theta+\epsilon)\), and performance drop under Gaussian parameter perturbation. The paper recommends adding SAM loss to standard pretraining evaluation.
Limitations
Conclusion
The work redefines what a "good pretrained model" means: minimize loss while maximizing minimum flatness. If flat minima systematically improve downstream stability, the pretraining race may need to shift from "who is lower" to "who is more stable."