Few-Shot Class-Incremental Learning via Entropy-Regularized Data-Free Replay

Huan Liu, Li Gu, Zhixiang Chi, Yang Wang, Yuanhao Yu, Jun Chen, Jin Tang

Abstract

Few-shot class-incremental learning (FSCIL) aims to enable deep learning systems to incrementally learn new classes with limited data. Recently, it has been claimed that replay-based methods, common in class-incremental learning (CIL), are ineffective for FSCIL. This paper challenges that claim, demonstrating through empirical results that data replay is surprisingly favorable. To address privacy concerns associated with storing real data, we propose a data-free replay framework using a generator to synthesize data. By imposing entropy regularization during generator training, we encourage the production of uncertain examples near decision boundaries. Furthermore, we relabel generated data with one-hot targets to simplify the learning objective. Extensive experiments on CIFAR-100, miniImageNet, and CUB-200 demonstrate the effectiveness of our approach.

Introduction

Deep learning models typically suffer from catastrophic forgetting when learning new tasks sequentially. Class-Incremental Learning (CIL) addresses this by allowing models to learn new classes over time. Few-Shot Class-Incremental Learning (FSCIL) introduces the additional constraint of having only a few examples (e.g., 5-shot) for new classes. While standard CIL often utilizes a replay buffer of old data, recent influential work suggested this approach is ineffective for the few-shot regime. Moreover, storing user data presents significant privacy and legal hurdles. This paper seeks to rehabilitate replay-based methods for FSCIL using a privacy-preserving, data-free approach.

Methodology

The core of our approach is a Data-Free Replay framework. Instead of storing actual images, we "invert" the previous session's model to train a generator capable of synthesizing representative data for old classes.

The proposed Data-free Replay framework for incremental learning.

Entropy-Regularized Generation

Traditional data-free methods aim to generate prototypical, high-confidence examples. However, for effective knowledge distillation, samples near decision boundaries—where the model is uncertain—are more informative. We introduce an entropy regularization term to the generator's loss function. By maximizing the Shannon entropy of the old model’s predictions on synthetic images, the generator is incentivized to produce "hard" examples that better define the boundaries of the learned feature space.

One-Hot Re-labeling and Fine-tuning

To avoid the complex hyperparameter tuning required for standard distillation losses (which use soft probability distributions), we employ a one-hot re-labeling strategy. Synthetic images are passed through the old model, and the class with the highest prediction is assigned as a hard label. This allows the new model to be trained using a standard cross-entropy loss for both synthetic (old) and real (new) data. Unlike many FSCIL methods that freeze the backbone, our robust replay strategy allows for full-network fine-tuning, enabling the feature extractor to adapt to new classes without forgetting the old ones.

Experimental Results

We evaluated the proposed method on three benchmarks: CIFAR-100, miniImageNet, and CUB-200.

Performance on CIFAR-100

On CIFAR-100 (60 base classes, 8 incremental sessions of 5 classes each), our method consistently outperformed existing baselines, including those that specifically avoid replay.

Accuracy comparison on CIFAR-100 across incremental sessions.

As shown in the results, our method achieved a final accuracy of 50.14%, surpassing the previous state-of-the-art (CEC at 49.14%). Similar gains were observed on miniImageNet (48.21% final accuracy) and the fine-grained CUB-200 dataset (52.39% final accuracy).

Conclusion

This work demonstrates that replay-based methods are not only viable but highly effective for FSCIL when implemented correctly. By utilizing entropy-regularized data-free replay and a simplified one-hot labeling scheme, we achieve state-of-the-art performance while respecting data privacy. Future research will focus on scaling these generative techniques to larger, higher-resolution datasets where generator training becomes more computationally demanding.

Summary updated

BibTeX
@inproceedings{liu2022few,
  author = {Huan Liu and Li Gu and Zhixiang Chi and Yang Wang and Yuanhao Yu and Jun Chen and Jin Tang},
  title = {{Few-Shot Class-Incremental Learning via Entropy-Regularized Data-Free Replay}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  url = {https://openreview.net/forum?id=8fLq8D4WIrb},
}
Figure