SuRe: Surprise-Driven Prioritised Replay for Continual LLM Learning

Hugo Hazard, Zafeirios Fountas, Martin Benfeghoul, Adnan Oomerjee, Jun Wang, Haitham Bou AmmarSubmission to ICLR 2026 · Rejected

TL;DR

When fine-tuning large language models continually across many tasks, catastrophic forgetting stems from two distinct, additive failure modes: picking the wrong samples to replay (selection error) and destabilizing weights during gradient updates (integration error). The authors introduce SuRe (Surprise-prioritised Replay), which stores samples with the highest sequence-level negative log-likelihood, and pair it with a dual fast–slow LoRA architecture merged via exponential moving average (EMA) to achieve new state-of-the-art results on continual learning benchmarks.

What Problem Does This Paper Address?

Continual learning (CL)—the ability to acquire new skills sequentially without erasing past knowledge—remains a major hurdle for language models. As an LLM trains on new tasks or domains, parameter updates overwrite representations learned earlier, causing catastrophic forgetting.

While experience replay (re-training on stored past examples) is a standard baseline, prior NLP literature often understates its effectiveness because standard reservoir replay is typically compared against complex parameter-efficient methods that assume known task boundaries. Furthermore, uniform random replay treats all examples identically, even though most samples quickly settle into low-gradient, well-learned regions of the loss landscape.

Methods

The authors provide a theoretical decomposition proving that expected forgetting is upper-bounded by the sum of an integral probability metric (IPM) mismatch term (selection error) and a stochastic gradient noise term (integration error). Because tuning one cannot drive the other to zero, addressing both yields complementary benefits:

Forgetting Bound <= Selection Mismatch (Replay) + Integration Variance (Consolidation) + Drift
  1. Surprise-prioritised Replay (SuRe): Instead of uniform reservoir sampling, incoming samples are ranked by sequence-level Bayesian surprise—measured as the average Negative Log-Likelihood (NLL) per token under the model: $$s_\theta(z_i) = -\frac{1}{T_i} \sum_{t=1}^{T_i} \log p_\theta(z_{i,t} \mid z_{i,<t}, x_i)$$ Storing high-loss/high-surprise sequences acts as an implicit importance sampler, preserving the past gradient geometry rather than just empirical frequencies.

  2. Dual-Learner Integration (Slow–Fast LoRA):

  3. Fast LoRA: Actively updated on mixed batches containing current-task examples and rehearsed buffer samples.
  4. Slow LoRA: Updated strictly through an Exponential Moving Average (EMA) of fast iterates: $\theta_{\text{slow}} \leftarrow \beta \theta_{\text{slow}} + (1 - \beta) \theta_{\text{fast}}$ (typically $\beta = 0.995$).
  5. The slow adapter acts as a low-pass filter over optimization trajectories, dramatically cutting parameter variance while retaining persistent task knowledge. At inference, only the frozen base model and the slow LoRA are used.

Datasets

The authors evaluated the method across standard setups using T5-Large (and preliminary tests on Llama 3.1 8B):

  • Standard CL Benchmark (4 tasks): Text classification datasets introduced by Zhang et al. (2016)—AG News, Amazon Reviews, DBpedia, and Yahoo Answers (5,000 train / 500 test samples per task).
  • Large Number of Tasks (LNT Benchmark, 15 tasks): Extends the standard 4 datasets with 11 diverse NLU tasks: MNLI, QQP, RTE, SST-2, WiC, CB, COPA, BoolQ, MultiRC, and IMDB (1,000 train / 500 test samples per task).
  • M2D2 (Continual Pre-Training Probe): Five continuous text domains (Biology, Chemistry, Physical Science, Maths, Philosophy) evaluated via perplexity.

