PAC-Bayes bounds for cumulative loss in Continual Learning

Lior Friedman, Ron MeirICLR 2026

In the world of machine learning, we often face a frustrating trade-off: if a model is too good at remembering the past, it struggles to learn new things (low plasticity). Conversely, if it is too eager to learn new things, it wipes out its previous knowledge (catastrophic forgetting). While researchers have developed many practical tricks to manage this "stability-plasticity dilemma," the field has lacked a rigorous theoretical way to guarantee how well a model will perform across a long sequence of tasks.

A new paper from researchers at the Technion changes that. They have derived the first general PAC-Bayes upper bounds for cumulative loss in continual learning, providing a mathematical "risk certificate" for a model's ability to learn over time.

TL;DR

This paper introduces the first algorithm-agnostic theoretical bounds for cumulative loss in continual learning. By extending PAC-Bayes theory, the authors provide a way to calculate a "risk certificate" that guarantees a model's performance across a sequence of tasks. Their work reveals that for effective learning, the number of samples per task must grow relative to the total number of tasks.

What Problem Does This Paper Address?

Continual Learning (CL) is the study of models that learn from a sequential stream of data. The ultimate goal is to achieve forward transfer—using old knowledge to learn new tasks faster—while avoiding catastrophic forgetting.

Continual learning setup illustrating cumulative versus average error across sequential tasks.

Most existing theory in CL focuses on "memory stability," or how much a model forgets. However, there has been a significant gap in understanding "learning plasticity"—the cumulative error a model incurs as it moves through a sequence of new tasks. Previous bounds were often restricted to very specific cases, like linear regression or infinitely wide neural networks. This paper seeks a general framework that works for any task distribution and any learning algorithm, answering a critical question: Can we provide a reliable guarantee on the total error a model will make over its entire lifetime?

Methods

The authors utilize the PAC-Bayes framework, which provides generalization bounds by comparing a "prior" distribution of models (what we know before seeing data) to a "posterior" distribution (what we learn after seeing data).

Key technical contributions include:

  • Extension to CL: They adapted online learning bounds to the CL setting, where data arrives in "task batches" rather than one example at a time.
  • Convergent Bounds: They derived a specific bound that actually gets more accurate as the number of tasks increases, provided the model has enough samples per task.
  • Oracle Bounds: For specific scenarios (like alternating between two tasks or gradual task shifts), they used "Gibbs posteriors" and Laplace’s method to create "Oracle" bounds. These theoretical limits show exactly how task similarity and ordering affect the final error.

Datasets

The researchers validated their theory using a mix of classic computer vision benchmarks and synthetic tasks:

  • Permuted-MNIST: A domain-incremental task where pixels are shuffled differently for each task.
  • Split-MNIST & Split-CIFAR10: Sequential binary classification tasks carved out of standard datasets.
  • Split-ImageNet: A more challenging sequence using 50-class subsets of ImageNet.
  • Synthetic Linear Regression: Used to verify the "Oracle" bounds with high precision.

Key Insights and Ideas

  • The $\sqrt{T}$ Rule of Thumb: The mathematics suggest a practical guideline for engineers: for a continual learning process to be theoretically "stable," the number of samples per task ($m$) should ideally exceed the square root of the total number of tasks ($T$).
  • Plasticity Certificates: This is the first time researchers can provide a "non-vacuous" certificate for learning plasticity. This means the bound is actually useful in practice, rather than just stating the obvious (e.g., "error is less than 100%").
  • The Power of the Prior: In CL, the posterior of the previous task becomes the prior for the next. The authors show that as the model sees more tasks, this prior becomes "better informed," which actually tightens the error bounds over time.
  • Task Order is Quantifiable: The Oracle bounds prove mathematically what we’ve observed empirically: task order matters. For example, swapping between two tasks once is significantly better for cumulative loss than constantly alternating between them.

Key Results

The authors tested their bounds against common CL algorithms like Variational Inference (VI) and Elastic Weight Consolidation (EWC).

  • Tightness: For Split-MNIST using EWC, the actual cumulative error was 0.9%, while their theoretical bound was 4.2%. This is remarkably tight for a generalization bound.
  • VI Advantage: The bounds for Variational Inference were even tighter than EWC. This makes sense because the VI objective function is mathematically designed to minimize the same terms found in the PAC-Bayes bound.
  • Non-Linear Success: Even on complex tasks like Split-ImageNet, the bounds remained non-vacuous, providing a meaningful upper limit on expected error where previous theories might have failed.
Empirical results on Split-ImageNet showing non-vacuous bounds for cumulative loss (CuL) across different methods.

Limitations and Future Work

While a major step forward, the authors note a few hurdles for future research:

  • Scaling the KL-Divergence: PAC-Bayes bounds rely on a "complexity term" (KL-divergence) that can be difficult to calculate for massive models with millions of parameters, such as Large Language Models (LLMs).
  • Task Boundaries: The current work assumes we know exactly when one task ends and another begins. Future work could explore "blurry" boundaries where task transitions are gradual or unknown.
  • Loss Functions: The results currently assume "light-tailed" or bounded loss functions. Extending this to "heavy-tailed" losses, which are common in some regression tasks, is a logical next step.

Paper Citation: Friedman, L., & Meir, R. (2025). PAC-Bayes bounds for cumulative loss in Continual Learning. Published as a conference paper at ICLR 2026.

Summary updated

BibTeX
@inproceedings{friedman2026pac,
  author = {Lior Friedman and Ron Meir},
  title = {{PAC-Bayes bounds for cumulative loss in Continual Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=hWw269fPov},
}
Figure