TL;DR
This paper introduces DeepCCG, a novel method for continual learning that learns both a class-conditional Gaussian model and the underlying embedding function simultaneously. By employing an empirical Bayesian approach and a sophisticated sample selection strategy, DeepCCG significantly outperforms existing methods, particularly in challenging scenarios with overlapping tasks.
What Problem Does This Paper Address?
Continual learning aims to enable machine learning models to learn new tasks sequentially without forgetting previously acquired knowledge. A common and effective approach involves using a pre-trained, fixed embedding network and training a simple probabilistic model on top of it. However, in many real-world scenarios, pre-training an embedding network is not feasible, or the data distribution shifts over time, rendering a frozen embedding outdated. This paper addresses the critical gap of how to perform continual learning when the embedding function itself needs to be learned online, alongside the classification model, while mitigating catastrophic forgetting.
Methods
DeepCCG tackles this challenge by proposing an empirical Bayesian method that jointly learns:
- An Embedding Function: A neural network that maps input data to a lower-dimensional embedding space.
- A Class-Conditional Gaussian Model: A probabilistic model that assumes data points from the same class in the embedding space follow a Gaussian distribution.
The learning process is framed as a variant of experience replay. A key innovation is the sample selection mechanism for the memory buffer. Instead of random sampling (like standard reservoir sampling), DeepCCG selects memory samples that minimize the Kullback-Leibler (KL) divergence between the true posterior distribution of model parameters and the posterior induced by the selected subset. This aims to preserve as much parameter information as possible. The paper also details how the class-conditional Gaussian model is updated using its conjugate prior, making the posterior tractable.
Datasets
The experiments were conducted on three standard datasets:
- CIFAR-10
- CIFAR-100
- MiniImageNet
These datasets were used in two settings:
- Disjoint Tasks: Each task involves a completely new set of classes.
- Shifting Window: Tasks have overlapping classes, simulating a more realistic scenario where concepts evolve.
Key Insights and Ideas
- Joint Learning is Crucial: Learning the embedding function and the probabilistic model together, rather than treating them separately, is key to achieving strong performance when pre-training is not an option.
- Intelligent Replay Matters: The proposed KL-divergence-based sample selection for the memory buffer is critical. It significantly outperforms random reservoir sampling, highlighting the importance of carefully curating the replay data to preserve knowledge.
- Class-Conditional Gaussians are Robust: Even when learning the embedding online, class-conditional Gaussian models prove to be a strong choice, encouraging the embedding to form distinct per-class clusters.
- Overlapping Tasks are a True Test: The shifting window setting, with its inherent task overlap, is a more challenging and realistic benchmark, and DeepCCG shows its strength here.
Key Results
DeepCCG consistently outperformed all other methods tested across both disjoint and shifting window settings on CIFAR-10, CIFAR-100, and MiniImageNet.
- In the shifting window setting, DeepCCG achieved an average performance improvement of 2.145% in mean average accuracy.
- For example, on CIFAR-100 shifting window, DeepCCG achieved 56.62% accuracy, outperforming the next best method by 2.57%.
- The ablation studies revealed that both the intelligent sample selection and the class-conditional Gaussian model contribute significantly to DeepCCG's success. Replacing either component with a simpler alternative led to a performance drop.
Limitations and Future Work
- Task Identifiers: The current formulation of DeepCCG requires task identifiers for each batch. The authors suggest that extending the method to task-agnostic settings (where task identifiers are not provided) is a direction for future work.
- Class-Incremental Learning: The paper focuses on task-incremental learning. Adapting DeepCCG to class-incremental learning (where new classes are introduced over time) is another promising avenue.
- Imbalanced and Noisy Data: The authors hypothesize that their memory selection mechanism might be more robust to noisy, out-of-distribution, or imbalanced data compared to standard reservoir sampling, and suggest validating this in future work.
- Memory Size Sensitivity: While DeepCCG performs well, its performance relative to other methods drops slightly at smaller memory buffer sizes, suggesting that the method benefits from a sufficient number of examples to accurately infer per-class Gaussian means.
Summary updated