What is the role of memorization in Continual Learning?

Jędrzej Kozal, Jan Wasilewski, Alif Ashrafee, Bartosz Krawczyk, Michał Woźniak · Submission to ICLR 2026 · Rejected

TL;DR

While deep learning relies on memorization to generalize to long-tail and atypical samples, this paper reveals that high-memorization examples are forgotten twice as fast as regular ones during continual learning. To address this, the authors introduce a lightweight training-iteration proxy for memorization and show that replay buffer strategies must adapt to the memory regime: small buffers should prioritize typical, low-memorization samples, whereas high-memorization samples become valuable only when memory buffers are large.

What Problem Does This Paper Address?

In standard (stationary) deep learning, memorization—defined by Feldman as a network's ability to classify a data point correctly only when explicitly trained on it—is essential for capturing long-tail data and achieving high test accuracy. In Continual Learning (CL), models learn sequential tasks without access to previous data, frequently suffering from catastrophic forgetting.

Although preventing forgetting and memorizing specific data points sound related, their interaction under non-stationary data streams is poorly understood:

  • Are memorized samples more fragile to task shifts?
  • Does memorization hurt or help incremental learning?
  • How should rehearsal methods select exemplars given differences in sample memorizability?

Methods

  • Feldman Memorization Estimator: The authors adopt the leave-$k$-out subset estimator to quantify memorization scores offline. Computing this metric requires training hundreds of networks ($u = 250$), making it infeasible during sequential training.
  • Training-Iteration Memorization Proxy: To approximate memorization online with negligible overhead, the authors track the first iteration $j$ where an example is correctly classified and remains correctly predicted through training ($\text{mem}_{proxy}$).
  • Standard geometric proxies (Euclidean distance, cosine distance, Mahalanobis distance, iCaRL rank) correlate poorly with true memorization ($r \le 0.38$).
  • In contrast, the first-learned iteration strongly correlates with the Feldman estimator ($r = 0.81$, Spearman $\rho = 0.83$).
  • Memorization-Aware Experience Replay: Using the proxy, exemplars are stored via a modified reservoir sampling strategy using three selection modes:
  • Bottom-$k$: Lowest memorization proxy (learned earliest; prototypical).
  • Middle-$k$: Median memorization proxy.
  • Top-$k$: Highest memorization proxy (learned latest; atypical/hard).

Datasets

The authors evaluated class-incremental learning benchmarks split into disjoint tasks:

  • CIFAR-10 (split into 5 tasks)
  • CIFAR-100 (split into 10 tasks; also subsets of 10, 20, and 50 classes for memorization dynamics)
  • Tiny ImageNet (split into 20 tasks)

No new benchmark datasets were introduced.

Key Insights and Ideas

  • Memorized samples are forgotten first: Across incremental tasks, high-memorization samples lose accuracy roughly twice as fast as typical samples.
  • Class count drives memorization more than sample count: Increasing the number of classes forces the model to form broader, general representations, requiring more atypical samples to be individually memorized. Subsetting the number of classes reduces memorization far more than merely reducing training set size.
  • Architectural paradox: Deeper models memorize less yet forget more in CL, whereas wider models memorize more and forget less. Additionally, low weight decay increases memorization, suggesting high memorization might inherently support plasticity at the expense of stability.
  • Memory budget dictates selection strategy: In constrained replay setups (e.g., 500 samples), storing low-memorization (prototypical) samples yields the best performance. Storing hard, memorized samples is actively harmful under strict memory budgets because protecting baseline class representations is paramount. Only when buffer size expands significantly does retaining top-$k$ memorized examples help close the gap to upper-bound performance.

Key Results

  • Small Replay Buffers (Size 500): Selecting low-memorization samples outperforms standard random and diverse exemplar selection across all benchmarks:
  • Split-CIFAR-100: Bottom-$k$ proxy achieved 25.88% accuracy (61.60% forgetting), outperforming standard reservoir sampling (22.07%), balanced reservoir (22.39%), Rainbow Memory (23.19%), and top-$k$ selection (17.28%).
  • Split-CIFAR-10: Bottom-$k$ reached 56.04% (vs. 55.18% reservoir).
  • Split-TinyImageNet: Bottom-$k$ reached 7.85% (vs. 6.38% reservoir).
  • Plug-and-Play Replay Boost: Replacing default buffers with bottom-$k$ proxy samples improved ER-ACE on Split-CIFAR-100 from 36.81% to 40.03%, and DER++ from 33.90% to 38.34%.
  • Large Buffer Regimes: On CIFAR-100 with buffer sizes expanded to 10,000 and 20,000, reserving 10% of buffer slots for top-$k$ high-memorization samples yielded consistent accuracy gains over pure bottom-$k$ or mid-$k$ buffers (e.g., mid-$k$ + 10% top-$k$ reached 64.93% vs. 64.57% at buffer size 20,000).

Limitations and Future Work

  • Offline vs. Online Memorization Gap: The proxy is computed based on per-task training iterations; measuring actual memorization dynamics dynamically across task transitions remains an open challenge.
  • Dataset Artifacts: CIFAR-100 contains duplicate/atypical samples shared between train and test splits, which may accentuate sample influence.
  • High Computational Burden: Calculating ground-truth Feldman estimators required over 1,400 GPU hours across thousands of model runs.
  • Future Directions: Pinpointing the specific network layers responsible for memorization in CL, developing targeted regularization to protect these representations from drifting, and studying how continual learning hyperparameters affect sample memorization.

Summary updated

BibTeX
@misc{kozal2025what,
  author = {Jędrzej Kozal and Jan Wasilewski and Alif Ashrafee and Bartosz Krawczyk and Michał Woźniak},
  title = {{What is the role of memorization in Continual Learning?}},
  year = {2025},
  eprint = {2505.17664},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.17664},
}
Figure