Manuscript Offprint

arXiv:2608.25692

CloSeR: Unified Relational Distillation from Closed-Set Teachers for Category Discovery

Yuanpei Liu, Zhenqi He, Jialu Tang, Kai Han

Yuanpei Liu ID^{ID}, Zhenqi He ID^{ID}, Jialu Tang ID^{ID}, and Kai Han †^{\dagger} ID^{ID}

Visual AI Lab, The University of Hong Kong, Hong Kong SAR

ypliu0@connect.hku.hk, kaihanx@hku.hk

Abstract. Generalized Category Discovery (GCD) is an intriguing open-world problem that has garnered increasing attention: given partially labelled data, the goal is to correctly recognize known classes while discovering coherent novel categories from unlabelled samples. Recent GCD methods typically adapt foundation models by jointly optimizing supervised classification and unsupervised discovery objectives on mixed labelled-unlabelled data. While effective, this coupled training can entangle closed-set recognition and open-set discovery, leading to objective conflict and biased predictions, and may disturb the semantic geometry of pretrained representations under limited labels and noisy pseudolabels. We propose CloSeR, a simple plug-and-play framework that injects Closed-Set Relational knowledge into GCD training. CloSeR first builds a domain-adapted closed-set teacher by tuning lightweight blockwise adapters on labelled known-class data while keeping the foundation model backbone frozen, thereby preserving pretrained priors at low training cost. It then transfers the teacher's knowledge to downstream GCD via Unified Relational Distillation (URD), which distills complementary global sample-to-prototype relations to anchor known-class semantics and local sample-to-sample relations to preserve neighborhood structure, using separate feature pathways to reduce optimization interference. CloSeR is head-agnostic and readily integrates with both parametric and non-parametric GCD methods. Extensive experiments with DINO and DINOv2 backbones on six benchmarks (CIFAR-10/100, ImageNet-100, CUB, Stanford-Cars, and FGVC-Aircraft) show consistent gains over GCD baselines, achieving state-of-the-art performance. Project page: https://visual-ai.github.io/closer/

Keywords: Generalized Category Discovery · Self-Supervised Learning · Transfer Learning · Knowledge Distillation

1 Introduction

Once framed as Novel Category Discovery (NCD) [19] and later broadened to Generalized Category Discovery (GCD) [55], category discovery [22] has become a focal open-world challenge. In GCD, we are given a partially-labelled dataset:

†^{\dagger} Corresponding author.

Y. Liu et al.

Figure

Fig. 1: The Old-class vs. New-class ACC on CUB [58], Stanford-Cars [28], and FGVC-Aircraft [35] using DINOv2 [38] backbone. We compare two representative GCD baselines (the non-parametric GCD [55] and the parametric SimGCD [63]) with two simple alternatives that first adapt the backbone on labelled known classes (closed-set features) and then perform GCD via either k-means clustering or learning a parametric classifier. Note: “GCD” here denotes the method proposed in [55], not the task name.

the unlabelled split contains samples from both known and unknown categories. The goal is to transfer knowledge from the labelled subset so that samples from known classes are correctly recognized while samples from unknown classes are grouped into their underlying novel categories.

Existing GCD methods can be broadly categorized by how they produce category predictions. Non-parametric approaches [20, 44, 45, 55] discover categories by clustering features, whereas parametric methods [22, 32, 59, 63] learn an explicit classifier (often prototype-based) to assign category indices. With the rise of foundation models [4, 38, 43], recent works from both families typically adapt a pretrained backbone (via full fine-tuning or parameter-efficient tuning) and optimize supervised and unsupervised objectives jointly on the mixed labelled-unlabelled data. While effective, this one-stage training entangles known-class classification and novel-class discovery, which may introduce optimization conflict and prediction bias [16, 32]. At the same time, prior studies [33, 55, 59] emphasize that GCD is essentially a transfer clustering problem, where learning strong categorical priors from known classes is crucial. Moreover, modern foundation models are pretrained on large-scale data and exhibit strong transferability and semantic structure [4, 38]. In principle, such pretrained priors should be highly beneficial for transfer clustering in GCD; however, naïvely adapting these models with mixed supervised-unsupervised objectives can distort the pretrained geometry, especially under limited labelled data and noisy pseudo-labels. This suggests that how we adapt foundation models may be as important as whether we adapt them. Taken together, these considerations raise a natural question: Can we explicitly learn to recognize known classes first, and then leverage this closed-set knowledge to guide category discovery?

