Zenaique

Spot what this continual pretraining plan gets wrong about forgetting

Spot the error·Medium·4.0 · 0·~2 min·Asked atGoldman SachsGongHebbia
Attempt it

Click any words you think contain an error. Click again to unmark.

Mark at least one word to submit.
TL;DR

Continual pretraining without replay, at the original peak LR, and without general-capability regression gates is the textbook recipe for catastrophic forgetting.

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

Picture a doctor who decides to spend a year reading nothing but cardiology papers. By the end she will know cardiology much better, but she will also have forgotten chunks of dermatology, pediatrics, and pharmacology because she was not practicing them. To stay sharp on the rest of medicine while specializing, she keeps a mix of general cases on her schedule. This plan instead tells the model to read only cardiology for the equivalent of a year, at full study intensity, and then claims the model will somehow remember everything else. It will not.

Key concepts

Concept explanation~2 min read

Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.

Continual pretraining is one of the most useful and most over-promised techniques in the LLM toolbox. Used carefully, it adds domain depth to a strong base model. Used carelessly, it produces a model that is mediocre at the new domain and noticeably worse at everything else. The plan in this question is the careless version, and the failures it embeds are common enough that almost every team has shipped a version of them at least once.

This walkthrough develops the catastrophic-forgetting default, the three countermeasures, and the Pareto-frontier framing that lets you reason about the tradeoff explicitly rather than wishing it away.

Why forgetting is the default

Gradient descent does not respect prior training. When the model takes a step in parameter space, the step is computed from the current loss on the current batch. If the current batch is PubMed and the model was previously good at general web text, the gradient pushes the weights in a direction that improves PubMed loss. Whether that direction also degrades general capability depends entirely on whether the two loss surfaces are aligned, and in practice they often are not.

This is the textbook setup for catastrophic forgetting. The phenomenon is named, measured, and reproducible. A continual pretraining run with no countermeasures will degrade general benchmarks by single-digit to double-digit points depending on token budget, LR, and the size of the distribution shift.

The plan in this question commits to all three of the things that maximize forgetting: pure-domain data, original peak LR, no regression evals. The model will indeed get better at PubMed text. It will also get visibly worse at MMLU, HumanEval, and any reasoning benchmark.

Replay: the highest-leverage countermeasure
Learning rate: why the original peak is wrong
Regression gates and the Pareto frontier
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.

Real products, models, and research that use this idea.

  • Meta's Llama 3 continual pretraining experiments use replay mixtures with tens of percent general data and reduced peak LR relative to the original base training run
  • BloombergGPT's domain adaptation work documents replay-mixture choices and reports both finance-domain gains and general-benchmark retention as paired metrics
Sign in to see more production examples.

What an interviewer would ask next. Try answering before peeking at the approach.

QHow would you pick the replay fraction for a new domain you have not adapted to before?
A

Run small proxy ablations at 0, 10, 30, 50 percent replay, measure domain gains and general regressions, fit the Pareto curve, and pick the point where general regression is within tolerance. Document the choice as part of the run plan.

2 more follow-ups an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

Believing general capabilities are 'locked in' after base pretraining, so a domain-only continual run is safe, and then being surprised when MMLU and coding scores collapse.

Sign in to see all red flags and common mistakes.

60 second bullets to scan on the way to the call.

  • What is catastrophic forgetting and why is it the default in continual pretraining?

  • What replay fraction is typical and how is it chosen?

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
Why does SFT struggle…
MCQ·Medium