Generalized Category Discovery under Domain Shift: A Frequency Domain Perspective

Wei Feng, Zongyuan Ge

Introduction

Generalized Category Discovery (GCD) is a pivotal task in computer vision that involves leveraging a small set of labeled data from known categories to cluster a larger, unlabeled dataset containing both known and novel categories. While standard GCD methods have shown promise, they typically operate under the assumption that the labeled and unlabeled data share the same distribution. In real-world scenarios, however, data often originates from diverse sources, leading to significant "domain shift"—where differences in style, lighting, or sensor characteristics can impede the discovery process.

The Challenge of Domain-Shifted GCD (DS_GCD)

Traditional GCD models often struggle when faced with domain shift. For instance, a model trained on high-resolution photographs may fail to recognize the same categories when presented as artistic sketches or grainy surveillance footage. This is because standard models frequently conflate changes in visual "style" with changes in semantic "content."

To address this, the paper introduces Domain-Shifted GCD (DS_GCD). This setting more accurately reflects real-world conditions where unlabeled data contains both new categories and new visual domains.

The DS_GCD framework illustrates the challenge of discovering new categories across different visual domains.

Existing approaches like Unsupervised Domain Adaptation (UDA) are insufficient here as they assume a closed set of categories across domains. Conversely, standard GCD methods lack the robustness required to handle distribution shifts, often leading to "negative transfer" where style-transfer attempts distort the underlying structure of unknown categories.

The FREE Framework: A Frequency Domain Solution

The authors propose FREE (Frequency-guided Generalized Category Discovery), a framework designed to decouple style from content using frequency-domain analysis. By applying a Fast Fourier Transform (FFT), the model separates an image into its amplitude (capturing style and appearance) and phase (capturing semantic structure).

Key Methodological Innovations

  1. Frequency-Based Domain Separation (FDS): FREE utilizes a Gaussian Mixture Model (GMM) to analyze amplitude discrepancies, automatically categorizing unlabeled samples into "known" or "unknown" domains.
  2. Cross-Domain Frequency Perturbation (CDFP): To bridge the domain gap, the model performs class-aware swaps of low-frequency amplitude components. By ensuring swaps only occur between samples predicted to share the same category, FREE avoids semantic distortion.
  3. Intra-Domain Frequency Perturbation (IDFP): This module enhances style invariance within the new domain by generating multiple stylized versions of unlabeled images, forcing the model to recognize them as the same object.
  4. Clustering Difficulty-Aware Resampling (CDAS): FREE adaptively prioritizes "hard-to-cluster" categories—those with high internal variance or proximity to other categories in the feature space—to improve overall discovery accuracy.

Experimental Results

The FREE framework was evaluated on challenging benchmarks, including DomainNet (featuring six distinct domains like Real, Painting, and Sketch) and SSB-C (a corrupted version of fine-grained datasets like CUB).

Clustering accuracy of FREE compared to baselines on the DomainNet 'Real-to-Painting' task.

FREE consistently outperformed state-of-the-art methods such as SimGCD. For example, in the transition from "Real" photos to "Painting" styles on DomainNet, FREE achieved a clustering accuracy of 45.6%, surpassing the previous benchmark of 42.1%. On the SSB-C (CUB) dataset under heavy corruption, FREE maintained a robust accuracy of 55.7%, demonstrating its resilience to extreme domain shifts.

Conclusion

The FREE framework represents a significant advancement in making Generalized Category Discovery viable for real-world applications. By leveraging the inherent properties of the frequency domain, it successfully separates style from content, allowing for robust category discovery across diverse and unfamiliar domains. Future research may explore extending this frequency-domain logic to more complex tasks like object detection and semantic segmentation.

Summary updated

BibTeX
@inproceedings{feng2025generalized,
  author = {Wei Feng and Zongyuan Ge},
  title = {{Generalized Category Discovery under Domain Shift: A Frequency Domain Perspective}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=uUBQ96zs48},
}
Figure