To answer this, we conduct a simple pilot study. We fully fine-tune a foundation model (e.g., DINOv2 [38]) on labelled known classes using a standard cross-entropy objective with a small learning rate to preserve the pretrained prior and mitigate overfitting, and then evaluate the resulting representations using either vanilla k-means clustering or a lightweight parametric classifier trained on top of the frozen backbone following the standard objective [63]. As shown in Fig. 1, both non-parametric and parametric solutions improve markedly compared to their standard GCD counterparts. This suggests that explicitly consolidating categorical priors from known classes can significantly enhance the representation quality for category discovery. However, this naïve two-step strategy is limited in practice: (i) fully fine-tuning foundation models is expensive, especially for larger variants (e.g., ViT-L), which limits the scaling up of GCD models, and (ii) simply freezing the adapted backbone and training a separate GCD head is inflexible and does not readily extend to diverse GCD pipelines, particularly non-parametric methods that rely on end-to-end feature learning.

We therefore propose CloSeR, a simple yet effective framework that injects Closed-Set Relational knowledge into GCD training in a plug-and-play manner. CloSeR consists of two stages. First, we perform Closed-Set Transfer Learning (CST) by inserting lightweight block-wise adapters [8] into a frozen foundation model and learning closed-set prototypes using labelled data only. By updating only a small set of adapter parameters, CST provides an efficient way to adapt shallow-to-deep features, yielding a domain-adapted closed-set teacher that preserves the strong pretrained prior while bridging the target-domain gap at low training cost. Second, during GCD training, we introduce Unified Relational Distillation (URD), which transfers (i) global sample-to-prototype relations to anchor semantics to known-class prototypes and (ii) local sample-to-sample relations to preserve neighborhood geometry. To reduce optimization interference, URD decouples the feature pathways used for global and local relations. Importantly, CloSeR can regularize both parametric and non-parametric GCD methods: it provides relational supervision to stabilize representation learning, regardless of whether category indices are produced by a classifier head or by clustering.

We evaluate CloSeR with different pretrained backbones (DINO and DI-NOv2) on six benchmarks, including CIFAR-10 [29], CIFAR-100 [29], ImageNet-100 [11], CUB [58], Stanford-Cars [28], and FGVC-Aircraft [35]. Across GCD baselines spanning both parametric and non-parametric methods, CloSeR yields consistent improvements. In summary, we make the following contributions: (i) We identify a key limitation of the de facto GCD training pipeline and show that adapting foundation models to known classes before discovery is crucial for robust category discovery. (ii) We propose CloSeR, a staged framework that builds a domain-adapted closed-set teacher via efficient block-wise adapter tuning and transfers its knowledge to downstream GCD training. (iii) Within CloSeR, we introduce Unified Relational Distillation (URD), a head-agnostic relational regularizer that distills complementary global and local relations through separate feature pathways. (iv) We validate CloSeR through extensive experiments across multiple datasets, backbones, and heterogeneous GCD baselines, showing consistent gains and strong generalization.

Y. Liu et al.

