Neighborhood Commonality-aware Evolution Network for Continuous Generalized Category Discovery

Ye Wang, Yaxiong Wang, Guoshuai Zhao, Xueming QianarXiv 2024 · DOI

Introduction

In real-world scenarios, data is rarely static. Generalized Category Discovery (GCD) aims to identify both known and novel classes from a mix of labeled and unlabeled data. However, the more realistic Continuous GCD (C-GCD) setting introduces a temporal dimension: the model must incrementally learn from a sequence of unlabeled image batches without revisiting previous data. This environment poses two significant hurdles: a heavy reliance on initial labeled data and the risk of catastrophic forgetting, where adapting to new classes erodes the model's ability to recognize old ones.

To address these challenges, we introduce the Neighborhood Commonality-aware Evolution Network (NCENet). This framework leverages local neighborhood similarities to guide feature learning and employs a bi-level contrastive distillation process to maintain stability across incremental sessions.

Methods

NCENet is built upon two core modules designed to balance the discovery of new categories with the retention of existing knowledge:

Neighborhood Commonality-aware Representation Learning (NCRL)

Rather than relying on brittle pseudo-labels, NCRL identifies an image's "neighbors" within the feature space. It calculates local commonalities—the average features of a neighborhood—to serve as a stable target for self-distillation. By predicting these commonality distributions across various augmented views, the model learns robust, discriminative features for novel classes.

Bi-level Contrastive Knowledge Distillation (BCKD)

To mitigate forgetting, BCKD facilitates knowledge transfer from the previous session's "teacher" model to the current "student" model. Unlike standard distillation methods that use KL divergence, BCKD employs a contrastive approach. It uses both student-anchored and teacher-anchored perspectives to ensure that the structural relationships between features are preserved, maintaining the relative distances between classes in the feature space.

The NCENet architecture, highlighting the NCRL module for discovery and the BCKD module for knowledge retention.

Experimental Setup

The performance of NCENet was evaluated on three standard computer vision benchmarks adapted for incremental learning:

  • CIFAR10: 7 labeled and 10 unlabeled classes over 4 sessions.
  • CIFAR100: 80 labeled and 100 unlabeled classes over 5 sessions.
  • Tiny-ImageNet: 150 labeled and 200 unlabeled classes over 6 sessions.

Key Insights

Neighbors as Soft Supervisors

A central innovation of NCENet is the use of neighborhood commonality. Instances within the same neighborhood often share semantic traits (e.g., the stripes on different tigers). Using the average feature of these neighbors provides a richer, more stable signal for discovery than analyzing single instances in isolation.

Illustration of neighborhood commonality: local semantics (like tiger stripes) provide a shared signal for predicting distributions across augmented views.

Structural Preservation via Contrastive Distillation

Representation-related knowledge is inherently structured. By using contrastive loss for distillation (BCKD), the model preserves the global topology of the feature space. Experimental results indicate that the model performs best when the balance factor ($\lambda_b$) favors the distillation module, suggesting that protecting existing knowledge is as critical as learning new information in continuous settings.

Results and Performance

NCENet consistently achieved state-of-the-art results across all benchmarks:

  • CIFAR100: In the final session, NCENet outperformed the previous leading method (MetaGCD) by 3.09% on old classes and 6.32% on new classes.
  • Tiny-ImageNet: The model maintained a consistent lead in "New" class accuracy across all five incremental sessions, proving its efficacy in complex, high-dimensional data environments.
  • Efficiency: The neighborhood perception process operates in mini-batches, ensuring computational efficiency without the need for expensive global clustering or massive memory buffers.

Conclusion and Future Work

NCENet provides a robust solution for C-GCD by effectively managing the stability-plasticity trade-off. While the framework excels over several incremental steps, modeling C-GCD over much longer sequences (hundreds of sessions) remains an open challenge. Future research may also explore adaptive neighborhood selection to better accommodate datasets with varying class densities.

Summary updated

BibTeX
@misc{wang2024neighborhood,
  author = {Ye Wang and Yaxiong Wang and Guoshuai Zhao and Xueming Qian},
  title = {{Neighborhood Commonality-aware Evolution Network for Continuous Generalized Category Discovery}},
  year = {2024},
  eprint = {2412.05573},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.05573},
}
Figure