TL;DR
This paper introduces "Generative Kernel Continual Learning" (GKCL), a novel approach that replaces the explicit memory requirement of previous kernel continual learning methods with a generative model. This allows for efficient learning across many tasks without storing past data, while a new supervised contrastive regularization technique further boosts performance by generating more discriminative features.
What Problem Does This Paper Address?
Continual learning aims to enable models to learn sequentially from a stream of data without forgetting previously acquired knowledge. A major challenge, known as "catastrophic forgetting," arises because neural networks tend to overwrite old knowledge when learning new tasks. While kernel methods have shown promise in mitigating this by using non-parametric classifiers and avoiding direct parameter updates on old data, they typically rely on storing a "coreset" – a subset of data from past tasks – to construct effective kernels. This explicit memory requirement becomes a bottleneck for scalability, as the memory size grows with the number of tasks. This paper addresses the scalability issue by proposing a memory-less kernel continual learning approach.
Methods
The core innovation is replacing the explicit coreset with a generative model, specifically a conditional variational auto-encoder (VAE). This VAE learns the data distribution of current and past tasks, allowing it to generate representative "pseudo-samples" for constructing the kernel. This generative replay eliminates the need for storing actual past data.
Key components of the method include:
- Generative Replay: A conditional VAE is trained to generate samples. This generative model is updated sequentially, and its decoder is used to produce samples for kernel construction.
- Kernel Ridge Regression: Similar to prior kernel continual learning methods, the generated samples are used to build a kernel matrix for classification.
- Supervised Contrastive Regularization: To improve the quality of generated samples, a supervised contrastive loss is introduced. This loss encourages the encoder to produce more discriminative latent representations, leading to better separation of classes in the feature space. This is applied to the internal representations of the VAE's encoder.
- Kernel Network (Optional but beneficial): An additional network
fyis used to map the VAE's latent representations into a new space, further enhancing kernel approximation and classifier performance.
Datasets
The proposed method was evaluated on three standard continual learning benchmarks:
- PermutedMNIST: A domain incremental learning task where MNIST digits are presented with permuted pixel orders for each task.
- RotatedMNIST: Another domain incremental learning task where MNIST digits are rotated by varying degrees for each task.
- SplitCIFAR100: A task incremental learning benchmark where CIFAR100 classes are split into sequential tasks, with each task containing data from 5 out of 100 classes.
Key Insights and Ideas
- Generative Models as Memory Replacements: The paper demonstrates that generative models can effectively substitute explicit memory in kernel continual learning, offering a scalable solution for learning across a large number of tasks.
- Synergy of Generative Models and Kernels: By combining generative capabilities with kernel methods, the approach leverages the strengths of both: the non-parametric robustness of kernels and the data generation power of VAEs.
- Contrastive Learning for Discriminative Features: Applying supervised contrastive learning to the VAE's encoder significantly improves the discriminative power of generated features, leading to better classification performance. This highlights the importance of feature quality for kernel approximation.
- Flexibility in Coreset Size: The generative approach allows for decoupling the coreset size used during training from inference. Training with a smaller coreset is faster, while using a larger coreset at inference can boost accuracy, offering a trade-off for performance optimization.
Key Results
- State-of-the-Art Performance: GKCL achieves state-of-the-art results on PermutedMNIST, RotatedMNIST, and SplitCIFAR100, outperforming previous kernel continual learning methods and other advanced approaches.
- Significant Memory Reduction: On SplitCIFAR100, GKCL achieves the same accuracy as a previous kernel method using only one-tenth of the memory.
- Accuracy Gains: With the same memory budget, GKCL achieves a 10.1% accuracy gain on SplitCIFAR100 compared to a baseline.
- Improved Feature Representation: Visualizations (Figures 6 & 7) show that the supervised contrastive regularization leads to more concentrated and discriminative feature spaces, both for generated coreset samples and test data.
- Kernel Type Flexibility: The method performs well with various kernel types (linear, RBF, polynomial), with a simple linear kernel often providing competitive results.
Limitations and Future Work
- Computational Cost of Generative Model: While memory is reduced, training the generative model itself can be computationally intensive.
- Hyperparameter Sensitivity: While the paper shows some robustness, specific hyperparameters (like the temperature in contrastive loss) might require tuning for optimal performance.
- Future Work: The authors suggest exploring different generative model architectures and further investigating the interplay between generative replay and kernel approximation. They also hint at the potential for using the generative model to adaptively determine the coreset size during inference for further performance gains.
Summary updated