Skip to main content
QUICK REVIEW

[Paper Review] Generative Feature Replay For Class-Incremental Learning

Xialei Liu, Chenshen Wu|arXiv (Cornell University)|Apr 20, 2020
Domain Adaptation and Few-Shot LearningComputer Science59 references10 citations
TL;DR

This paper proposes Generative Feature Replay (GFR), a class-incremental learning method that avoids catastrophic forgetting by generating high-level features instead of images, combining generative replay in the classifier with feature distillation in the feature extractor. It achieves state-of-the-art accuracy on CIFAR-100 and ImageNet with minimal storage—only 4.5MB for the generator—outperforming exemplar-based methods that require thousands of stored samples.

ABSTRACT

Humans are capable of learning new tasks without forgetting previous ones, while neural networks fail due to catastrophic forgetting between new and previously-learned tasks. We consider a class-incremental setting which means that the task-ID is unknown at inference time. The imbalance between old and new classes typically results in a bias of the network towards the newest ones. This imbalance problem can either be addressed by storing exemplars from previous tasks, or by using image replay methods. However, the latter can only be applied to toy datasets since image generation for complex datasets is a hard problem. We propose a solution to the imbalance problem based on generative feature replay which does not require any exemplars. To do this, we split the network into two parts: a feature extractor and a classifier. To prevent forgetting, we combine generative feature replay in the classifier with feature distillation in the feature extractor. Through feature generation, our method reduces the complexity of generative replay and prevents the imbalance problem. Our approach is computationally efficient and scalable to large datasets. Experiments confirm that our approach achieves state-of-the-art results on CIFAR-100 and ImageNet, while requiring only a fraction of the storage needed for exemplar-based continual learning. Code available at \url{https://github.com/xialeiliu/GFR-IL}.

Motivation & Objective

  • To address catastrophic forgetting in class-incremental learning where task identities are unknown at inference time.
  • To overcome the imbalance problem caused by limited data from previous tasks, which biases classifiers toward newer classes.
  • To eliminate the need for storing exemplars from previous tasks due to privacy or storage constraints.
  • To improve scalability to large datasets like ImageNet by replacing complex image generation with simpler feature generation.
  • To achieve state-of-the-art performance with significantly reduced memory overhead compared to exemplar-based approaches.

Proposed method

  • The network is split into a feature extractor and a classifier, with the feature extractor trained via feature distillation to preserve knowledge from previous tasks.
  • Generative replay is applied to high-level features (e.g., from the final fully connected layer) rather than raw images, reducing generation complexity.
  • A generator is trained to synthesize features from previous tasks, which are then used during training on current tasks to balance class distribution.
  • Feature distillation is applied to the feature extractor to maintain representation stability across tasks.
  • The method uses GANs or Gaussian noise for feature generation, with ablation studies identifying optimal feature depth for replay.
  • The approach dynamically combines generated features with current task data during training, avoiding reliance on stored exemplars.
Figure 1: Comparison of generative image replay and the proposed generative feature replay. Instead of replaying images $x$ the proposed method uses a generator $G$ to replay features $u$ . To prevent forgetting in the feature extractor $F$ we apply feature distillation. Feature replay allows us to
Figure 1: Comparison of generative image replay and the proposed generative feature replay. Instead of replaying images $x$ the proposed method uses a generator $G$ to replay features $u$ . To prevent forgetting in the feature extractor $F$ we apply feature distillation. Feature replay allows us to

Experimental results

Research questions

  • RQ1Can generative feature replay effectively mitigate catastrophic forgetting in class-incremental learning without storing exemplars?
  • RQ2Does generating high-level features instead of images lead to better performance and scalability on large datasets like ImageNet?
  • RQ3How does the choice of feature depth (e.g., block-level vs. final layer) affect the performance of generative replay?
  • RQ4Can feature distillation combined with generative replay outperform both exemplar-based and image-generation-based methods in terms of accuracy and memory efficiency?
  • RQ5How does the method perform under increasing task numbers, especially in long-tail class-incremental scenarios?

Key findings

  • On CIFAR-100 with 25 tasks, GFR outperforms iCaRL-NME by a large margin and achieves comparable results to Rebalance, despite not using any exemplars.
  • On ImageNet-1000, GFR achieves state-of-the-art accuracy with only 4.5MB of memory for the generator, significantly less than the 3.8GB required for 20 exemplars per class in iCaRL.
  • The method with GAN-based feature generation outperforms Gaussian replay and surpasses Rebalance by a large margin, especially as the number of tasks increases.
  • Ablation studies show that replaying features from Block 4 (high-level features) yields 57.6% average accuracy, while lower-level replay (Block 1) drops to 80.7%, indicating that high-level features are easier and more effective to generate.
  • Memory usage is drastically reduced: GFR requires only 4.5MB, compared to 375MB for iCaRL and 8.5MB for MeRGAN, while achieving better performance than MeRGAN on ImageNet.
  • Feature distillation in the feature extractor helps maintain representation stability, and CCA analysis confirms that forgetting is most severe in deeper layers, justifying the focus on high-level features.
Figure 2: Canonical Correlation Analysis (CCA) similarity of different continual learning methods performed on equally distributed 4-task scenario on CIFAR-100. The vertical axis shows the evolution over time of the correlation for given task activations. The horizontal axis shows correlation at dif
Figure 2: Canonical Correlation Analysis (CCA) similarity of different continual learning methods performed on equally distributed 4-task scenario on CIFAR-100. The vertical axis shows the evolution over time of the correlation for given task activations. The horizontal axis shows correlation at dif

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.