Diffusion Model Meets Non-Exemplar Class-Incremental Learning and Beyond

Jichuan Zhang, Yali Li, Xin Liu, Shengjin WangarXiv 2024 · DOI

Introduction

In the rapidly evolving landscape of artificial intelligence, the ability for models to learn continuously from a stream of data is paramount. This capability, known as Class-Incremental Learning (CIL), aims to enable neural networks to acquire new tasks without losing proficiency in previously learned ones. However, deep learning models are notoriously susceptible to "catastrophic forgetting"—a phenomenon where new information overwrites existing knowledge.

While traditional CIL methods often rely on storing a subset of original data (exemplars) to mitigate forgetting, real-world constraints such as privacy regulations and storage limitations often make this impossible. This has given rise to Non-Exemplar Class-Incremental Learning (NECIL).

The Challenge of Non-Exemplar CIL

Existing NECIL approaches typically attempt to generate synthetic features to "remind" the model of past classes. However, these methods often struggle with a significant "distribution gap." Simple generative models frequently fail to capture the complex geometric "shape" of feature distributions, leading to overlapping decision boundaries and degraded performance as more classes are introduced.

The DiffFR Framework

To address these limitations, researchers from Tsinghua University have introduced DiffFR (Diffusion-based Feature Replay). This novel approach leverages the high-fidelity generation capabilities of diffusion models to produce synthetic features that accurately reflect the distribution of past classes.

Overview of the DiffFR framework, showing initial training and the incremental learning phase with diffusion-based feature replay.

The DiffFR pipeline consists of three primary stages:

  1. Generalizable Feature Extraction: The process begins with training a robust feature extractor using Siamese-based self-supervised learning. This creates a more resilient feature space that minimizes class overlap from the outset.
  2. Diffusion-based Feature Replay: Instead of the computationally intensive task of generating full images, DiffFR employs a compact 1D U-Net diffusion model to generate 1D feature vectors. This allows the model to "memorize" the statistical fingerprint of old classes efficiently.
  3. Prototype Calibration: To ensure the diffusion model captures the true distribution shape rather than just simple statistics, the authors implement a calibration step. Features are normalized by class before training the generator, forcing it to learn the underlying geometric structure. During replay, these features are "denormalized" back to their appropriate positions in the feature space.

Experimental Evaluation and Results

DiffFR was rigorously tested on standard benchmarks, including CIFAR-100, TinyImageNet, and ImageNet-Subset. The results consistently demonstrate its superiority over existing state-of-the-art NECIL methods.

Performance comparison of DiffFR against state-of-the-art methods on CIFAR-100, TinyImageNet, and ImageNet-Subset.

Key Findings:

  • Superior Accuracy: DiffFR outperformed the previous best methods by an average of 3.0% to 6.0% across various incremental steps.
  • Robustness to Forgetting: The model showed significantly slower performance degradation as the number of tasks increased. For instance, in a 20-phase test on CIFAR-100, it maintained a high accuracy of 72.1%.
  • Efficiency: By operating in the 1D feature space rather than the image space, DiffFR remains highly efficient. Training time per phase on a single NVIDIA 3090 GPU was approximately 0.3 hours, making it practical for real-world deployment.

Conclusion

DiffFR represents a significant step forward in Non-Exemplar Class-Incremental Learning. By demonstrating that the "shape" of feature distributions is critical for maintaining knowledge, and by using diffusion models to capture that shape efficiently, the authors provide a powerful tool for building more sustainable and privacy-conscious AI systems.

Reference: Zhang, J., Li, Y., Liu, X., & Wang, S. (2024). Diffusion Model Meets Non-Exemplar Class-Incremental Learning and Beyond. arXiv:2408.02983v1.

Summary updated

BibTeX
@misc{zhang2024diffusion,
  author = {Jichuan Zhang and Yali Li and Xin Liu and Shengjin Wang},
  title = {{Diffusion Model Meets Non-Exemplar Class-Incremental Learning and Beyond}},
  year = {2024},
  eprint = {2408.02983},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.02983},
}
Figure