TL;DR
Generalized Category Discovery (GCD) models often suffer from overfitting or high architectural complexity when adapting pre-trained Vision Transformers (ViTs). This paper introduces LAGCD, a remarkably simple approach that replaces complex non-linear adapters with a basic linear adapter across all ViT blocks. By eliminating ReLU-induced feature sparsity and adding a distribution alignment loss, LAGCD achieves state-of-the-art accuracy while using a fraction of the tunable parameters of existing methods.
What Problem Does This Paper Address?
Standard semi-supervised learning operates under a closed-world assumption: it assumes that all categories present in the unlabeled data are already known from the labeled training set. In real-world scenarios, however, unlabeled data frequently contains entirely new, unseen categories.
Generalized Category Discovery (GCD) tackles this challenge. The goal is to classify known ("seen") categories and cluster "novel" categories within an unlabeled dataset, all while maintaining high classification performance on the seen classes.
To do this efficiently, current methods leverage powerful foundation models like DINO-pre-trained Vision Transformers (ViTs). However, adapting these massive models to downstream tasks is tricky. Fine-tuning only the last block is often too rigid, while visual prompt tuning can cause training instability and overfitting. Recent parameter-efficient methods introduce complex "multi-expert" adapter architectures to handle seen and novel classes separately, but these come with heavy computational overhead.
The authors of this paper look at a fundamental, overlooked component of these adapters: the non-linear activation function (typically ReLU). They ask a surprising question: Is non-linearity actually helping or hurting downstream adaptation in GCD?
Methods
The authors propose LAGCD (Linear Adapter for Generalized Category Discovery), which consists of two main components:
- The Linear Adapter: Standard bottleneck adapters project features down to a lower dimension, apply a non-linear activation function like ReLU, and project them back up. The authors systematically demonstrate that the sparsity introduced by ReLU (zeroing out negative values) actually discards crucial semantic information. By simply removing the ReLU activation function, they transform the module into a purely linear adapter that yields dense feature representations.
- Auxiliary Distribution Alignment (DA): Because labeled data provides strong supervision, GCD models naturally converge much faster on seen categories than on novel ones. This asymmetry creates a severe prediction bias toward known classes. To counteract this, LAGCD introduces a distribution alignment loss during training. It estimates the model's overall prediction distribution across the dataset and gently shifts the unsupervised classification probabilities to match a balanced prior, preventing the model from ignoring novel classes.
Datasets
The authors evaluated LAGCD across seven widely recognized benchmarks:
- Generic Datasets: CIFAR-10, CIFAR-100, and ImageNet-100.
- Fine-Grained Datasets: CUB200 (birds), Stanford Cars, FGVC-Aircraft, and Herbarium-19 (a highly challenging, large-scale, imbalanced plant dataset).
Key Insights and Ideas
- Sparsity Hurts PEFT: While non-linear activations are the bedrock of deep learning when training from scratch, the rules change for Parameter-Efficient Fine-Tuning (PEFT). In downstream adaptation, forcing feature sparsity via ReLU suppresses informative signals, constraining the model's capacity to adapt.
- Simplicity Wins: A purely linear transformation parallel to the ViT's MLP blocks provides a more stable trade-off between model adaptability and stability. It allows the network to preserve dense feature representations that are vital for clustering novel, unseen objects.
- The Sampling Bias Trap: Most GCD frameworks use a balanced sampler to mix labeled and unlabeled data in each batch. This inevitably oversamples labeled data, accelerating a bias where novel categories are either misclassified as seen categories or clustered with excessively high variance. Distribution alignment effectively smooths out these discrepancies.
Key Results
LAGCD achieves a superior balance between accuracy and parameter efficiency compared to existing state-of-the-art methods:
- Parameter Efficiency: LAGCD requires only 1.2M to 1.8M tunable parameters (depending on the bottleneck dimension). In comparison, standard partial fine-tuning requires 7.1M parameters, and the previous best adapter method, AdaptGCD, requires 4.8M to 6.4M parameters.
- Fine-Grained Superiority: On fine-grained benchmarks, LAGCD achieves an average accuracy of 62.4%, significantly outperforming the baseline SimGCD (54.8%) and the multi-expert AdaptGCD (60.7%).
- Generic SOTA: On generic datasets, LAGCD pushes performance to new heights, notably improving CIFAR-100 accuracy to 86.3% (a 2.3% absolute gain over AdaptGCD).
Limitations and Future Work
While removing the ReLU activation function delivers impressive gains for Generalized Category Discovery, the authors note a key limitation: the general applicability of a purely linear adapter design across other diverse computer vision tasks (like object detection or segmentation) or natural language processing tasks has yet to be thoroughly investigated. Future work will explore whether "sparsity hurts" holds true across the broader PEFT landscape.
Summary updated