Fixed Design Analysis of Regularization-Based Continual Learning

Haoran Li, Jingfeng Wu, Vladimir Braverman

TL;DR

This paper provides a rigorous theoretical foundation for the well-known trade-off between "forgetting" and "intransigence" in continual learning. By analyzing a two-task linear regression model, the authors prove that $\ell_2$-regularization acts as a control knob: a strong penalty prevents forgetting old tasks but makes the model too stubborn to learn new ones, while a weak penalty allows for new learning at the cost of catastrophic forgetting.

What Problem Does This Paper Address?

Continual Learning (CL) aims to train agents on a sequence of tasks without access to previous data, mimicking how humans learn throughout their lives. However, artificial neural networks suffer from catastrophic forgetting—the tendency to completely lose performance on Task A after being trained on Task B.

Practitioners often use regularization (like $\ell_2$ distance to the previous model's weights) to mitigate this. While this works empirically, it introduces intransigence: the model becomes so anchored to its previous state that it can't effectively learn the new task. Until now, the statistical relationship between these two forces was mostly understood through intuition and experiments. This paper seeks to replace that intuition with sharp mathematical bounds and a precise definition of "task similarity."

Methods

The authors focus on a fixed design setting for two linear regression tasks. In this setup, the feature vectors (inputs) are considered fixed, while the labels (outputs) are random variables.

They compare three approaches:

  1. Ordinary Continual Learning (OCL): The model fits Task 1 using Ordinary Least Squares (OLS), then fits Task 2 starting from the Task 1 weights without any extra constraints.
  2. $\ell_2$-Regularized Continual Learning ($\ell_2$-RCL): Similar to OCL, but when learning Task 2, a penalty ($\mu$) is added to prevent the weights from straying too far from the Task 1 weights.
  3. Joint Learning (JL): An "ideal" baseline where the model has access to both datasets simultaneously.

The core of their analysis is a forgetting-intransigence decomposition of the total risk. They derive exact formulas for how much the final model's error is driven by forgetting Task 1 versus failing to adapt to Task 2.

Datasets

The study uses synthetic datasets designed to test specific theoretical scenarios. The authors introduce a family of problem instances denoted as $Q(k, l)$, where $k$ and $l$ are parameters that control the alignment (similarity) between the covariance matrices of the two tasks.

  • $Q(5, 0)$: Highly similar tasks.
  • $Q(15, 0)$: Moderately dissimilar tasks.
  • $Q(15, 15)$: Extremely dissimilar tasks.

Key Insights and Ideas

  • The "Similarity" Metric: The paper defines task similarity not by the weights themselves, but by the alignment of the "small eigenvalue spaces" of the tasks' covariance matrices. If Task 2 has very little information in the directions where Task 1 was most informative, forgetting becomes catastrophic.
  • The Regularization Dial: The hyperparameter $\mu$ is a literal trade-off parameter. Increasing $\mu$ mathematically reduces the "forgetting" term in the risk bound but simultaneously increases the "intransigence" and "bias" terms.
  • $\ell_2$-RCL's "Goldilocks" Zone: For moderately dissimilar tasks, OCL fails completely. However, a well-tuned $\ell_2$-RCL can find a middle ground that OCL cannot, effectively "tempering" the forgetting by accepting a tolerable amount of intransigence.
  • Fundamental Limits: The authors prove that for "extremely dissimilar" tasks, simple $\ell_2$ regularization is insufficient. In these cases, forgetting and intransigence are in such high tension that no value of $\mu$ can achieve low total risk.

Key Results

The theoretical findings are validated through numerical simulations, as seen in the figures below.

Figure 1: Excess risk vs. sample size for different task similarities. In (a), tasks are similar and all methods converge. In (b), tasks are moderately dissimilar; OCL fails (catastrophic forgetting), but $\ell_2$-RCL stays competitive with Joint Learning. In (c), tasks are extremely dissimilar, and both CL methods fail to match Joint Learning.

As shown in Figure 1(b), $\ell_2$-RCL significantly outperforms OCL when tasks are not perfectly aligned, proving that regularization is a necessary tool for stability. However, Figure 1(c) highlights the "limitation" mentioned in the insights: some tasks are simply too different for this basic approach.

Figure 2: The trade-off visualized. As the hyperparameter $\mu$ increases, forgetting (orange) drops while intransigence (green) rises. For the solvable case (a), there is a "sweet spot" where the total excess risk (blue) is minimized. In the hard case (b), the curves never overlap at a low point.

Figure 2 provides the "aha moment" for the trade-off. It visually confirms that the optimal regularization strength is the point where the decreasing forgetting curve meets the increasing intransigence curve.

Limitations and Future Work

  • Linearity: The analysis is restricted to linear regression. While this provides clarity, extending these sharp bounds to deep neural networks remains a significant challenge.
  • Two-Task Limit: While the paper provides a framework for $T$ tasks, the detailed analysis focuses on the transition between two.
  • Commutativity: The authors assume the data covariance matrices commute ($H^{(1)}H^{(2)} = H^{(2)}H^{(1)}$) to simplify the math. Relaxing this assumption is noted as an open technical problem.
  • Advanced Regularizers: The failure of $\ell_2$-RCL on extremely dissimilar tasks suggests that more sophisticated methods—like Elastic Weight Consolidation (EWC), which uses Hessian information to regularize different weights differently—need similar theoretical treatment.

Summary updated

BibTeX
@inproceedings{li2023fixed,
  author = {Haoran Li and Jingfeng Wu and Vladimir Braverman},
  title = {{Fixed Design Analysis of Regularization-Based Continual Learning}},
  booktitle = {CoLLAs},
  year = {2023},
  url = {https://openreview.net/forum?id=X76ffp6sGJ},
}
Figure