ILCOC: An Incremental Learning Framework Based on Contrastive One-Class Classifiers

Wenju Sun, Jing Zhang, Danyu Wang, Yangli-ao Geng, Qingyong LiWorkshops @ CVPR 2021

Abstract

In class incremental learning, the number of classes to be handled increases dynamically with the number of tasks. The primary challenge is catastrophic forgetting—the performance degradation on old tasks after learning new ones. Existing algorithms typically train multi-class classifiers that divide the feature space with decision boundaries. When new data arrives, these boundaries are updated, often destroying the representation of old classes. We propose ILCOC, a novel framework based on contrastive one-class classifiers. By training a dedicated one-class classifier for each category, we create stable decision boundaries that do not shift during incremental steps. We introduce three novel losses—scale-boundary, classifier-contrastive, and negative-suppression—to ensure comparability and discriminative power. Experimental results on MNIST, CIFAR-10, and Tiny-ImageNet show that ILCOC achieves state-of-the-art performance.

Introduction

Deep learning models are notoriously susceptible to catastrophic forgetting in Class Incremental Learning (class-IL) scenarios. The root cause lies in the standard multi-class classification approach (e.g., Softmax). As illustrated in the comparison below, multi-class classifiers partition the entire feature space. When a new class is introduced, the model must redraw these boundaries without access to old data, frequently cutting through regions previously assigned to old classes.

Comparison of Multi-class vs. One-class classifier boundaries in incremental learning.

In contrast, a one-class classifier focuses on characterizing the distribution of a single class. The resulting decision boundaries are tighter and remain fixed as new tasks are added, providing an inherent defense against forgetting.

Methodology

ILCOC (Incremental Learning based on Contrastive One-class Classifiers) utilizes independent one-class classifiers for every category. The system uses Deep SVDD as a foundation, mapping images of a specific class into a tight hypersphere in a latent space.

Contrastive Loss Functions

To enable parallel one-class classifiers to function as a multi-class system, their output scores must be comparable. ILCOC introduces three specialized loss functions to address this:

  1. Scale-boundary Loss: Forces every class's hypersphere to have the same radius ($r$), normalizing confidence scores across independent models.
  2. Classifier-contrastive Loss: Teaches the current model to be more confident about its target data than any previously trained models, helping distinguish new classes from the "known" world.
  3. Negative-suppression Loss: Uses samples from other classes within the current task as negative examples, pushing them away from the center of the target class's hypersphere.
The ILCOC framework architecture and the interaction of the three contrastive loss functions.

Experimental Results

ILCOC was evaluated against standard incremental learning baselines. It significantly outperformed traditional regularization (EWC) and distillation (LWF) methods across all benchmarks.

Method MNIST CIFAR-10 Tiny-ImageNet
oEWC (Regularization) 20.46% 19.49% 7.58%
LWF (Distillation) 19.62% 19.61% 8.46%
ILCOC (Ours) 74.51% 38.40% 16.97%

On complex datasets like CIFAR-10 and Tiny-ImageNet, ILCOC roughly doubled the accuracy of baseline methods. Notably, ILCOC achieved these results without requiring a rehearsal buffer of old images, offering advantages in memory efficiency and data privacy.

Conclusion

By shifting from global multi-class boundaries to local, stable one-class hyperspheres, ILCOC effectively mitigates catastrophic forgetting. While the framework's model size scales linearly with the number of classes, its superior stability and performance on standard benchmarks make it a compelling approach for incremental learning. Future work will explore enhancing the framework's capacity for even larger-scale datasets.

Summary updated

BibTeX
@inproceedings{sun2021ilcoc,
  author = {Wenju Sun and Jing Zhang and Danyu Wang and Yangli-ao Geng and Qingyong Li},
  title = {{ILCOC: An Incremental Learning Framework Based on Contrastive One-Class Classifiers}},
  booktitle = {Workshops @ CVPR},
  year = {2021},
  url = {https://openreview.net/forum?id=6FMhY-T3Gaf},
}
Figure