Introduction
Continual learning (CL) aims to enable artificial intelligence models to learn from a stream of data across multiple tasks without forgetting previously acquired knowledge. A primary challenge in this field is catastrophic forgetting, where a model's performance on earlier tasks degrades significantly as it adapts to new ones.
The most effective strategy to mitigate this is "experience replay," which involves maintaining a small buffer of representative samples from past tasks. While simple reservoir sampling is a common baseline, it often fails to capture the most informative data points. This paper introduces Gradient Coreset Replay (GCR), a method that mathematically selects a weighted "coreset" of data to match the gradient of the full dataset, ensuring more efficient and effective learning.
Methodology: Gradient Coreset Replay
The core philosophy of GCR is that a replay buffer should not just be diverse in appearance but should produce the same mathematical updates (gradients) as the original full dataset.
GCR employs several key innovations:
- GradApprox: Instead of random selection, GCR solves an optimization problem to find a subset of data and corresponding weights. This "coreset" is designed so that the gradient calculated on it closely approximates the gradient of the entire historical dataset.
- Weighted Loss Objective: Unlike standard replay methods that treat all buffer samples equally, GCR assigns importance weights. This allows a small number of points to statistically represent a much larger population.
- Supervised Contrastive Loss: By incorporating a contrastive loss, the model learns more robust representations by grouping similar objects closer in the feature space, which inherently resists forgetting.
- Efficient Selection via Candidate Pooling: To maintain computational feasibility, GCR first selects a "candidate pool" using reservoir sampling and then applies a greedy algorithm (Orthogonal Matching Pursuit) to extract the final coreset.
Experimental Setup
The researchers evaluated GCR on several standard computer vision benchmarks adapted for sequential learning:
- Sequential CIFAR-10 & CIFAR-100: Datasets split into 5 or 20 distinct tasks.
- Sequential Tiny-ImageNet: 200 classes split into 10 tasks.
- Sequential ImageNet-1k: A large-scale benchmark to test real-world scalability.
Key Results and Insights
GCR consistently outperformed state-of-the-art methods, including Experience Replay (ER) and Dark Experience Replay (DER).
Key findings include:
- Accuracy Gains: GCR achieved absolute accuracy improvements of 2%–4% in offline settings and up to 5% in online "one-pass" streaming scenarios.
- Reduced Forgetting: The method significantly lowered forgetting metrics, maintaining high performance on initial tasks even after many subsequent tasks were learned.
- Scalability: The advantage of GCR becomes more pronounced as the number of tasks increases, making it particularly suitable for long-term "lifetime" learning.
- Practical Efficiency: By using a greedy optimization approach, GCR avoids the high computational costs associated with traditional bi-level optimization coreset methods, making it viable for large-scale datasets.
Conclusion and Future Directions
GCR represents a significant advancement in replay-based continual learning by shifting the focus from data diversity to gradient matching. While highly effective, the authors identify future work in reducing the memory overhead of the candidate pool and making the system more task-agnostic by removing the need for explicit task boundaries. Integrating GCR with architectural innovations could further push the boundaries of models that never stop learning.
Summary updated