Abstract
Deep learning models are prone to catastrophic forgetting when learning new tasks sequentially. Class-incremental learning (CIL) addresses this by enabling models to learn new classes without access to the original data of previous tasks. While exemplar-based methods are popular, they raise privacy concerns and require significant storage. We propose Generative Feature Replay (GFR), which leverages a Generative Adversarial Network (GAN) to replay high-level features instead of raw pixels. By combining feature distillation with generative replay, GFR achieves state-of-the-art performance on large-scale benchmarks like ImageNet while maintaining a constant, minimal storage footprint.
Introduction
A fundamental challenge in lifelong learning is catastrophic forgetting, where training on new data leads to a sharp decline in performance on previously learned tasks. In class-incremental learning, the model must distinguish between all classes seen so far without task-specific identifiers at inference. Existing solutions typically fall into two categories: regularization-based methods, which constrain parameter changes, and replay-based methods, which use stored exemplars or generated images to maintain knowledge. However, pixel-level generative replay is often computationally prohibitive for complex datasets. GFR overcomes this by replaying abstract features, which are easier to model and generate.
Methodology: Generative Feature Replay
The GFR framework decomposes the neural network into a feature extractor ($F$) and a classifier ($H$). The core innovation lies in replaying features generated by a conditional GAN ($G$) to simulate previous tasks.
Feature Distillation and Replay
To prevent the feature extractor from drifting significantly during new task training, an L2 distillation loss is applied between the current features and those produced by the frozen model from the previous step. Simultaneously, the generator $G_t$ is trained to produce feature distributions corresponding to the classes in task $t$. During the learning of task $t+1$, the model is trained on a combination of real data from the new task and synthetic features replayed from $G_t$ for all previous classes.
Replay Alignment
To ensure consistency, a "Replay Alignment" loss is introduced. This ensures that the generator remains stable across tasks, preventing the synthesized feature distributions from shifting as the model evolves.
Experimental Results
GFR was evaluated on CIFAR-100, ImageNet-Subset, and the full ImageNet-1000 dataset. The results demonstrate that replaying features is significantly more effective than replaying raw images for complex data.
Performance and Scalability
As shown in the experimental results, GFR consistently outperforms non-exemplar methods like Learning without Forgetting (LwF) and Elastic Weight Consolidation (EWC). Notably, it remains competitive with, and sometimes exceeds, the performance of exemplar-based methods like iCaRL, despite not storing any real images. On ImageNet-1000, GFR requires only 4.5 MB of storage for the generator—a fraction of the 3.8 GB required to store just 20 images per class.
Feature Stability
Analysis using Canonical Correlation Analysis (CCA) revealed that while early layers (capturing edges and textures) remain stable, higher-level task-specific features are most susceptible to forgetting. GFR's focus on replaying these high-level features directly addresses this vulnerability.
Conclusion
Generative Feature Replay represents a significant step forward for class-incremental learning. By shifting the focus from pixel-level generation to feature-level modeling, the approach achieves high accuracy and scalability without the privacy and storage drawbacks of exemplar-based methods. Future work will explore the application of GFR to open-set recognition and continuous embedding learning.
Reference: Liu, X., et al. (2020). Generative Feature Replay For Class-Incremental Learning. arXiv:2004.09199.
Summary updated