Regularizing with Pseudo-Negatives for Continual Self-Supervised Learning

Sungmin Cha, Kyunghyun Cho, Taesup Moon

Overview

Self-Supervised Learning (SSL) has revolutionized how we train models without labeled data, but it typically requires massive datasets and "joint training"—processing all data at once. Continual Self-Supervised Learning (CSSL) aims to be more efficient by learning from a continuous stream of data over time.

The primary challenge in CSSL is the "stability-plasticity dilemma." If a model is too stable, it struggles to learn new concepts (low plasticity). If it is too plastic, it overwrites previously learned information, a phenomenon known as catastrophic forgetting (low stability). Current CSSL methods, such as CaSSLe, attempt to solve this by forcing the current model's representations to stay similar to the previous model's. However, this strict "similarity" constraint can be overly restrictive, hindering the model from learning optimal representations for new tasks.

To address this, researchers have introduced Pseudo-Negative Regularization (PNR), a novel framework that prevents catastrophic forgetting by using the previous model's outputs as negative constraints. By ensuring that new representations don't overlap with or contradict past knowledge, PNR achieves state-of-the-art performance across both contrastive and non-contrastive learning architectures.

The Pseudo-Negative Regularization (PNR) Framework

The core innovation of PNR is the use of the previous model to generate "pseudo-negatives"—feature representations that the current model should explicitly distance itself from in the embedding space.

Overview of the PNR framework showing how pseudo-negatives from a frozen previous model are used to regularize the current model.

PNR adapts this concept depending on the underlying SSL architecture:

  • For Contrastive Learning (e.g., SimCLR, MoCo): These methods naturally rely on "negative samples" to push different images apart in the embedding space. PNR modifies the standard InfoNCE loss to include features from the previous model as additional negatives. This effectively "repels" the new model's embeddings from the space occupied by the old model's representations, preventing overlap and preserving past knowledge.
  • For Non-Contrastive Learning (e.g., BYOL, VICReg): These methods do not inherently use negative samples. PNR introduces them by taking a differently augmented version of an image, passing it through the old model, and adding a regularization term to the loss function. This term maximizes the distance (Mean Squared Error) between the current model's prediction and this newly defined "pseudo-negative."

In contrastive cases, pseudo-negatives are applied symmetrically to both the main task and the regularization. In non-contrastive cases, they are applied asymmetrically to the regularization term to maintain stability without disrupting the primary learning objective.

Key Insights

  • Repulsion is as Important as Attraction: Traditional regularization focuses on "attraction"—keeping new representations close to the old model's outputs. PNR adds "repulsion"—actively staying away from the old model's negative space. This provides the model with more "breathing room" to learn distinctive new features without overwriting old ones.
  • Data-Free Regularization: Instead of storing old data in a memory-intensive replay buffer, PNR uses the previous model itself as a source of structural information via model-based augmentation.
  • Universal Applicability: A surprising finding is that the concept of "negatives" can be successfully grafted onto non-contrastive methods like BYOL, which were specifically designed to operate without them. This suggests that pseudo-negatives are a fundamental tool for maintaining stability in continual learning.

Experimental Results

The researchers evaluated PNR on several standard computer vision benchmarks, including CIFAR-100 (Class-Incremental Learning), ImageNet-100 & ImageNet-1k (Scalability), and DomainNet (Domain-Incremental Learning).

Performance comparison across sequential tasks showing PNR consistently outperforming the CaSSLe baseline across various SSL architectures.
  • State-of-the-Art Performance: PNR consistently outperformed the previous state-of-the-art method, CaSSLe. For instance, on ImageNet-100 using MoCo, PNR achieved 67.85% accuracy compared to CaSSLe’s 63.49%.
  • Better Trade-offs: Gradient analysis and stability/plasticity metrics demonstrated that PNR allows the model to learn new tasks more effectively (higher plasticity) while suffering significantly less from forgetting (higher stability).
  • Domain Robustness: In DomainNet experiments, PNR showed a massive lead, particularly when combined with MoCo, outperforming other methods by 3-8% in accuracy.
  • High Efficiency: PNR adds almost zero computational or memory overhead compared to existing regularization methods, as it primarily involves reusing existing model outputs.

Limitations and Future Work

While highly effective, the current study focused exclusively on Convolutional Neural Networks (ResNet-18 and ResNet-50) within the computer vision domain. The authors note that testing PNR on Vision Transformers (ViTs) and extending the pseudo-negative concept to other modalities, such as Natural Language Processing (NLP), are important next steps. Additionally, for MoCo-based implementations, the framework exhibits some hyperparameter sensitivity regarding the size of the queue used to store pseudo-negatives; performance can degrade if the queue is too small.

Summary updated

BibTeX
@inproceedings{cha2024regularizing,
  author = {Sungmin Cha and Kyunghyun Cho and Taesup Moon},
  title = {{Regularizing with Pseudo-Negatives for Continual Self-Supervised Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=9jXS07TIBH},
}
Figure