Class-Incremental Experience Replay for Continual Learning Under Concept Drift

Lukasz Korycki, Bartosz Krawczyk

TL;DR

This paper introduces a novel approach to continual learning that unifies the ability to learn new information without forgetting old knowledge (continual learning) with the capacity to adapt to changing data distributions (concept drift). Their method, the Reactive Subspace Buffer (RSB), uses a centroid-driven memory with a reactive buffer to track and adapt to concept drift, enabling models to both remember valuable information and discard outdated concepts.

What Problem Does This Paper Address?

Modern AI systems often encounter data that arrives sequentially and changes over time. Two main research areas address this: continual learning, which focuses on accumulating knowledge and avoiding "catastrophic forgetting" of previously learned information, and data stream mining, which deals with adapting to "concept drift" – changes in the underlying data distribution – by often discarding old information. These fields have largely developed in isolation, yet real-world problems require systems that can do both: learn new things continuously while also adapting to evolving concepts. For instance, a recommendation system needs to learn about new movies users might like, but also adapt if a user's taste in a previously recommended genre changes. This paper aims to bridge this gap by proposing a unified framework.

Methods

The core of the proposed solution is the Reactive Subspace Buffer (RSB), an experience replay mechanism designed for class-incremental learning under concept drift. It builds upon a centroid-driven memory that stores diverse instances for each class, represented by cluster centroids. The novelty lies in the reactive subspace buffer itself. This buffer dynamically monitors previously learned classes for concept drift.

Here's how it works:

  • Centroid-driven memory: For each incoming instance, the system identifies the nearest cluster centroid. If the instance belongs to the same class as the centroid, its buffer and a sliding window (tracking recent data) are updated.
  • Drift detection and adaptation: If an instance's label differs from the centroid's class, it signals a potential drift. The system uses statistical rules to detect significant label changes within a centroid's associated data. If drift is detected, the centroid's label can be switched to the new majority class, effectively "forgetting" the old concept.
  • Cluster splitting and removal: The system also incorporates mechanisms to split centroids if they become impure (representing multiple distinct concepts) and remove under-represented clusters to maintain efficiency.
  • Experience Replay: The RSB is used as a replay buffer. When training on a new batch, instances are sampled from the RSB based on cluster purity, ensuring that diverse and relevant data is used for retraining.

This approach aims to achieve a balance: retaining knowledge from stable concepts while actively adapting to evolving ones.

Datasets

The authors evaluated their approach on five standard image benchmarks:

  • MNIST
  • FASHION
  • SVHN
  • CIFAR10
  • IMAGENET10 (a subset of ImageNet)

They created two types of data scenarios:

  • Stationary: Classes were presented sequentially without any changes in their labels or distributions.
  • Drifting: After several stationary batches, the 0/1 labels for some classes were flipped to simulate concept drift. This was done for two consecutive classes after every three or four stationary ones, creating 30 batches in total.

Key Insights and Ideas

  • Bridging Continual Learning and Concept Drift: The paper argues that these two fields are not mutually exclusive but rather complementary aspects of learning from dynamic data. A truly robust system needs to excel at both.
  • The Need for "Selective Forgetting": Unlike traditional continual learning that aims to retain everything, real-world data often requires forgetting outdated information. The RSB's reactive nature allows for this selective forgetting.
  • Centroids as Dynamic Representatives: Using centroids to represent classes, combined with a reactive buffer, allows the system to adapt to shifts in data distribution without needing explicit, external drift detectors.
  • User Preferences as a Realistic Scenario: The authors highlight user preference modeling (e.g., in recommendation systems) as a prime example of a real-world problem that necessitates this unified approach, as user tastes are inherently dynamic.

Key Results

  • Stationary Data: On stationary datasets, the proposed RSB performed comparably to other sophisticated centroid-based methods (ER-SB) and significantly outperformed naive fine-tuning (NN) and simple class buffers (ER-CBO, ER-CB1). It demonstrated robustness against catastrophic forgetting.
  • Drifting Data: This is where RSB truly shines. While other methods like CB1 and SB struggled with concept drift, often dropping to random performance levels or failing to recover, RSB maintained stable and high performance. For example, on the FASHION, SVHN, and CIFAR10 drifting sequences, RSB showed particularly striking stability.
  • Qualitative Improvement: RSB's ability to adapt to concept drift without delay or loss in predictive power was a key qualitative finding. It effectively handled changes in previously learned classes, unlike methods that retained obsolete concepts.

Limitations and Future Work

  • Limitations: The paper acknowledges that while RSB is effective, it relies on experience replay. The performance of the underlying classifier is still a factor. The paper also notes that the proposed method is sensitive to the initial learning phase and that some errors might persist.
  • Future Work: The authors suggest extending their work to other continual learning algorithms, exploring adaptive masking, reactive regularization, and dynamic neural network architectures that can react to drifts. They aim to contribute to creating more holistic continual learning systems for diverse real-life challenges.

Summary updated

BibTeX
@inproceedings{korycki2021class,
  author = {Lukasz Korycki and Bartosz Krawczyk},
  title = {{Class-Incremental Experience Replay for Continual Learning Under Concept Drift}},
  booktitle = {Workshops @ CVPR},
  year = {2021},
  doi = {10.1109/cvprw53098.2021.00404},
}
Figure