Forgetting and Regularisation
Where the quadratic penalty in elastic weight consolidation comes from, why the Fisher information is the right curvature, and what the derivation assumes that deep networks violate.
Fisher information is curvature
Let be a family of densities, smooth in , with support not depending on and with differentiation under the integral sign permitted twice. Define the Fisher information
Then
Assumptions
The regularity conditions are doing real work: fixed support, and the exchange of with . Note also that both expectations are under the model , not under the data distribution. When the model is misspecified the two sides differ, and the discrepancy is exactly what the sandwich (robust) covariance corrects for.
Key idea
The Fisher is the expected curvature of the negative log-likelihood. So large means the old task's loss rises steeply when weight moves — the weight is load-bearing. means the loss is flat in that direction and the weight can be repurposed at no cost. It is also positive semidefinite by construction, being an expectation of outer products, which is what makes the penalty below a sensible convex pull.
From Bayes to a quadratic penalty
Let be a mode of the posterior . Approximating that posterior by a Gaussian via a second-order expansion at , the maximum a posteriori objective for the combined data becomes, up to additive constants,
where is the negative log-likelihood of and the Fisher information at .
Derivation
Conditional independence of the two datasets given the parameters.
with .
Second-order Taylor expansion of the old-task log posterior at its mode; the linear term vanishes there.
For a flat prior and observations, by the theorem above. Absorbing and the prior strength into a single hyperparameter gives .
Identify the curvature with the Fisher using the information matrix equality.
Negate to turn maximisation into minimisation.
In practice is replaced by its diagonal, giving the familiar per-weight form
What low rank buys
Let a layer compute and be adapted to . Then for every input ,
so weight decay on and directly limits the layer's deviation from the pretrained function.
Empirical observation — a regularity seen in experiments. No theorem on this page establishes it in general.
Fine-tuning a general model on a narrow distribution reliably reduces measured performance on capabilities the base model previously had, with degradation increasing in the number of steps and the learning rate, and decreasing when a fraction of general data is mixed into the fine-tuning set.
Open problem — no proof and no counterexample is known to the author of this page.
There is no quantitative theory predicting how much a given fine-tuning run will forget. Inputs to such a theory would include the divergence between the fine-tuning and pretraining distributions, the optimisation trajectory, and the geometry of the pretrained solution — and no current account combines them into a prediction that can be checked before training. Practitioners run the evaluation suite before and after, which is the honest method available.
References
- PaperJ. Kirkpatrick et al. (2017). Overcoming Catastrophic Forgetting in Neural Networks
- ChapterM. McCloskey, N. Cohen (1989). Catastrophic Interference in Connectionist Networks: The Sequential Learning ProblemThe original identification of the phenomenon, three decades before it mattered commercially.
These works are cited as sources to read, not reproduced. All exposition, examples and problems on this site are written independently; where an argument is standard, the citation points to a canonical treatment.
Results stated on this page
- TheoremInformation matrix equalityproof includedUnder regularity, the Fisher information equals the expected Hessian of the negative log-likelihood, so the Fisher is curvature.
- PropositionThe elastic-weight-consolidation objectiveproof includedA Laplace approximation to the posterior from the first task turns sequential learning into the new task's loss plus a Fisher-weighted quadratic pull toward the old weights.
- PropositionLow rank bounds how far the function can moveproof includedA rank-r adapter changes any layer's output by at most the adapter's spectral norm times the input norm, giving an explicit and controllable deviation budget.
- Empirical observationNarrow fine-tuning degrades unrelated capabilityFine-tuning on a narrow distribution measurably reduces performance on tasks the base model previously handled, with the loss growing with steps and learning rate.