Non-Exemplar Class-Incremental Learning by Random Auxiliary Classes Augmentation and Mixed Features

Ke Song, Guoqiang Liang, Zhaojie Chen, Yanning ZhangIEEE TCSVT 2023

TL;DR

This paper introduces RAMF, a novel non-exemplar class-incremental learning (NECIL) method that tackles catastrophic forgetting by using random auxiliary class augmentation and mixed features. RAMF achieves state-of-the-art results on NECIL benchmarks, outperforming existing methods and even rivaling some exemplar-based approaches, while avoiding the need to store old class samples.

What Problem Does This Paper Address?

Deep learning models excel when trained on large, static datasets. However, real-world scenarios often involve data arriving in a continuous stream, requiring models to learn new information without forgetting previously acquired knowledge. This is known as incremental learning or continual learning. A particularly challenging sub-problem is class-incremental learning (CIL), where new classes are introduced over time.

A major hurdle in CIL is catastrophic forgetting: when a model learns new classes, it tends to overwrite or degrade its performance on previously learned classes. Traditional CIL methods often rely on exemplars – storing a small subset of samples from old classes – to mitigate forgetting. However, storing exemplars raises privacy concerns and increases memory requirements, making them impractical in many real-world applications.

This paper focuses on non-exemplar class-incremental learning (NECIL), which aims to learn new classes without storing any samples from old classes. The challenge here is to prevent catastrophic forgetting without access to old data. Existing NECIL methods often struggle with this, as models tend to become biased towards new classes, leading to significant performance degradation on older classes.

Methods

The proposed RAMF (Random Auxiliary Classes Augmentation and Mixed Features) method addresses NECIL by introducing two key innovations:

  • Random Auxiliary Classes Augmentation:
    • In the initial stage, RAMF augments input data using a "Base ClassAug" (specifically Mixup) and a randomly selected "Auxiliary ClassAug" from three options: rotation, cutout, or color permutation. This process generates augmented samples with new class labels, effectively expanding the model's learning capacity and encouraging it to learn more diverse and transferable features. The randomness in selecting the augmentation mimics the incremental learning process, helping the model prepare for future tasks.
  • In subsequent incremental stages, the Auxiliary ClassAug is fixed to rotation. This choice is motivated by rotation's ability to generate more features and classes from original images, promoting transferability, while avoiding the potential for overfitting or excessive feature space drift that other augmentations might cause.
  • Mixed Features:
    • During incremental learning, models are updated using only new class data. This can lead to a bias towards new features and a drift away from the original feature space. To combat this, RAMF proposes replacing the features extracted from new samples with mixed features. These mixed features are a weighted combination of features from the current (new) and previous (old) feature extractors. This blending helps to reduce the angle between current and old features, improving cosine similarity and thus stabilizing the feature space, which is crucial for retaining performance on old classes. The paper also uses cosine normalization in the classifier to further enhance stability.

Datasets

RAMF was evaluated on three standard benchmarks:

  • CIFAR-100: A dataset with 100 classes.
  • TinyImageNet: A dataset with 200 classes.
  • ImageNet-Subset: A subset of ImageNet with 100 classes.

The paper uses various configurations for the number of initial classes and incremental stages (e.g., 5, 10, or 20 phases) to thoroughly evaluate the methods.

Key Insights and Ideas

  • Randomness as a Mimic for Incremental Learning: The paper argues that introducing randomness in the initial augmentation phase can help the model learn more robust and transferable features, effectively preparing it for the sequential nature of incremental learning.
  • Balancing Plasticity and Stability: RAMF aims to strike a better balance between plasticity (ability to learn new tasks) and stability (retaining old knowledge). The random augmentation enhances plasticity, while mixed features and fixed rotation augmentation in later stages promote stability.
  • The Power of Auxiliary Classes: Generating auxiliary classes, even without real samples, can significantly improve a model's generalization and reduce forgetting by expanding the feature learning space.
  • Feature Mixing for Stability: Directly using only new features can cause significant drift. Blending new and old features provides a smoother transition, mitigating this drift and preserving performance on older classes.

Key Results

  • RAMF significantly outperforms state-of-the-art non-exemplar class-incremental learning (NECIL) methods across all tested benchmarks (CIFAR-100, TinyImageNet, ImageNet-Subset).
  • On CIFAR-100, RAMF achieves an average accuracy improvement of over 7% compared to the best NECIL method (Fetril).
  • RAMF's performance is comparable to high-performance exemplar-based methods, demonstrating its effectiveness in a challenging setting where exemplars are not allowed.
  • Ablation studies show that both Random Auxiliary Class Augmentation and Mixed Features contribute significantly to the overall performance, with the combined approach yielding the best results.
  • t-SNE visualizations confirm that RAMF maintains better separation of feature spaces for old and new classes compared to other methods, indicating reduced forgetting and improved generalization.

Limitations and Future Work

  • Plasticity-Stability Dilemma: The authors acknowledge that while RAMF improves stability, it might slightly limit the model's ability to learn new tasks (plasticity). They suggest that improving plasticity remains an open challenge for future work.
  • Hyperparameter Tuning: The effectiveness of the random augmentation weights (e.g., 8:1:1 for rotation, cutout, color permutation) and the mixing coefficient (λ) might require careful tuning for different datasets and tasks.
  • Generalization to Diverse Tasks: While tested on image classification, exploring RAMF's effectiveness on other domains like object detection or segmentation would be valuable.

Summary updated

BibTeX
@article{song2023non,
  author = {Ke Song and Guoqiang Liang and Zhaojie Chen and Yanning Zhang},
  title = {{Non-Exemplar Class-Incremental Learning by Random Auxiliary Classes Augmentation and Mixed Features}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2023},
}
Figure