Key Insights and Ideas

  • Forgetting is Additive: Neither superior memory selection nor clever regularization alone fully stops forgetting. Replay controls distribution mismatch ($\mathcal{D}_{\mathcal{F}_{\text{loc}}}$), while EMA parameter consolidation controls stochastic gradient variance ($\sigma^2 / \mu N$).
  • Surprise Outperforms Uniform Sampling at Scale: In short sequences or single tasks, uniform replay is competitive. However, in long task streams (like the 15-task LNT setting), high-NLL sequences provide critical coverage of hard-to-fit boundary regions.
  • Sequence Surprise vs. Label Surprise: Computing surprise across the entire generated sequence is crucial. Computing surprise only on class labels drops performance significantly (from 75.1% to 61.2% on LNT) because label tokens alone skew the buffer toward rare or noisy classes.
  • Buffer Update Timing Matters: Updating the buffer after training on a dataset yields better stability and negative forgetting compared to updating before training.

Key Results

  • LNT Benchmark: Combining SuRe with slow-weight consolidation (Slow Surprise Replay) achieved 75.1% average accuracy on T5-Large, outperforming previous parameter-efficient state-of-the-art methods like MoRA (69.7%), LB-CL (69.2%), and O-LoRA (68.8%) by up to +5.4 percentage points.
  • Narrowing the Multi-Task Gap: On the 15-task benchmark, Slow Surprise Replay reached 75.1%, closely approaching the multi-task learning (MTL) upper bound of 76.3%.
  • Budget Robustness: When the replay ratio was restricted to 1:16 (only one replayed sample for every 16 new samples), Slow Surprise achieved 69.42% accuracy on LNT, maintaining a +2.48% advantage over random replay.
  • Llama 3.1 8B Scaling: Preliminary experiments showed Slow Surprise reaching 76.0% on the Standard benchmark and 67.0% on LNT, beating standard replay (65.75% / 50.53%).

Limitations and Future Work

  • Known Task Boundaries: The method currently relies on knowing when a task starts and finishes to manage per-task memory quotas and buffer update steps.
  • Computation Overhead: Evaluating sequence-level NLL across incoming datasets requires an additional forward pass over the training data.
  • Scope of Benchmarks: While classification and preliminary continual pre-training (CPT) were explored, evaluating on generation-heavy tasks, instruction-tuning streams, and multimodal models remains open for future research.

Summary updated

Abstract

Continual learning, one's ability to adapt to a sequence of tasks without forgetting previously acquired knowledge, remains a major challenge in machine learning and a key gap between artificial and human intelligence. While regularisation and replay perform well in vision, they lag behind multi-task learning for large language models (LLMs), especially at scale with many tasks. We revisit replay and argue that two failure modes drive this gap: selection (what to rehearse) and integration (how to consolidate new knowledge). To address selection, we propose Surprise-prioritised Replay (SuRe), a simple, architecture-agnostic rule that ranks and stores the most surprising (high Negative Log-Likelihood) sequences. SuRe achieves state-of-the-art performance in the Large Number of Tasks (LNT) setting and delivers the best overall average across both Standard CL and LNT benchmarks. To address integration, we add a dual-learner design with fast and slow LoRA adapters merged via an exponential moving average (EMA), enabling rapid adaptation while stabilising long-term knowledge. Combining SuRe with the dual learner yields further gains, including improvements of up to +5 accuracy points on LNT over prior SOTA. Ablation studies confirm that our proposed method remains robust under reduced replay frequency and small buffer size, demonstrating both effectiveness and sample efficiency. Taken together, our results establish replay as a strong baseline for continual LLM fine-tuning and demonstrate that surprise-based selection and slow-weight consolidation are complementary components for mitigating catastrophic forgetting.
BibTeX
@misc{hazard2025sure,
  author = {Hugo Hazard and Zafeirios Fountas and Martin Benfeghoul and Adnan Oomerjee and Jun Wang and Haitham Bou Ammar},
  title = {{SuRe: Surprise-Driven Prioritised Replay for Continual LLM Learning}},
  year = {2025},
  eprint = {2511.22367},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.22367},
}
Figure