References (75)

  • Masked siamese networks for label-efficient learning
  • Open-world semi-supervised learning
  • Allgcd: Leveraging all unlabeled data for generalized category discovery
  • Emerging properties in self-supervised vision transformers
  • Partco: Part-level correspondence priors enhance category discovery
  • Promptccd: Learning gaussian mixture prompt pool for continual category discovery
  • Learning efficient object detection models with knowledge distillation
  • Adaptformer: Adapting vision transformers for scalable visual recognition
  • Uadet: A remarkably simple yet effective uncertainty-aware open-set object detection framework (opens arXiv in a new tab)
  • Adaptive part learning for fine-grained generalized category discovery: A plug-and-play enhancement
  • Imagenet: A large-scale hierarchical image database
  • Deep fuzzy multi-view learning for reliable classification
  • A unified objective for novel class discovery
  • Knowledge distillation: A survey
  • Bootstrap your own latent: a new approach to self-supervised learning
  • Towards debiased generalized category discovery
  • Automatically discovering and learning new visual categories with ranking statistics
  • Autonovel: Automatically discovering and learning novel visual categories
  • Learning to discover novel visual categories via deep transfer clustering
  • Cipr: An efficient framework with cross-instance positive relations for generalized category discovery
  • Knowledge adaptation for efficient semantic segmentation
  • Category discovery: An open-world perspective (opens arXiv in a new tab)
  • Seal: Semantic-aware hierarchical learning for generalized category discovery
  • Distilling the knowledge in a neural network
  • Visual prompt tuning
  • Joint representation learning and novel category discovery on single-and multi-modal data
  • Novel class discovery without forgetting
  • 3d object representations for fine-grained categorization
  • Learning multiple layers of features from tiny images
  • Flipped classroom: Aligning teacher attention with student in generalized category discovery
  • Structured knowledge distillation for semantic segmentation
  • Debgcd: Debiased learning with distribution guidance for generalized category discovery
  • Hyperbolic category discovery
  • Multiple people tracking with articulation detection and stitching strategy
  • Fine-grained visual classification of aircraft (opens arXiv in a new tab)
  • Self-distillation amplifies regularization in hilbert space
  • When does label smoothing help? In: NeurIPS
  • DINOv2: Learning Robust Visual Features without Supervision
  • Relational knowledge distillation
  • Correlation congruence for knowledge distillation
  • Mos: Modeling object-scene associations in generalized category discovery
  • Dynamic conceptual contrastive learning for generalized category discovery
  • Learning transferable visual models from natural language supervision
  • Learn to categorize or categorize to learn? self-coding for generalized category discovery
  • Selex: Self-expertise in fine-grained generalized category discovery
  • Fitnets: Hints for thin deep nets
  • Distilled siamese networks for visual tracking
  • Bures-isotropy alignment: Manifold learning of generalized category discovery
  • Dissecting generalized category discovery: Multiplex consensus under self-deconstruction
  • Ocrt: Boosting foundation models in the open world with object-concept-relation triad
  • Coge-GCD: Reframing generalized category discovery with compositional generalization
  • Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results
  • Contrastive representation distillation
  • Similarity-preserving knowledge distillation
  • Generalized category discovery
  • The semantic shift benchmark
  • No representation rules them all in category discovery
  • The caltech-ucsd birds-200-2011 dataset
  • Sptnet: An efficient alternative framework for generalized category discovery with spatial prompt tuning
  • Hilo: A learning framework for generalized category discovery robust to domain shifts
  • Distilling object detectors with fine-grained feature imitation
  • Gorag: Graph-based online retrieval augmented generation for dynamic few-shot social media text classification
  • Parametric classification for generalized category discovery: A baseline study
  • An efficient person clustering algorithm for open checkout-free groceries
  • A hidden stumbling block in generalized category discovery: Distracted attention
  • R3det: Refined single-stage detector with feature refinement for rotating object
  • Regularizing class-wise predictions via self-knowledge distillation
  • Paying more attention to attention: Improving the performance of convolutional neural networks via attention transfer
  • Elip: Enhanced visual-language foundation models for image retrieval
  • Promptcal: Contrastive affinity learning via auxiliary prompts for generalized novel category discovery
  • Less attention is more: Prompt transformer for generalized category discovery
  • Novel visual category discovery with dual ranking statistics and mutual knowledge distillation
  • Learning semi-supervised gaussian mixture models for generalized category discovery
  • Neighborhood contrastive learning for novel class discovery
  • Image bert pre-training with online tokenizer