To Retain or to Adapt? Generalizing Continual Learning

Giulia Lanzillotta, Mandana Samiei, Doina Precup, Razvan Pascanu, Claire VernadeTMLR 2026

TL;DR

For decades, continual learning has treated catastrophic forgetting as the ultimate enemy, assuming an ideal lifelong learner should retain everything it has ever seen. This paper challenges that premise: in a changing world, clinging to the past can actively slow down real-time adaptation. By reframing continual learning around Average Lifelong Error and introducing a new framework called Predictive Continual Learning, the authors show exactly when memory helps, when it hurts, and how to design algorithms that adapt their retention strategy to the environment.

What Problem Does This Paper Address?

Most continual learning (CL) methods aim to approximate Joint-Task Learning (JTL)—training on all past and current data—by using replay buffers, regularization, or parameter isolation to prevent forgetting.

But JTL carries a hidden assumption: that the world is ergodic, meaning future tasks will look like past tasks. When the environment shifts irreversibly (e.g., changing user preferences or sharp semantic transitions), optimizing for all past data forces the model to compromise between outdated and current distributions. In these settings, Independent-Task Learning (ITL)—which simply resets and learns each new task from scratch—can actually outperform JTL in real-time performance. The paper asks: when does past knowledge help versus hurt, and is there a principled way to unify these two extremes?

Methods

Shifting the goal from retrospective memory to real-time performance, the authors adopt the Average Lifelong Error (ALE) objective—the online expected error of a learner operating under computational constraints. They model both the environment and the learning algorithm as interacting stochastic processes and compare JTL against ITL using Transfer Efficiency (TE):

$$\text{TE}^k := \text{ALE}^k(\mathcal{A}_{\text{ITL}}) - \text{ALE}^k(\mathcal{A}_{\text{JTL}})$$

A positive TE means JTL beats ITL. The authors prove that TE decomposes cleanly into two competing forces:

  1. Instability ($\mathcal{I}^k$): The stationary performance gap at convergence—essentially, the bias JTL inherits from trying to fit conflicting past tasks.
  2. Transient Error ($\delta^k$): The optimization cost of moving from initialization to convergence—high for ITL (which starts from scratch) and low for JTL (which gets a warm start).
Figure 3: Concept map relating our framework to adjacent learning paradigms. The central blue spine shows our decomposition: the Average Task Error (ALEk) is decomposed into the Transfer Efficiency (TEk), which in turn splits into the Instability (Ik) and the Transient Error (δk). Each labeled arrow

Whenever average Instability is positive ($\bar{\mathcal{I}} > 0$), this decomposition yields a Critical Task Duration ($N_{\max}^\infty$): a threshold beyond which ITL overcomes its cold-start penalty and outperforms JTL.

To move beyond the binary choice between JTL and ITL, the authors connect CL to online learning with predictable sequences and propose Predictive Continual Learning (Predictive CL). Instead of implicitly assuming the future looks like all of the past (JTL) or none of it (ITL), Predictive CL algorithms optimize expected future loss under an explicit, dynamically updated model $\Phi(\mathcal{H}_{\le k})$ of future tasks. As a proof of concept, they analyze a Window algorithm that trains only on the most recent $W$ tasks.

General Continual Learning Objectives and Predictive CL spectrum

Datasets

The authors validate their theory across synthetic, vision, and reinforcement learning benchmarks:

  • CLEAR: 10 image classes evolving smoothly over 2004–2014 (low Instability).
  • MD5: A newly constructed sequence of 5 unrelated public classification datasets with sharp semantic transitions (high Instability).
  • MT10: A 10-task suite of Meta-World robotic-manipulation environments (high Instability).
  • Permuted-CIFAR & Shuffled-CIFAR: Controlled benchmarks built on CIFAR-10 by permuting input pixels within a centered patch (PC-16/24/32) or randomly reassigning labels (SC-10/30/50) to isolate the effect of Instability.
  • Continuous Drift Model: Synthetic quadratic-loss simulations where optimal parameters follow a Wiener walk, plus a deep-linear teacher-student setup.

Key Insights and Ideas

  • Retention has a shelf life: When past tasks bias the model away from the current task ($\bar{\mathcal{I}} > 0$), joint training only helps if tasks are short (the "few-shot" regime). Once task duration exceeds the Critical Task Duration, learning from scratch wins.
  • Environment Growth Rate governs transfer: In quadratic models, the asymptotic balance between ITL and JTL is dictated by how fast the environment expands ($\psi(k)$). Bounded environments favor JTL; linear drift favors ITL; diffusive (random-walk) environments favor finite memory.
  • Optimization bias matters: Even when the function class is identical, how you parameterize and optimize it changes Instability. In deep linear networks, the "lazy" regime (NTP) exhibits orders-of-magnitude higher Instability than the "rich" regime ($\mu$P), drastically shifting when transfer helps.
  • JTL and ITL are just endpoints: Viewing CL through Predictive CL turns the space between full retention and complete forgetting into a principled design axis.

Key Results

  • In the wild: On CLEAR ($N=3000$), JTL strongly outperforms ITL ($\text{TE} = +0.216$, with Average Lifelong Accuracy $0.681$ vs. $0.465$). On MD5 ($N=3000$) and MT10 ($N=500$), where Instability is high, JTL underperforms ITL ($\text{TE} = -0.040$ and $-0.240$, respectively).
  • $1/N$ decay: As predicted by theory, increasing task duration $N$ on CLEAR from $3000$ to $12000$ causes TE to decay monotonically at a $1/N$ rate (from $+0.216$ to $+0.10$), while finite-time Instability shrinks to $-0.0006 \pm 0.0006$ (statistically indistinguishable from zero).
  • Window algorithm: Under continuous drift, setting the window size $W^\star$ using the environment's Mean Squared Displacement matches or outperforms both ITL and JTL across all task durations—recovering JTL for short tasks ($W^\star = 173$ at $N=1$) and ITL with warm starts for long tasks ($W^\star = 1$ at $N=1000$).

Limitations and Future Work

  • Objective-dependent: The authors emphasize that their claims apply to real-time performance (ALE). If retaining old capabilities matters for its own sake, JTL remains the right target.
  • Theoretical scope: Closed-form results are derived for quadratic losses (with relaxations for non-commuting Hessians and over-parameterized covariances in the appendix); extending the formal theory to deep nonlinear networks remains open.
  • Future directions: The Window algorithm is just a simple proof of concept. Designing richer, learned predictive models $\Phi$ that estimate drift online—and benchmarking practical CL methods under the ALE objective—are left for future work.

Summary updated

BibTeX
@article{lanzillotta2026retain,
  author = {Giulia Lanzillotta and Mandana Samiei and Doina Precup and Razvan Pascanu and Claire Vernade},
  title = {{To Retain or to Adapt? Generalizing Continual Learning}},
  journal = {Accepted by TMLR},
  year = {2026},
  url = {https://openreview.net/forum?id=C4zRmT9jYO},
}
Figure