TL;DR
This paper introduces Task-Modulated Contrastive Learning (TMCL), a novel approach to continual learning that mimics biological brain mechanisms to learn from streams of unlabeled data interspersed with sparse labels. TMCL effectively consolidates new knowledge without forgetting old information, achieving state-of-the-art performance in label-scarce scenarios and demonstrating improved transfer learning capabilities.
What Problem Does This Paper Address?
Traditional machine learning models suffer from "catastrophic forgetting" when trained sequentially on new tasks, meaning they lose performance on previously learned tasks. This is a significant hurdle for developing AI systems that can learn continuously like humans. While biological brains seamlessly integrate new information with existing knowledge, current AI methods struggle with this. Specifically, this paper addresses the challenge of continual learning in a setting where data is mostly unlabeled, but occasional sparse supervised signals (like identifying an object) are available. The core problem is how to leverage these sparse labels to improve learning without degrading performance on previously learned tasks, a scenario common in natural learning.
Methods
The authors propose Task-Modulated Contrastive Learning (TMCL), inspired by the hierarchical structure of the neocortex. TMCL introduces two key components:
- Modulations: These are learned, task-specific affine transformations (gain and bias) applied to the network's internal representations. They act like top-down signals, providing high-level contextual information for new classes. These modulations are learned using sparse labels and are then frozen.
- Consolidation: This phase uses a contrastive learning objective to make the network's feedforward weights invariant to these learned modulations. This means the network learns to produce similar representations regardless of whether the modulations are applied or not. This process effectively "consolidates" the knowledge encoded in the modulations into the core feedforward weights, preventing forgetting.
The learning process involves two main stages per session:
- Orthogonalization: Using the sparse labels, modulations are learned to make the new class representations orthogonal to existing ones in a modulated space.
- Consolidation: Using unlabeled data, the feedforward weights are trained to be invariant to these modulations, effectively embedding the learned knowledge into the main network.
Datasets
The paper uses the following datasets for training and evaluation:
- CIFAR-100: Used for class-incremental learning experiments and transfer learning.
- ImageNet-100: Used for class-incremental learning experiments.
- Diverse downstream tasks for transfer learning: Aircraft, CIFAR-10, CUBirds, DTD, EuroSAT, GTSRB, STL-10, SVHN, and VGGFlower.
Key Insights and Ideas
- Biological Inspiration is Key: The paper strongly argues that mimicking the brain's hierarchical processing (top-down modulations and feedforward predictive coding) is crucial for robust continual learning.
- Modulations as "Top-Down Signals": Learned modulations act as a powerful mechanism to inject high-level semantic information into the network, guiding learning for new classes without disrupting existing knowledge.
- Consolidation is Crucial: Simply learning modulations isn't enough; the paper highlights the importance of consolidating this learned information into the feedforward weights to achieve true continual learning and prevent forgetting.
- Label Efficiency: TMCL demonstrates remarkable performance even with as little as 1% of available labels, making it highly practical for real-world scenarios where labeled data is scarce.
- Transfer Learning Benefits: The representations learned by TMCL are not only good for the specific tasks learned but also generalize well to entirely new, unseen tasks, suggesting the development of more fundamental, transferable features.
- Robustness to Noise: The method shows impressive robustness to noisy labels, a common issue in real-world data.
Key Results
- State-of-the-Art in Label-Scarce Continual Learning: TMCL outperforms existing purely unsupervised, purely supervised, and hybrid approaches on CIFAR-100 and ImageNet-100, especially in scenarios with 1% or 10% of labels. For instance, on CIFAR-100 with 1% labels, TMCL achieves 60.7% accuracy, significantly higher than other methods.
- Improved Transfer Learning: TMCL-trained models show superior performance on diverse downstream tasks compared to models trained with other continual learning methods, indicating better generalization. For example, on the transfer learning benchmark (Table 2), TMCL consistently outperforms other methods across various datasets.
- Robustness to Label Noise: TMCL is robust to label noise up to 99%, while fully supervised methods degrade significantly with even 30% noise.
- Controlling Stability-Plasticity Trade-off: The strength of the modulation invariance term (λMI) allows for fine-tuning the balance between retaining old knowledge (stability) and learning new information (plasticity).
Limitations and Future Work
- Memory Scaling: The current approach uses static modulations, meaning the memory requirement scales linearly with the number of classes. The authors suggest exploring alternatives like network pruning or generative models for modulations to address this.
- Dataset-Specific Improvement: While TMCL shows improved representational quality on the trained dataset, the improvement is only moderate when more labels are presented. The authors hypothesize this is because the unmodulated network is not specifically primed for the training dataset but rather for generalizable representations. They suggest exploring task-specific modulations for priming.
- ResNet Architecture: While TMCL works with ResNets, it performs better with Transformer architectures (like ConViT). The authors attribute this to ResNet's reliance on BatchNorm, which can hinder stable training of modulations due to its dependence on batch statistics.
- Future Work: The authors suggest exploring how modulations can be used to tune effective learning objectives for networks, potentially leading to fine-grained control over representation learning in mixed-modality approaches and providing insights into cortical interactions. They also propose investigating the role of genetics and plasticity in developing functional brains.
Summary updated