Memory-Statistics Tradeoff in Continual Learning with Structural Regularization

Haoran Li, Jingfeng Wu, Vladimir Braverman

Introduction

In Continual Learning (CL), an agent learns a sequence of tasks over time. The "holy grail" of this field is to learn new tasks without forgetting old ones—a phenomenon known as catastrophic forgetting. While many heuristic algorithms (like Elastic Weight Consolidation, or EWC) use regularization to mitigate this issue, the theoretical relationship between memory (how much information about previous tasks we store) and statistical performance (the final error rate) has remained elusive.

This paper provides a rigorous mathematical proof for a fundamental tradeoff in continual learning: the more memory allocated to store the "importance" (curvature) of previous tasks, the better the model performs on all tasks combined. The authors demonstrate that a well-designed structural regularization—which tracks the Hessian of previous tasks—can actually match the performance of joint training (having all data at once), provided the memory budget is sufficient.

Methodology: Generalized $\ell_2$-Regularized Continual Learning

To tackle these questions, the authors analyze an algorithm called Generalized $\ell_2$-regularized Continual Learning (GRCL) within the framework of linear regression under covariate shift.

When moving from Task 1 to Task 2, GRCL does not simply keep the new weights close to the old ones using standard $\ell_2$ regularization. Instead, it employs a structural regularization matrix ($\Sigma$). This matrix acts as a "memory" of which parameter directions were most important for Task 1.

The study focuses on:

  • Random Design Settings: Unlike previous "fixed design" proofs, this accounts for the randomness of incoming data.
  • One-hot and Gaussian Designs: The authors prove bounds for simple one-hot features and extend them to more complex Gaussian distributions.
  • NTK Regime: They show their findings apply to neural networks operating in the Neural Tangent Kernel (NTK) regime, where wide networks behave similarly to linear models.

The theoretical constructions are verified using synthetic designs (One-hot and Gaussian) and standard CL benchmarks like Permuted MNIST and Rotated MNIST to test the theory on actual neural networks (MLPs and CNNs).

Key Insights and Results

  • The Memory-Statistics Tradeoff: The core finding is that the excess risk of a CL agent is inversely related to the number of vectors (rank) stored in the regularization matrix. Storing more "directions of importance" systematically drops the risk.
  • Curvature is King: Naive continual learning fails because it ignores the "curvature" of the loss landscape. If Task 1 has a very sharp minimum in one direction and Task 2 is flat there, the model will drift away from the Task 1 solution unless the regularizer explicitly preserves that sharp curvature.
  • Matching Joint Learning: GRCL is not just a "second-best" option. With enough memory to capture the dominant eigenvalues of the Task 1 Hessian, GRCL achieves the same error rate as Joint Learning (training on both tasks simultaneously).
Convergence and Memory-Statistics Trade-off of GRCL
  • Provable Bounds and Efficiency: The authors established matching upper and lower bounds for the "joint excess risk," showing exactly how the choice of $\Sigma$ affects performance. Crucially, we don't need to store the entire $d \times d$ Hessian matrix (which costs $O(d^2)$ memory). Storing a low-rank approximation (the top $k$ eigenvectors) is often enough to eliminate most forgetting. In experiments, a higher-rank regularizer significantly outperformed a lower-rank one, perfectly following the predicted theoretical curve.
  • The "Tail" Trap: In Gaussian settings, forgetting doesn't just happen because of major feature differences. Even slight differences in the "tail" (less significant features) can cause the model to forget, representing a more subtle form of catastrophic forgetting.

Limitations and Future Work

  • Linearity Bias: The theoretical heavy lifting is done in the context of linear regression and the NTK regime. While this covers a lot of ground, it doesn't fully capture the non-linear dynamics of deep learning outside the "lazy training" regime.
  • Two-Task Focus: While the authors provide a multi-task extension in the appendix, the primary sharp bounds are derived for a two-task scenario. Extending the "sharpness" of these bounds to a long sequence of $T$ tasks remains a challenge.
  • Gaussian Design Gaps: The authors acknowledge a technical gap between the upper and lower bounds in the Gaussian design case, leaving room for future researchers to tighten the theory.

Summary updated

BibTeX
@inproceedings{li2026memory,
  author = {Haoran Li and Jingfeng Wu and Vladimir Braverman},
  title = {{Memory-Statistics Tradeoff in Continual Learning with Structural Regularization}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=qfEqXJnlB4},
}
Figure