Nearly Optimal Bounds for Cyclic Forgetting

William Joseph Swartworth, Deanna Needell, Rachel Ward, Mark Kong, Halyun JeongNeurIPS 2023

Introduction

In the field of continual learning, models are tasked with learning sequentially. A notorious hurdle in this process is catastrophic forgetting: as a model adapts to a new task, it often "overwrites" the weights that made it successful at previous ones. While many researchers study this phenomenon empirically in deep neural networks, establishing rigorous theoretical foundations remains a critical challenge.

This paper focuses on the theoretical underpinnings of forgetting using linear regression. Specifically, it examines cyclic learning, a regime where a set of $T$ tasks is revisited $m$ times in a fixed order. The authors establish a new, nearly optimal theoretical bound of $O(T^2/m)$ for catastrophic forgetting in these cyclic linear tasks. Crucially, this bound is independent of the data's ambient dimension, solving a major limitation of previous models and revealing that the mathematical "range" of these learning processes follows the elegant geometry of a sinusoidal spiral.

The Challenge of Dimension Dependence

Previous theoretical bounds for cyclic learning setups were either loose or depended heavily on the "ambient dimension" (the number of features in the data, $d$). In modern machine learning, where dimensions are often massive, a dimension-dependent bound suggests that forgetting could scale poorly and be much worse than what is observed in practice. The authors set out to find a "dimension-independent" bound that holds uniformly for any possible choice of tasks, ensuring that whether the data has ten dimensions or ten million, the upper bound on forgetting remains stable.

Mathematical Framework: Projections and Quaternions

Because this is a purely theoretical work, it does not rely on empirical datasets or benchmarks. Instead, the authors model the learning process as a series of orthogonal projections. Each task is represented as a linear subspace, and learning a task equates to projecting the current model weights onto that subspace (essentially following the Block Kaczmarz algorithm).

Variables and their domains, including quaternions

To bound the forgetting, the researchers dive deep into functional analysis and operator theory. Their primary tool is the numerical range of an operator—the set of all possible values the "average" of the operator can take. They specifically analyze the product of $T$ projections, which represents one full cycle of learning.

A key technical innovation in their approach is the use of quaternions to simplify the complex algebraic conditions required to find the "boundary" of these numerical ranges. By mapping complex vectors to quaternions, they are able to characterize the worst-case scenarios for forgetting much more effectively than previous attempts that relied on standard matrix calculus.

Key Geometric Insight: The Sinusoidal Spiral

The authors discovered that the union of all possible numerical ranges for a product of $T$ projections forms a specific geometric shape: a filled sinusoidal spiral.

Nested sinusoidal spirals representing the numerical ranges

This is a striking result in pure mathematics that provides the exact "tightness" needed for their forgetting bound. They provide the first complete description of the range of the product of $k$ projections, demonstrating that it is the image of a regular $k$-gon under a specific power map ($z \to z^k$).

To connect this abstract geometry to practical learning loss, the paper leverages Crouzeix’s Inequality (2007). This powerful mathematical tool relates the geometric shape of the numerical range directly to the actual norm of the learning operator.

Main Results: A Dimension-Independent Bound

By focusing on the "supremum" (the absolute worst-case tasks), the authors ensure their bound is robust and cannot be exceeded by any adversarial arrangement of linear tasks.

  • The New Bound: The paper proves that forgetting after $m$ cycles of $T$ tasks is at most $O(T^2/m)$.
  • Improvement over Prior Work: This significantly improves upon the previous best dimension-independent bound of $O(T^2/\sqrt{m})$. By removing the square root in the denominator, the new bound proves that forgetting diminishes much faster as cycles are repeated than previously guaranteed.

Limitations and Future Directions

While the authors refer to their bound as "nearly optimal," a small gap remains. A known lower bound for this problem is $\Omega(T/m)$ (or $\Omega(T^2/mT)$ depending on notation). The authors' upper bound of $O(T^2/m)$ leaves a factor of $T$ to be potentially reconciled in future research.

Furthermore, the results are strictly constrained to linear tasks. Extending these dimension-independent insights to non-linear neural networks remains a massive open challenge in the field of continual learning. Finally, because this paper focuses on a fixed cyclic ordering, future work could investigate whether random task ordering might "beat" the $O(T^2/m)$ bound, or if randomness introduces new, unwanted dependencies on the ambient dimension.

Summary updated

BibTeX
@inproceedings{swartworth2023nearly,
  author = {William Joseph Swartworth and Deanna Needell and Rachel Ward and Mark Kong and Halyun Jeong},
  title = {{Nearly Optimal Bounds for Cyclic Forgetting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=X25L5AjHig},
}
Figure