DeepCollaboration: Collaborative Generative and Discriminative Models for Class Incremental Learning

Bo Cui, Guyue Hu, Shan YuAAAI 2021

Abstract

An important challenge for neural networks is to learn incrementally, i.e., learn new classes without catastrophic forgetting. To overcome this problem, generative replay technique has been suggested, which can generate samples belonging to learned classes while learning new ones. However, such generative models usually suffer from increased distribution mismatch between the generated and original samples along the learning process. In this work, we propose DeepCollaboration (D-Collab), a collaborative framework of deep generative and discriminative models to solve this problem effectively. We develop a discriminative learning model to incrementally update the latent feature space for continual classification. At the same time, a generative model is introduced to achieve conditional generation using the latent feature distribution produced by the discriminative model. Importantly, the generative and discriminative models are connected through bidirectional training to enforce cycle-consistency of mappings between feature and image domains. Furthermore, a domain alignment module is used to eliminate the divergence between the feature distributions of generated images and real ones. This module together with the discriminative model can perform effective sample mining to facilitate incremental learning. Extensive experiments on several visual recognition datasets show that our system can achieve state-of-the-art performance.

Introduction

Deep neural networks typically suffer from catastrophic forgetting when learning new tasks sequentially. Without access to previous training data, new weight updates often overwrite representations of old classes. While Generative Replay—using a generator to "hallucinate" old samples—is a popular solution, it is plagued by distribution mismatch. As the model progresses through incremental stages, the gap between generated and real data distributions widens, leading to performance collapse.

DeepCollaboration (D-Collab) addresses this by shifting the focus from making images look real to ensuring they behave like real data in the feature space. By establishing a collaborative, bidirectional loop between the classifier and the generator, D-Collab maintains a consistent and discriminative latent space over time.

Methodology

The D-Collab framework integrates several key components to stabilize incremental learning:

  1. vMF Feature Modeling: The model utilizes a mixture of von Mises-Fisher (vMF) distributions to model features on a hypersphere. This provides a structured latent space that facilitates both classification and conditional generation.
  2. Bidirectional Cycle-Consistency: To "close the loop" between the image and feature domains, D-Collab enforces cycle-consistency. This ensures that an image mapped to a feature and then reconstructed remains consistent, stabilizing the mapping across stages.
  3. Domain Alignment: Specific adaptors ($A^r$ and $A^g$) are introduced to align the feature distributions of real and generated images, minimizing the divergence that typically causes forgetting.
  4. Guided Sample Selection: A confidence-based selection process filters generated samples, ensuring that only high-quality, representative data is used for rehearsal.
Overview of the D-Collab framework architecture across incremental stages.

Experimental Results

The model was evaluated on CIFAR-100, MNIST, and the fine-grained CUB-200 dataset. D-Collab consistently outperformed state-of-the-art methods like iCaRL and BiC.

  • CIFAR-100: In a 5-stage incremental setting, D-Collab achieved 56.92% final accuracy, significantly outperforming standard cGAN-based methods.
  • CUB-200: On this challenging fine-grained task, D-Collab reached 66.28% accuracy, demonstrating its robustness in high-resolution scenarios.

Visual analysis via t-SNE confirms that D-Collab maintains cleaner, more distinct class clusters compared to standard GAN-based replay, which often results in overlapping distributions.

Comparison of feature distributions between standard GAN and D-Collab.

Conclusion

DeepCollaboration demonstrates that a tight, collaborative loop between generative and discriminative models can effectively mitigate catastrophic forgetting. While the framework increases training complexity (1.1x to 2.5x longer than baselines), the gains in accuracy and feature space stability are substantial. Future work may explore extending this collaborative approach to non-visual modalities like audio or sensor data.

Summary updated

BibTeX
@inproceedings{cui2021deepcollaboration,
  author = {Bo Cui and Guyue Hu and Shan Yu},
  title = {{DeepCollaboration: Collaborative Generative and Discriminative Models for Class Incremental Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  url = {https://openreview.net/forum?id=4M0Sf1LYgFQ},
}
Figure