Skip to content

Catastrophic forgetting and continual learning

Why learning a new task can erase old performance, how to measure retention, and when financial regime adaptation calls for selective forgetting.

Catastrophic forgetting is a severe loss of previously learned performance caused by training a model on new tasks or data. Continual learning studies how to acquire new capabilities over a sequence while retaining useful earlier ones. For a quant model updated from recent market observations, a better fit to the newest period can conceal the loss of a capability that remains valuable elsewhere.
The mechanism is interference: updates to shared neural-network parameters that help the new objective can damage an old objective. Kirkpatrick et al. (2017) demonstrate this problem and introduce a method for protecting parameters important to past tasks. Forgetting is a possible outcome of sequential training, not a necessary consequence of every update.

Two tasks, one parameter

Consider a deliberately restrictive synthetic model: its only prediction is one scalar ww. Task A wants the prediction 11; task B wants −1-1. Their losses are

LA(w)=(w−1)2,LB(w)=(w+1)2.L_A(w)=(w-1)^2,\qquad L_B(w)=(w+1)^2.

Training A to its optimum gives w=1w=1. Training B alone to its optimum then moves the same parameter to w=−1w=-1.

Model snapshotShared parameterLoss on ALoss on B
After training A104
After training B−140

The new task has been learned perfectly, yet the old loss has risen from zero to four. No old observation has been deleted; the model's parameter has changed.

Synthetic two-task losses over a shared scalar parameter w. Task A has zero loss at w=1 and task B at w=-1. After A the task losses are 0 and 4; after B they are 4 and 0. The equal-weight compromise w=0 gives loss 1 on each task.
Synthetic two-task losses over a shared scalar parameter w. Task A has zero loss at w=1 and task B at w=-1. After A the task losses are 0 and 4; after B they are 4 and 0. The equal-weight compromise w=0 gives loss 1 on each task.
Figure: Synthetic illustration: a parameter change can improve the new task while destroying the old fit. Losses are arbitrary squared-error units, not trading returns.

If both tasks matter equally, minimising their mean loss gives w=0w=0, with loss one on each. This is a compromise, not perfect retention plus perfect adaptation. The scalar cannot satisfy two incompatible targets simultaneously. A richer model with an observable task input could represent different answers; a real network may also have compatible solutions unavailable in this toy example.

Measure the old task after the update

A falling current-task loss cannot establish successful continual learning. Keep a task-performance matrix: each row is a saved model after an update, and each column is a fixed evaluation task. The table above is a tiny loss-based version. Lopez-Paz and Ranzato (2017), Section 2 formalise an accuracy-based matrix and distinguish backward transfer from forward transfer.

Retention compares an earlier task's performance before and after later training. Adaptation measures learning on the new task. Backward transfer can be beneficial: new learning may improve old tasks. State the metric's direction; higher accuracy is better, whereas higher loss is worse. An average across tasks can hide a collapse in one column, and small evaluation samples can make apparent changes noisy.

For financial data, define the required capabilities before scoring retention. For example, a hypothetical execution model might need to handle both liquid and thin books after an update concentrated on liquid trading. Evaluate each slice using fixed, separate held-out observations and consistent costs and targets. Training replay data must remain separate from evaluation data. Save model snapshots and keep the evaluation protocol chronological: future observations or labels cannot guide an earlier update.

This separates forgetting from concept drift. Drift changes the data-generating relationship; forgetting changes the model's performance on an earlier, fixed evaluation problem. A frozen model can deteriorate in a changing market without forgetting anything. Conversely, an updated model can forget an old task even when that task's evaluation distribution is unchanged.

If an obsolete pricing relationship should cease to influence predictions, downweighting it can be desirable adaptation. If a previously learned stress response remains part of the model's intended remit, losing it is a retention failure. Decide which historical behaviours should survive; maximising retention of every past regime is not automatically the right financial objective.

The available levers have different costs

ApproachWhat it preservesWhat must be checked
Replay or rehearsalExposure to stored examples from earlier tasks alongside new dataMemory and training cost; whether the retained sample covers important old behaviour; whether obsolete examples obstruct adaptation
RegularisationParameters or outputs judged important to earlier tasksWhether the importance estimate is informative; whether protection leaves enough freedom to learn the new task
Architectural separationEarlier computations through frozen or separate task componentsCapacity growth, shared preprocessing and how the correct component is selected at prediction time
Elastic weight consolidation (EWC) adds a quadratic penalty around old parameter values, using estimated parameter importance to weight the penalty. It does not simply freeze the whole network. Strong protection can hinder adaptation, and a local importance estimate need not protect every old behaviour. See Kirkpatrick et al., Results: EWC.
For replay mechanics, the SelfMadeQuant lesson Deep RL and policy gradients at the survey level explains storing and sampling past transitions (public preview; full lesson requires membership). Its DQN discussion concerns correlated training data; a replay buffer is not by itself proof of continual-learning retention.
Rusu et al., Progressive Neural Networks, Section 2 preserve old task columns by freezing them and adding new capacity with lateral connections. That protects the old computation under the stated architecture, but parameter growth and needing a task label for inference are explicit limitations. Frozen weights also do not protect against a changed external input pipeline or a changing market.
Finally, comparisons must match the prediction setting. In task-incremental evaluation, the task identity is supplied at test time; in domain-incremental evaluation, it is absent but the output problem stays shared; in class-incremental evaluation, new classes accumulate and the model must discriminate across the classes seen so far. Van de Ven and Tolias, Section 2 show why these protocols matter. A market-regime label known only in hindsight cannot serve as a live task selector. None of these method families removes the need to measure retention and adaptation under the actual deployment conditions.

Sources

Last updated
  • continual learning
  • neural networks
  • model monitoring
← Back to the glossaryBack to top ↑