Fixed Design Analysis of Regularization-Based Continual Learning

Haoran Li, Jingfeng Wu, Vladimir Braverman

Abstract

We consider a continual learning (CL) problem with two linear regression tasks in the fixed design setting, where the feature vectors are assumed fixed and the labels are assumed to be random variables. We consider an $\ell_2$-regularized CL algorithm, which computes an Ordinary Least Squares parameter to fit the first dataset, then computes another parameter that fits the second dataset under an $\ell_2$-regularization penalizing its deviation from the first parameter, and outputs the second parameter. For this algorithm, we provide tight upper and lower bounds on the average risk over the two tasks. Our risk bounds reveal a provable trade-off between forgetting and intransigence of the $\ell_2$-regularized CL algorithm: with a large regularization parameter, the algorithm output forgets less information about the first task but is intransigent to extract new information from the second task; and vice versa. Our results suggest that catastrophic forgetting could happen for CL with dissimilar tasks (under a precise similarity measurement), and that a well-tuned $\ell_2$-regularization can partially mitigate this issue by introducing intransigence.

Introduction

Continual Learning (CL) aims to enable agents to learn a sequence of tasks without forgetting previously acquired knowledge. A common challenge is "catastrophic forgetting," where new learning overwrites old information. While regularization techniques like Elastic Weight Consolidation (EWC) are widely used to mitigate this, they often introduce "intransigence"—an inability to adapt to new tasks. This paper provides a rigorous statistical analysis of this trade-off within the context of linear regression.

Theoretical Framework

The study focuses on a two-task CL problem under a fixed design setting, where input features are fixed and labels are subject to random noise. Two primary algorithms are analyzed:

  1. Ordinary Continual Learning (OCL): Fine-tuning on the second task starting from the first task's weights without additional constraints.
  2. $\ell_2$-Regularized Continual Learning ($\ell_2$-RCL): Fine-tuning on the second task with an $\ell_2$ penalty anchoring the weights to the first task's solution. This approach is mathematically equivalent to EWC when the first task's data covariance matrix is isotropic.

The authors derive exact risk bounds by decomposing the total expected risk into two quantifiable components: Forgetting (loss of information from the first task) and Intransigence (failure to capture information from the second task).

The Forgetting-Intransigence Trade-off

The analysis reveals that the success of OCL depends heavily on task similarity, specifically the alignment of data covariance matrices. For OCL to succeed, the trace condition $\text{tr}\{\mathbf{H}^{(1)}(\mathbf{H}^{(2)})^{-1}\} = o(n)$ must hold.

In contrast, $\ell_2$-RCL introduces a regularization parameter $\mu$ that allows for a controlled trade-off. Increasing $\mu$ reduces the Forgetting term (scaling with $(\mathbf{H}^{(2)} + \mu\mathbf{I})^{-2}$) at the cost of increasing the Intransigence term (scaling with $\mu^2$).

Simulation Results

To validate these theoretical bounds, the authors conducted synthetic linear regression experiments across three levels of task similarity: $Q(5,0)$ (similar), $Q(15,0)$ (moderately dissimilar), and $Q(15,15)$ (highly dissimilar).

Excess risk comparison across varying task similarities: (a) similar, (b) moderately dissimilar, and (c) highly dissimilar tasks.

As shown in the figure, OCL performs well on similar tasks but fails as dissimilarity increases. $\ell_2$-RCL successfully manages the trade-off for moderately dissimilar tasks. However, for highly dissimilar tasks, even optimal regularization fails to match the performance of a Joint Learning (JL) baseline, indicating a fundamental limit to simple $\ell_2$ regularization.

Conclusion and Future Work

This work provides a mathematical foundation for understanding the trade-offs in regularization-based CL. While $\ell_2$-RCL is effective for moderately dissimilar tasks, its failure in highly dissimilar scenarios suggests the need for more sophisticated, Hessian-aware regularization methods. Future research will aim to extend these findings to random design settings and non-commuting covariance matrices.

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