Adaptive Memory Replay for Continual Learning
James Seale Smith, Lazar Valkov, Shaunak Halbe, Vyshnavi Gutta, Rogerio Feris, Zsolt Kira, Leonid Karlinsky
TL;DR
The paper tackles perpetual updating of Foundation Models by addressing catastrophic forgetting when memory is abundant but compute is limited during extended pre-training. It introduces adaptive memory replay, a bandit-based data-sampling framework using Boltzmann exploration to selectively replay forgotten past data conditioned on the current task, while keeping the compute cost on par with naive training. The approach is formalized through a forgetting-centric objective, cluster-based forgetting modeling, and a non-stationary K-armed bandit optimization that guides memory-buffer composition. Empirically, it achieves meaningful forgetting reductions (up to around 10%) on both vision and language pre-training tasks, with a zero-cost variant that matches or surpasses baselines under equivalent compute, demonstrating practical impact for scalable continual learning in large-scale models.
Abstract
Foundation Models (FMs) have become the hallmark of modern AI, however, these models are trained on massive data, leading to financially expensive training. Updating FMs as new data becomes available is important, however, can lead to `catastrophic forgetting', where models underperform on tasks related to data sub-populations observed too long ago. This continual learning (CL) phenomenon has been extensively studied, but primarily in a setting where only a small amount of past data can be stored. We advocate for the paradigm where memory is abundant, allowing us to keep all previous data, but computational resources are limited. In this setting, traditional replay-based CL approaches are outperformed by a simple baseline which replays past data selected uniformly at random, indicating that this setting necessitates a new approach. We address this by introducing a framework of adaptive memory replay for continual learning, where sampling of past data is phrased as a multi-armed bandit problem. We utilize Bolzmann sampling to derive a method which dynamically selects past data for training conditioned on the current task, assuming full data access and emphasizing training efficiency. Through extensive evaluations on both vision and language pre-training tasks, we demonstrate the effectiveness of our approach, which maintains high performance while reducing forgetting by up to 10% at no training efficiency cost.
