Tackling Online One-Class Incremental Learning by Removing Negative Contrasts

Nader Asadi, Sudhir Mudur, Eugene Belilovsky · DOI

TL;DR

This paper introduces a novel approach to online continual learning, specifically addressing the challenging "one-class incremental learning" scenario where new classes appear one at a time. By adapting self-supervised learning techniques and introducing class prototypes, their method, CCP, achieves state-of-the-art performance in this setting and remains competitive in more general multi-class scenarios, all without relying on negative sample contrasts.

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 particularly difficult scenario is "online one-class incremental learning," where the model encounters new classes one by one, and at test time, it must classify data without knowing which task it belongs to. Existing methods often struggle here because they rely on contrasting new data with old data, which becomes problematic when only one new class is introduced at a time. This paper tackles this limitation by proposing a method that can learn new classes in isolation, avoiding the need for negative contrasts and thus making it suitable for the one-class incremental setting.

Methods

The authors propose two main methods:

  • SupBYOL (Supervised BYOL): They adapt the BYOL (Bootstrap Your Own Latent) self-supervised learning framework to the supervised setting. BYOL uses a twin network architecture (online and target) and an asymmetric loss to learn representations without explicit negative samples. SupBYOL applies this to incoming data and uses a modified cross-entropy loss for replayed data from a memory buffer. This approach allows learning new classes without contrasting them to old ones.
  • CCP (Continual Contrast of Class Prototypes): This is their main contribution. Building on SupBYOL, CCP introduces class prototypes. These prototypes act as cluster representatives for each observed class. The method jointly optimizes network parameters and prototypes to pull samples of a class towards its prototype while simultaneously enforcing separation between different class prototypes. This contrastive loss on prototypes helps prevent representation collapse and ensures inter-class variance without needing negative samples. For updating prototypes of old classes, they use a momentum update based on replayed samples to maintain stability.

Datasets

The experiments were conducted on:

  • Split CIFAR-10: This dataset was partitioned into 10 disjoint tasks (1 class per task, denoted S=1) and 5 disjoint tasks (2 classes per task, denoted S=2).
  • Split CIFAR-100: This dataset was partitioned into 100 disjoint tasks (1 class per task, denoted S=1) and 20 disjoint tasks (5 classes per task, denoted S=5).

Key Insights and Ideas

  • Adapting Self-Supervised Learning for Supervised Continual Learning: The paper demonstrates that techniques like BYOL, originally designed for self-supervised learning, can be effectively adapted to supervised continual learning, particularly for overcoming the limitations of negative sample reliance.
  • Prototypes as Class Representatives: Using prototypes as explicit representatives for each class is a powerful way to enforce inter-class separation and reduce intra-class variance, especially in challenging incremental settings.
  • Eliminating Negative Contrasts: The core innovation is removing the need for negative samples in the learning process. This is crucial for the one-class incremental setting where negative examples from other classes are not readily available or easily definable.
  • Bridging One-Class and Multi-Class Performance: The proposed CCP method not only excels in the difficult one-class incremental setting but also shows competitive performance in the more standard multi-class incremental setting, highlighting its general applicability.

Key Results

  • One-Class Incremental Learning: CCP significantly outperforms existing methods like ER-ACE and ER-AML (which cannot be applied in this setting) in both accuracy and forgetting metrics on Split CIFAR-10.
  • Multi-Class Incremental Learning: In the multi-class setting (S=2 for CIFAR-10, S=5 for CIFAR-100), CCP achieves performance close to top methods like ER-AML and ER-ACE, significantly improving upon SupBYOL.
  • Scalability: The performance gap over existing methods widens as the number of classes increases, suggesting good scalability for the proposed approach.

Limitations and Future Work

  • Computational Footprint: The paper notes that BYOL's twin architecture has a larger compute footprint than methods like ER-AML, making it less suitable for extremely constrained online learning.
  • Offline One-Class Incremental Learning: The authors suggest that future work could explore applying their approach to the offline one-class incremental learning setting.
  • Generalization: While competitive, the paper aims to match i.i.d. performance in the multi-class setting, indicating there's still room for improvement to fully close the gap with ideal scenarios.

Summary updated

BibTeX
@misc{asadi2021tackling,
  author = {Nader Asadi and Sudhir Mudur and Eugene Belilovsky},
  title = {{Tackling Online One-Class Incremental Learning by Removing Negative Contrasts}},
  year = {2021},
  eprint = {2203.13307},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.13307},
}
Figure