Memory Bounds for Continual Learning

Xi Chen, Christos H. Papadimitriou, Binghui Peng

Abstract

Continual learning, or lifelong learning, aims to enable machine learning models to solve a sequence of $k$ different tasks while retaining proficiency in earlier ones. A central goal is to achieve better efficiency than simply maintaining $k$ separate models. This paper investigates the complexity-theoretic limits of continual learning within the PAC framework. Using communication complexity, the authors establish that any single-pass learner requires memory that grows linearly with the number of tasks $k$. However, with multiple passes over the data, memory requirements can be significantly reduced through improper learning and multiplicative weights update (MWU) algorithms.

Introduction

The ambition of artificial intelligence is to create systems capable of learning throughout their existence, accumulating knowledge across diverse domains without "catastrophic forgetting." In this paradigm, known as continual learning, a model encounters a sequence of $k$ tasks. The fundamental question is whether a learner can be more efficient than the "obvious" solution: allocating a dedicated model or a fixed block of memory for every new task encountered.

In "Memory Bounds for Continual Learning," researchers from Columbia University provide a rigorous theoretical analysis of this problem. Their findings suggest that for the most common "streaming" scenarios, the "quantity discount" for memory—where the marginal cost of adding a task decreases—does not exist.

The PAC Framework for Continual Learning

The authors frame the problem using the Probably Approximately Correct (PAC) learning model. They consider a learner that must master $k$ tasks, each characterized by a hypothesis class with VC-dimension $d$. The learner processes tasks sequentially, and the goal is to output a hypothesis (or set of hypotheses) that performs well on all $k$ tasks.

The study focuses on the memory complexity $m$: how many bits must the learner store to maintain its performance across the entire sequence? To probe these limits, the researchers utilize synthetic hypothesis classes, such as line functions over finite fields and Reed-Solomon codes, which allow for precise mathematical bounds.

The "No Quantity Discount" Theorem

The paper's most significant contribution is a lower bound for single-pass continual learning. In a single-pass setting, the learner sees the data for each task once and then moves on.

Using tools from communication complexity, the researchers designed a three-party communication game involving Alice (who observes early tasks), Bob (who observes later tasks), and Charlie (a tester). They proved that to satisfy the requirements of all tasks, the learner's memory must scale linearly with $k$. Specifically, any $(\epsilon, 0.01)$-continual learner requires $\Omega(kdb/\epsilon)$ bits of memory, where $b$ is the data description size.

This result implies that single-pass continual learning is fundamentally as expensive as storing a separate model for every task. There is no inherent "sharing" of memory that can bypass this linear growth in the worst case, suggesting that the pure streaming style of continual learning is mathematically intractable for memory-constrained systems.

The Power of Multi-Pass Learning and Replay

While the single-pass results are sobering, the paper offers a path forward through multi-pass learning. If the learner is allowed to revisit data from previous tasks—a technique known in empirical research as "experience replay"—the memory requirements change dramatically.

The authors propose an algorithm based on the Multiplicative Weights Update (MWU) method. By maintaining weights over a set of hypothesis "experts" and updating them over $c$ passes, the memory requirement can be reduced to $(k/\epsilon)^{O(1/c)}db$. If the number of passes $c$ is logarithmic relative to $k$ ($c \approx \log k$), the memory requirement becomes nearly independent of the number of tasks. To maintain optimal sample complexity during this process, the authors introduce a technique called truncated rejection sampling.

Proper vs. Improper Learning

A crucial distinction highlighted in the research is the difference between "proper" and "improper" learners. A proper learner is constrained to choose a hypothesis from the original hypothesis class. An improper learner, however, can output any function (such as a complex neural network that approximates the target).

The paper demonstrates an exponential separation between the two: improper learners are significantly more memory-efficient in multi-pass scenarios. This provides a theoretical justification for why complex, overparameterized models (which act as improper learners) are often more successful at continual learning than simpler, constrained models.

Conclusion

This research establishes the first rigorous memory bounds for continual learning, highlighting a fundamental trade-off between data access and memory efficiency. While single-pass learning is memory-intensive, the introduction of "replay" mechanisms and improper learning allows for much more scalable systems. These theoretical insights validate current empirical trends in AI and suggest that future breakthroughs in lifelong learning will likely rely on sophisticated data-revisit strategies and flexible hypothesis representations.

Summary updated

BibTeX
@inproceedings{chen2022memory,
  author = {Xi Chen and Christos H. Papadimitriou and Binghui Peng},
  title = {{Memory Bounds for Continual Learning}},
  booktitle = {DistShift @ NeurIPS},
  year = {2022},
  url = {https://openreview.net/forum?id=2RVRDlmzLN},
}
Figure