[Paper Review] Co$^2$L: Contrastive Continual Learning
Co$^2$L proposes a rehearsal-based continual learning framework that leverages contrastive representation learning and instance-wise relation distillation to reduce catastrophic forgetting. By using an asymmetric supervised contrastive loss and self-distillation of feature similarities, Co$^2$L achieves state-of-the-art performance on class-incremental learning benchmarks, outperforming jointly trained baselines by significant margins.
Recent breakthroughs in self-supervised learning show that such algorithms learn visual representations that can be transferred better to unseen tasks than joint-training methods relying on task-specific supervision. In this paper, we found that the similar holds in the continual learning con-text: contrastively learned representations are more robust against the catastrophic forgetting than jointly trained representations. Based on this novel observation, we propose a rehearsal-based continual learning algorithm that focuses on continually learning and maintaining transferable representations. More specifically, the proposed scheme (1) learns representations using the contrastive learning objective, and (2) preserves learned representations using a self-supervised distillation step. We conduct extensive experimental validations under popular benchmark image classification datasets, where our method sets the new state-of-the-art performance.
Motivation & Objective
- To investigate whether contrastively learned representations are more robust to catastrophic forgetting than jointly trained representations in continual learning.
- To design a rehearsal-based continual learning algorithm that explicitly learns and preserves transferable representations in a decoupled representation-classifier setup.
- To address the challenge of limited access to informative negative samples in continual learning by proposing an asymmetric contrastive loss that leverages buffered samples effectively.
- To introduce a novel self-distillation mechanism—Instance-wise Relation Distillation (IRD)—that preserves learned representations without relying on a jointly trained classifier.
- To empirically validate the effectiveness of contrastive learning and IRD across multiple continual learning benchmarks under standard and idealized settings.
Proposed method
- The method employs an asymmetric supervised contrastive loss (SupCon) that treats current task samples as anchors and buffered past samples as positive pairs, improving representation quality under class-incremental constraints.
- It introduces Instance-wise Relation Distillation (IRD), a self-distillation loss that minimizes the drift between instance-wise similarity matrices of the current and previous models, preserving learned feature relationships.
- The framework combines the asymmetric SupCon loss and IRD loss in a weighted sum, enabling continual learning of representations while maintaining stability across tasks.
- The model uses a memory buffer to store a small number of past samples, which are used both for the asymmetric contrastive learning and for computing the IRD loss.
- The representation and classifier heads are trained in a decoupled manner, where the representation head is continually updated via contrastive learning and distillation, while the classifier is fine-tuned per task.
- The method is evaluated under standard class-incremental learning (class-IL) and task-incremental learning (task-IL) settings on CIFAR-10, CIFAR-100, and Tiny-ImageNet.
Experimental results
Research questions
- RQ1Does contrastive representation learning lead to more transferable and forget-resistant representations compared to joint training in continual learning?
- RQ2Can an asymmetric contrastive loss effectively utilize buffered samples as positive pairs when full class-level supervision is unavailable?
- RQ3Is Instance-wise Relation Distillation (IRD) effective in preserving learned representations without relying on a jointly trained classifier?
- RQ4How do the asymmetric SupCon loss and IRD loss complement each other in improving continual learning performance?
- RQ5Does the proposed Co$^2$L framework achieve state-of-the-art performance across diverse continual learning benchmarks?
Key findings
- Co$^2$L achieves 65.57% accuracy on Seq-CIFAR-10 under class-IL, significantly outperforming the baseline SupCon loss (60.49%) and other SOTA methods.
- The asymmetric SupCon loss improves representation quality, as shown by better feature clustering in t-SNE visualizations, where buffered samples are more representative of the full class distribution.
- IRD alone boosts accuracy by 5.64 percentage points (from 53.25% to 58.89%) on Seq-CIFAR-10 without a buffer, demonstrating its effectiveness in preserving representations.
- The combination of asymmetric SupCon and IRD yields the highest performance (65.57% on Seq-CIFAR-10), showing that both components are complementary and essential.
- In an ideal infinite-buffer scenario, IRD closes the performance gap between symmetric and asymmetric SupCon, proving its role in maximizing the utility of buffered samples.
- On Seq-Tiny-ImageNet, Co$^2$L achieves 20.12% accuracy with 500 buffer samples, outperforming the original SupCon (19.68%) and demonstrating scalability to larger datasets.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.