Happy: A Debiased Learning Framework for Continual Generalized Category Discovery

Shijie Ma, Fei Zhu, Zhun Zhong, Wenzhuo Liu, Xu-Yao Zhang, Chenglin Liu

TL;DR

This paper introduces "Happy," a novel framework for Continual Generalized Category Discovery (C-GCD) that tackles the challenge of learning new visual concepts incrementally without forgetting previously learned ones. Happy addresses key biases (prediction and hardness) that hinder performance in realistic, rehearsal-free C-GCD settings, achieving significant improvements on benchmark datasets.

What Problem Does This Paper Address?

The real world is dynamic, with new information constantly emerging. For AI systems to be truly useful, they need to adapt and learn new concepts over time without losing what they already know. This is the essence of Continual Learning. Specifically, this paper focuses on Continual Generalized Category Discovery (C-GCD). Imagine an AI system that initially learns to recognize cats and dogs. Then, over time, it needs to learn to identify new animals like zebras and giraffes, all from unlabeled images, while still being able to recognize cats and dogs.

Existing C-GCD approaches often fall short because they:

  • Use simplified scenarios with few learning stages or new classes.
  • Require storing past data (violating privacy and storage constraints).
  • Assume prior knowledge about the number of new classes or their proportion.
  • Don't accurately reflect real-world conditions where new classes might have more samples than old ones, and the ratio is unknown.

The core challenge in C-GCD is a fundamental conflict: how to effectively discover new classes while simultaneously preventing the model from "forgetting" the old ones. This paper identifies two key issues that exacerbate this problem: prediction bias (models being too confident in old classes, misclassifying new ones as old) and hardness bias (models struggling with more difficult classes, leading to performance fluctuations).

Methods

The proposed framework, Happy, tackles these challenges with two main innovations:

  1. Clustering-Guided Initialization & Soft Entropy Regularization (for Prediction Bias):
    • Clustering-Guided Initialization: Instead of random initialization for new class detectors, Happy uses KMeans clustering on the current data to find initial "centroids" for new classes. This provides a more stable and informed starting point.
  2. Soft Entropy Regularization: This technique helps balance the model's attention between old and new classes. It encourages the model to assign appropriate probabilities to new classes, preventing it from defaulting to its strong predictions for old classes. It does this by treating old and new classes as two groups and applying entropy regularization to this group-wise distribution.
  3. Hardness-Aware Prototype Sampling (for Hardness Bias & Forgetting):
    • Modeling Learned Classes: To combat forgetting without storing data, Happy models the feature distributions of previously learned classes using their prototypes (mean features) and covariances.
  4. Hardness-Aware Sampling: The key insight here is that not all old classes are equally difficult to remember. Happy quantifies the "hardness" of each old class based on its similarity to other classes. It then prioritizes sampling features from these harder classes during training. This ensures that the model dedicates more effort to consolidating knowledge of challenging concepts, thereby mitigating catastrophic forgetting.
  5. Knowledge Distillation: To further combat forgetting, Happy also uses knowledge distillation from the previous stage's model to ensure feature space consistency.

The overall objective function combines losses for new class discovery (self-training), the proposed regularization, and mitigating forgetting.

Datasets

The paper evaluates Happy on several standard datasets for C-GCD:

  • CIFAR100 (C100)
  • ImageNet-100 (IN100)
  • TinyImageNet
  • CUB (Caltech-UCSD Birds-200-2011)

Additionally, they test on CIFAR100-C for robustness under distribution shifts. The experimental setup involves a realistic C-GCD scenario with 5 continual stages (and also 10 stages for extended evaluation), where 50% of classes are initially labeled, and the remaining are discovered incrementally.

Key Insights and Ideas

  • Real-world C-GCD is Harder: The paper argues that previous C-GCD settings were too simplified. Their more realistic setup (more stages, no data storage, unknown class ratios, imbalanced class samples) highlights the true difficulty of the problem.
  • Bias is the Root Cause: The core issues of forgetting and poor new class discovery stem from inherent biases in models: overconfidence in old classes (prediction bias) and uneven difficulty across classes (hardness bias).
  • Hardness Matters for Forgetting: Simply remembering old classes isn't enough; remembering difficult old classes is crucial. Happy's hardness-aware sampling directly addresses this by focusing on what the model is most likely to forget.
  • Mutual Reinforcement: Learning new classes effectively can indirectly help retain old knowledge, and vice-versa. Happy's debiasing strategies create a positive feedback loop.
  • Soft Entropy is Key for Balance: Directly applying entropy regularization can favor old classes. The "group-wise" soft entropy regularization in Happy provides a more balanced approach, crucial for discovering new classes.

Key Results

  • Significant Performance Gains: Happy consistently outperforms state-of-the-art methods across various datasets. For example, it achieves a 7.5% overall gain on ImageNet-100 and significant improvements on CIFAR100 and CUB.
  • Effective Bias Mitigation: Ablation studies and specific metrics (∆p, ∆r, Varo, Acch) demonstrate that Happy effectively reduces both prediction bias and hardness bias.
  • Robustness to Long Continual Learning: Happy shows strong performance even over 10 continual stages, indicating its suitability for long-term learning scenarios.
  • Generalization to Distribution Shifts: The model exhibits strong robustness to unseen distribution shifts on CIFAR100-C.
  • Fine-grained Performance: Happy also performs well on fine-grained datasets like Stanford Cars and FGVC Aircraft.

Limitations and Future Work

  • Confidence Calibration: The paper notes that in imbalanced scenarios, the model's confidence is not well-calibrated, and incorporating prior information can even degrade performance. Future work could focus on confidence calibration techniques.
  • Class Number Estimation: Estimating the number of new classes in an unsupervised setting remains challenging. The paper suggests developing more competent class number estimation methods for C-GCD.
  • Broader Applications: While the current work focuses on classification, future research could extend C-GCD to object detection, segmentation, and multi-modal learning.
  • Fairness and Bias: The authors acknowledge that biases learned from old knowledge can propagate to new discoveries. Future work should pay close attention to fairness issues and the scrutiny of newly learned knowledge.
  • Error Bars: The paper reports average results over 5 runs but does not report error bars, which could provide more insight into the statistical significance of the results.

Summary updated

BibTeX
@inproceedings{ma2024happy,
  author = {Shijie Ma and Fei Zhu and Zhun Zhong and Wenzhuo Liu and Xu-Yao Zhang and Chenglin Liu},
  title = {{Happy: A Debiased Learning Framework for Continual Generalized Category Discovery}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=hdUCZiMkFO},
}
Figure