← Latest papers
💬 NLP

Sharpness-Aware Pretraining Mitigates Catastrophic Forgetting

This paper demonstrates that biasing pretraining optimization toward flatter minima through methods like Sharpness-Aware Minimization, large learning rates, or shortened annealing periods significantly mitigates catastrophic forgetting and improves downstream performance across various model sizes and post-training tasks.

Original authors: Ishaan Watts, Catherine Li, Sachin Goyal, Jacob Mitchell Springer, Aditi Raghunathan

Published 2026-05-06
📖 4 min read☕ Coffee break read

Original authors: Ishaan Watts, Catherine Li, Sachin Goyal, Jacob Mitchell Springer, Aditi Raghunathan

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are training a master chef (the AI model) by having them taste millions of different dishes (pretraining). The goal is to make them the best possible chef before you send them to work in a specific restaurant kitchen (post-training/fine-tuning).

For a long time, researchers thought the only thing that mattered was making the chef taste the best during that initial training phase. They assumed that if the chef started out as a "perfect" generalist, they would automatically be a great specialist later, no matter what changes happened in the kitchen.

The Problem: The "Rigid" Chef
This paper argues that assumption is wrong. It turns out that some chefs are trained to be so rigidly perfect at the general tasting that they break easily when asked to do something new.

Think of it like a ball sitting in a valley.

  • The Standard Approach (AdamW): This trains the chef to sit in a very deep, narrow, sharp valley. They are very good at staying exactly where they are. But if you nudge them slightly (like asking them to learn a new recipe or compressing their memory to fit in a smaller pocket), they roll out of the valley immediately. They "forget" everything they knew.
  • The Paper's Solution (Sharpness-Aware): This trains the chef to sit in a wide, flat valley. They might not be at the absolute deepest point of the valley, but they are surrounded by flat ground. If you nudge them, they don't fall out; they just roll a little bit and stay safe. They are "robust."

What the Researchers Did
The team tested three ways to train these "flat valley" chefs instead of "sharp valley" chefs:

  1. The "Shake" Method (SAM): They used a special technique called Sharpness-Aware Minimization. Imagine that while the chef is learning, you gently shake the table. If the chef can still taste the food correctly while the table is shaking, they are learning to be stable. This forces the model to find those wide, flat valleys.
  2. The "Fast Lane" Method (High Learning Rates): They made the chef learn faster and more aggressively at the start. This is like running a race; if you run fast enough, you naturally avoid getting stuck in tiny, deep holes in the road.
  3. The "Quick Stop" Method (Shorter Annealing): Usually, training ends by slowly slowing the chef down. The researchers found that stopping the slowdown early (keeping the pace up for longer) helped the chef stay in that stable, flat zone.

The Results
They tested this on models of different sizes (from small to medium-large) and found:

  • Less Forgetting: When these "flat valley" models were later asked to learn specific tasks (like math or coding) or had their memory compressed (quantization) to run faster, they forgot much less of their original knowledge.
  • The "Mid-Training" Hack: You don't need to use this special "shaking" method for the entire training process, which is expensive. They found that just using it for the last 10% of training (the "annealing" phase) gave almost all the benefits for a tiny fraction of the cost.
  • Real-World Proof: They tested this on a large 1-billion-parameter model (OLMo-2-1B). Even though the model trained with this method started out slightly "weaker" at general tasks, it became 31% better at remembering its skills after learning math, and 40% better at keeping its skills after being compressed for efficiency.

The Big Takeaway
The paper concludes that we shouldn't just train AI to be the "best" at the starting line. We should train it to be flexible and stable so it doesn't break when we change its environment later.

It's the difference between training a gymnast to hold a perfect, rigid pose (which breaks if the floor tilts) versus training them to have a strong, balanced center of gravity (which lets them adapt to any new move without falling). By focusing on this "balance" (flatness) rather than just "perfection" (sharpness), we get AI models that are much better at learning new things without forgetting the old ones.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →