HiLo: A Learning Framework for Generalized Category Discovery Robust to Domain Shifts

Hongjun Wang, Sagar Vaze, Kai Han

TL;DR

Generalized Category Discovery (GCD) models often fail when unlabelled data comes from a different "domain" (like a sketch vs. a photo) than the labelled data. HiLo solves this by explicitly disentangling high-level semantic features from low-level domain features using mutual information minimization and a specialized curriculum learning strategy, setting a new state-of-the-art for robust category discovery.

What Problem Does This Paper Address?

Imagine you have a dataset of labelled bird photos and a massive pile of unlabelled images. Your goal is Generalized Category Discovery (GCD): you need to categorize the unlabelled images, identifying both the bird species you've seen before and discovering entirely new ones.

Problem Setting: Generalized Category Discovery with Domain Shifts

Standard GCD methods assume all your images share the same "domain"—for example, they are all clear, high-resolution photos. In the real world, this is rarely true. Unlabelled data might come from different cameras, be taken in foggy weather, or even consist of artistic sketches. Existing models often get "distracted" by these low-level domain shifts (covariate shifts), mistakenly grouping images by their style rather than their actual content. The authors introduce a more realistic task: GCD with domain shifts, where the model must remain robust to style changes while remaining sensitive to semantic novelty.

The HiLo Framework

The authors propose the HiLo framework, which rests on three primary innovations designed to untangle the "what" (semantics) from the "how" (domain):

The HiLo Framework Pipeline
  1. Feature Disentanglement (High & Low): Using a Vision Transformer (ViT) backbone, the model extracts features from the very first layer (Low-level/Domain) and the very last layer (High-level/Semantic). It then uses a Mutual Information (MI) minimization loss (specifically a Jensen-Shannon estimator) to ensure these two representations are independent. The goal is to prevent "style" information from leaking into "content" decisions.
  2. PatchMix Contrastive Learning: The authors adapt "PatchMix"—a technique that blends image patches in the embedding space—for the GCD setting. Unlike previous versions, HiLo's PatchMix uses a confidence factor to account for the fact that unlabelled samples might belong to entirely new categories, preventing the model from being forced into incorrect supervised labels.
  3. Curriculum Sampling: Learning everything at once is hard. HiLo uses a curriculum that starts by focusing on unlabelled samples from the seen domain to establish a semantic baseline. As training progresses, it gradually increases the probability of sampling from unseen domains, allowing the model to slowly adapt to more difficult covariate shifts.

Datasets and Key Results

The authors evaluated HiLo on two major fronts:

  • DomainNet: A massive real-world benchmark featuring six distinct domains (Real, Painting, Sketch, Quickdraw, Clipart, and Infograph) across 345 categories.
  • SSB-C (Semantic Shift Benchmark - Corrupted): A new benchmark created by the authors. They took fine-grained datasets (CUB birds, Stanford Cars, FGVC-Aircraft) and applied 9 types of synthetic corruptions (e.g., Gaussian noise, fog, snow, frost) at 5 severity levels. This resulted in a dataset 45x larger than the original SSB.

HiLo significantly outperformed existing state-of-the-art (SoTA) models like SimGCD:

  • DomainNet: On the "Real + Painting" split, HiLo achieved 64.4% accuracy on all classes, compared to SimGCD's 61.3%. In more difficult domains like "Infograph," the gap remained significant.
  • SSB-C: On corrupted datasets, HiLo provided massive relative gains—between 20% and 80%—over SimGCD. For example, on CUB-C (corrupted birds), HiLo reached 52.0% accuracy while SimGCD struggled at 28.8%.

Key Insights

  • Independence is Power: The core "aha moment" is that clustering based on domain (style) and semantics (content) should be independent. By forcing the model to minimize mutual information between these two, it learns to ignore the "noise" of a sketch or a foggy lens when deciding if an object is a dog or a cat.
  • Layer-wise Specialization: The paper validates that in Transformers, early layers naturally capture texture and style, while deeper layers capture abstract concepts. HiLo leverages this architectural bias rather than fighting it.
  • The "Easy-to-Hard" Path: The curriculum sampling proves that establishing a strong semantic "anchor" in a known domain makes the subsequent discovery of categories in unknown domains much more stable.

Limitations and Future Work

The authors acknowledge several areas for improvement. While the model performs well, the exact decision-making principles of the disentangled heads remain somewhat opaque. Furthermore, while HiLo is best-in-class, there is still a significant performance gap between "clean" data and "corrupted" data, suggesting room for even more robust adaptation techniques. Finally, the current framework does not explicitly address class or domain imbalance, which is common in web-scale, real-world data. Future work could integrate long-tailed learning strategies into the HiLo framework.

Summary updated

BibTeX
@inproceedings{wang2025hilo,
  author = {Hongjun Wang and Sagar Vaze and Kai Han},
  title = {{HiLo: A Learning Framework for Generalized Category Discovery Robust to Domain Shifts}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=2eFq6S35iB},
}
Figure