Abstract
Continual learning aims to enable neural networks to learn tasks sequentially without forgetting previously acquired knowledge. Replay-based methods, which store a subset of past data in a memory buffer, are a common solution. However, standard approaches often rely on random sampling and fixed buffer sizes per class. This paper proposes more sophisticated strategies: Iterative Projection and Matching (IPM) for sample selection and dynamic buffer sizing based on data complexity (e.g., the Kaiser Criterion). Experimental results on Split-CIFAR and Split-TinyImageNet demonstrate that these methods significantly reduce catastrophic forgetting and improve overall accuracy compared to traditional reservoir sampling.
Introduction
Deep learning models typically suffer from catastrophic forgetting when trained on a sequence of tasks. Replay mechanisms address this by maintaining a small memory buffer of representative samples from previous tasks. Despite their success, current replay methods often use sub-optimal heuristics: random "reservoir" sampling for selection and uniform allocation of buffer space across all classes. These assumptions ignore the varying informativeness of individual samples and the differing complexity of different classes. This research explores "surgical" improvements to both selection and allocation to maximize the utility of limited memory.
Methodology
The study investigates two primary dimensions of memory management in continual learning.
Sample Selection
Instead of random selection, the authors evaluate strategic population strategies:
- Herding: Samples are chosen based on their proximity to the class mean in the feature space.
- Iterative Projection and Matching (IPM): This active learning-inspired technique identifies the most informative data points by projecting features onto a subspace to find optimal representatives.
- Gradient Sample Selection (GSS): Samples are selected to maintain gradient diversity, though this method proved computationally expensive for larger datasets.
Dynamic Memory Allocation
The paper introduces dynamic buffer sizing to account for varying class complexity. Rather than a fixed number of samples per class, the buffer size is determined by:
- Intracluster Variance: Using the "elbow" method on cluster variances to identify the point of diminishing returns for additional samples.
- Kaiser Criterion: Analyzing the eigenvalues of the data matrix to determine the number of independent components needed to represent a class's manifold.
Results and Discussion
The proposed strategies were benchmarked on Split-CIFAR10, Split-CIFAR100, and Split-TinyImageNet.
Reduction in Catastrophic Forgetting
Strategic selection methods, particularly IPM and Herding, consistently outperformed random reservoir sampling. For instance, on Split-CIFAR100 with a 500-sample buffer, IPM reduced Final Forgetting (FF) to approximately 28.9%, a significant improvement over the ~56.3% observed with reservoir sampling when using the Dark Experience Replay (DER) framework.
Impact of Dynamic Sizing
The Kaiser Criterion ensured that complex classes received more buffer space, leading to higher Final Average Accuracy (FAA). Unlike reservoir sampling, which can become biased toward earlier tasks, these strategic methods maintain balanced and representative buffers, ensuring the model's recovery and long-term utility.
Conclusion
Moving beyond random sampling and fixed buffer sizes is essential for efficient continual learning. By selecting samples based on informativeness (IPM) and allocating space based on class complexity (Kaiser Criterion), models can significantly mitigate catastrophic forgetting. While these methods introduce some computational overhead at the end of each task, the gains in memory efficiency and performance make them a compelling alternative for resource-constrained replay-based systems.
Summary updated