NC-GCD: Neural Collapse in Category Discovery
- The paper introduces a framework that unifies supervised and unsupervised clustering by aligning features to fixed Simplex ETF prototypes, overcoming inconsistent optimization objectives and category confusion.
- NC-GCD applies Neural Collapse properties to enforce a shared geometric structure, resulting in improved novel-class accuracies compared to traditional prototype-based methods.
- Leveraging a Semantic Consistency Matcher (SCM) and periodic clustering, NC-GCD stabilizes pseudo-label assignments and maintains consistent optimization targets across training epochs.
Searching arXiv for the primary NC-GCD paper and the original GCD paper to ground the article in the cited literature.
arXiv search query: id:([2507.04725](/papers/2507.04725)) OR id:([2201.02609](/papers/2201.02609))
Neural Collapse-inspired Generalized Category Discovery (NC-GCD) is a framework for generalized category discovery that classifies known categories while simultaneously discovering novel categories from unlabeled data by imposing a Neural Collapse–motivated geometric structure on the embedding space. In the generalized category discovery setting, the unlabeled pool contains a mixture of known and novel categories, and the model is required to organize all of them jointly rather than merely reject unknowns or assume that all unlabeled instances are novel. NC-GCD addresses two difficulties emphasized in prior GCD work—inconsistent optimization objectives between supervised and unsupervised components, and category confusion caused by feature overlap—by pre-assigning and fixing Simplex Equiangular Tight Frame (ETF) prototypes, aligning both labeled and unlabeled data to the same prototype geometry, and stabilizing pseudo-label identities across clustering iterations with a Semantic Consistency Matcher (SCM) (Han et al., 7 Jul 2025, Vaze et al., 2022).
1. Problem setting within generalized category discovery
Generalized Category Discovery (GCD) is defined on a partially labeled dataset in which some categories are known and labeled, while the unlabeled data come from both known and novel categories. In NC-GCD notation, the dataset is
where
contains labeled known-category samples and
contains unlabeled samples from both known and novel categories. The full category set is
with denoting the novel categories. The goal is to classify samples from and to discover and organize samples from without predefined class structures (Han et al., 7 Jul 2025).
This setting extends the original GCD formulation, which introduced a labeled set with , an unlabeled set drawn from 0, and a validation set 1 on seen classes. Its goal was to assign every 2 to its correct class in 3, including both seen and unseen categories, without knowing which unlabeled samples are seen versus novel or the number of novel classes a priori (Vaze et al., 2022).
The importance of this formulation is that it removes assumptions made by adjacent paradigms. Semi-supervised learning assumes unlabeled data share the same label set as labeled data; open-set recognition focuses on known-versus-unknown detection rather than organizing unknowns among themselves; and novel category discovery usually assumes that unlabeled data contain only unknown classes and often that the number of unknown classes is known. GCD, and consequently NC-GCD, operates in the mixed seen/unseen regime and treats all unlabeled data as belonging to one global label space (Vaze et al., 2022).
A common misconception is to view GCD as a variant of unknown-class rejection. In fact, the task requires full categorization of the unlabeled set, including unknown instances among themselves, and NC-GCD preserves that requirement by jointly discovering and labeling all clusters rather than introducing an explicit known/novel reject threshold (Han et al., 7 Jul 2025).
2. Neural Collapse as the geometric principle
NC-GCD is organized around Neural Collapse (NC), a geometric phenomenon observed in well-trained classifiers. The framework explicitly highlights four NC properties: NC1 (Within-class collapse), where within-class variance vanishes and features of the same class collapse to their mean; NC2 (Simplex ETF geometry), where centered class means converge to a Simplex ETF; NC3 (Self-duality), where class means align with classifier weight directions; and NC4 (Nearest-center prediction), where prediction reduces to nearest class center (Han et al., 7 Jul 2025).
NC-GCD operationalizes these ideas by constructing a fixed set of 4 Simplex ETF prototypes 5, one for each class, known and novel. The construction is
6
where 7 has orthonormal columns. The resulting prototypes are unit norm and satisfy
8
This gives equal pairwise angles and a tight-frame structure (Han et al., 7 Jul 2025).
The role of the ETF is not merely descriptive. In NC-GCD, the prototypes are pre-assigned and fixed before training and are never updated. The stated rationale is twofold. First, the Simplex ETF is taken as the NC limit for balanced classification, maximizing inter-class margins with equal pairwise angles while collapsing within-class variance. Second, using the same fixed geometric targets for both supervised and unsupervised samples enforces a shared objective for known and novel categories, combats prototype drift, and reduces category confusion (Han et al., 7 Jul 2025).
This geometric choice distinguishes NC-GCD from earlier prototype-based GCD pipelines. The original GCD method also classified in feature space by nearest centroid, with labeled centroids formed as class means and novel centroids discovered by 9-means, but its centroids were data-dependent rather than pre-fixed ETF anchors (Vaze et al., 2022). A plausible implication is that NC-GCD can be read as a geometry-constrained reformulation of prototype-based GCD.
3. Architecture and consistent ETF alignment objective
NC-GCD uses a pre-trained visual encoder 0, reported as DINO ViT-B/16 in experiments, to produce embeddings 1 and augmented embeddings 2. A clustering module 3 periodically clusters all embeddings into 4 groups and computes cluster centers
5
If the ground-truth number of classes 6 is available, it is used directly; if 7 is unknown, it is estimated from clustering and the ETF is then constructed with this 8 (Han et al., 7 Jul 2025).
Pseudo-labels for unlabeled samples are assigned by cosine similarity to current cluster centers: 9 The confidence of a sample within its assigned cluster is
0
For each cluster 1, NC-GCD selects the top 2 of samples with highest 3 to form 4, and aligns them to the corresponding fixed ETF prototype 5 using the unsupervised ETF alignment loss
6
This is defined clusterwise over high-confidence unlabeled samples (Han et al., 7 Jul 2025).
For labeled data, SCM produces an ETF-aligned label
7
and supervised alignment pulls labeled features toward their mapped ETF prototypes: 8 The combined Consistent ETF Alignment Loss is
9
where 0 balances unsupervised and supervised contributions (Han et al., 7 Jul 2025).
NC-GCD does not discard contrastive representation learning. It adds an unsupervised representation term,
1
and a supervised representation term,
2
where 3 collects in-batch samples sharing the same label and 4 is the temperature. These combine as
5
The final objective is
6
with 7 controlling the relative weight of ETF alignment (Han et al., 7 Jul 2025).
The central design choice is therefore not simply to add an auxiliary NC regularizer, but to unify supervised and unsupervised learning around the same fixed prototype geometry.
4. Semantic Consistency Matcher and temporal stabilization
NC-GCD identifies two instability sources in GCD training: pseudo-label drift across clustering iterations, where the same semantic category may be assigned different cluster IDs over time, and supervised-label mismatch, where known labels and current cluster identities may not align with ETF prototype indices (Han et al., 7 Jul 2025).
SCM addresses the first issue by matching cluster IDs between consecutive clustering iterations. Across iterations 8, it finds the permutation
9
where 0 is the permutation group on 1 items. The current iteration’s label set is updated by applying this optimal permutation. A similar optimal assignment 2 is computed to align predicted clusters with the known ground-truth labels for supervised samples, yielding ETF-aligned labels for the supervised loss (Han et al., 7 Jul 2025).
In practice, these permutations can be solved by the Hungarian algorithm applied to cluster–cluster or cluster–label co-occurrence matrices. This is important because the ETF prototypes are fixed: if cluster identities were allowed to swap arbitrarily across epochs, the same semantic class could be alternately attracted to different ETF vectors, defeating the intended geometry. SCM preserves the semantic identity of clusters across time, prevents prototype swapping, and stabilizes the optimization target for both labeled and unlabeled data (Han et al., 7 Jul 2025).
Training proceeds with periodic clustering every 3 epochs, where 4 is a hyperparameter. After each clustering step, SCM relabels the current clustering consistently with the previous one and aligns known labels to ETF prototypes. At inference, embeddings are assigned to the nearest ETF prototype or cluster by cosine similarity. For GCD evaluation, a one-to-one matching between discovered clusters and ground-truth classes is typically computed by Hungarian assignment to report accuracies on All/Old/New splits. The framework does not require an explicit known/novel reject threshold; it discovers and labels all clusters jointly (Han et al., 7 Jul 2025).
5. Relation to the original GCD pipeline
The original GCD framework established the problem setting that NC-GCD inherits and also provided the prototype-based baseline that NC-GCD most directly generalizes. Its representation pipeline used a Vision Transformer ViT-B/16 pretrained with DINO on ImageNet, with features taken from the 5 token. Two random augmented views 6 were generated for each image, an MLP projection head 7 was used only for contrastive training, and clustering at test time operated on the backbone’s 8 embedding rather than on projected features (Vaze et al., 2022).
Original GCD combined an unsupervised InfoNCE-style contrastive loss on all images with a supervised contrastive loss on labeled images. After fine-tuning, it extracted 9 and applied semi-supervised 0-means with squared Euclidean distance. If 1 was known, it maintained 2 centroids 3, tied centroid indices for seen classes to the labeled classes, initialized those centroids as labeled class means,
4
and initialized the remaining 5 centroids by 6-means++ on 7. It then optimized
8
with labeled assignments fixed to ground-truth labels and unlabeled assignments updated by nearest centroid (Vaze et al., 2022).
This procedure required no explicit threshold to decide whether an unlabeled sample was seen or unseen: assignments to seen-class-tied centroids corresponded to seen classes, and assignments to the remaining centroids corresponded to novel classes. When 9 was unknown, the original GCD method estimated it by running 0-means on all features for candidate values of 1, evaluating clustering accuracy on the labeled subset only,
2
and choosing the maximizer via Brent’s algorithm over 3 (Vaze et al., 2022).
The empirical context matters because NC-GCD was introduced after this prototype-based formulation had already demonstrated that DINO-ViT features and non-parametric clustering were strong ingredients for GCD. Original GCD reported All/Old/New accuracies of 73.0/76.2/66.5 on CIFAR-100, 74.1/89.8/66.3 on ImageNet-100, 51.3/56.6/48.7 on CUB, 39.0/57.6/29.9 on Stanford Cars, and 35.4/51.0/27.0 on Herbarium19, substantially outperforming adapted NCD baselines and showing particular strength on fine-grained and long-tailed settings (Vaze et al., 2022).
A further point of evaluation protocol originates in the original GCD paper. Clustering accuracy is computed with a single global Hungarian assignment over all classes in 4, after which Old and New subset accuracies are computed post hoc. This is stricter than matching subsets separately and can create an apparent tradeoff between Old and New accuracies at reporting time (Vaze et al., 2022).
6. Empirical behavior, implementation profile, and limitations
NC-GCD was evaluated on generic classification datasets CIFAR-100 and ImageNet-100, and on fine-grained datasets CUB-200, Stanford Cars, FGVC Aircraft, and Herbarium19. Fine-grained datasets use the SSB split, while CIFAR-100 and ImageNet-100 use random splits following prior work. Evaluation reports All/Old/New accuracies (Han et al., 7 Jul 2025).
| Dataset | Ground-truth 5 given (All/Old/New) | Without ground-truth 6 (All/Old/New) |
|---|---|---|
| CUB-200 | 74.8 / 76.8 / 73.8 | 70.3 / 72.1 / 69.4 |
| Stanford Cars | 59.9 / 77.8 / 51.2 | 54.0 / 73.1 / 44.8 |
| FGVC Aircraft | 60.0 / 57.6 / 61.2 | 55.4 / 57.3 / 54.5 |
| Herbarium19 | 46.4 / 58.4 / 40.7 | 42.3 / 56.2 / 34.8 |
| CIFAR-100 | 82.7 / 85.5 / 77.3 | 80.5 / 83.7 / 74.0 |
| ImageNet-100 | 88.4 / 94.1 / 85.5 | 85.7 / 95.9 / 80.6 |
Averaged over all datasets, NC-GCD reports 68.7/75.0/64.9 with ground-truth 7 given and 64.7/73.0/59.7 without ground-truth 8. The reported improvements over strong state of the art are +3.0 All and +4.2 New on average in the known-9 regime, and +3.1 All and +4.4 New on average when 0 is not given (Han et al., 7 Jul 2025).
The ablations isolate three mechanisms. First, unsupervised ETF alignment alone yields substantial gains in novel-class accuracy by reducing overlap and sharpening novel clusters. Second, supervised ETF alignment stabilizes known classes and prevents forgetting. Third, the combination of both gives the strongest overall performance, with average improvements over the baseline of +5.3 All and +7.4 New. SCM also contributes materially: on CUB-200, All accuracy is 75.7 with SCM versus 70.3 without, and Novel accuracy is 77.8 versus 70.0; on Herbarium19, All is 47.2 versus 42.6 and Novel is 40.3 versus 36.3; on ImageNet-100, All is 87.6 versus 84.3 and Novel is 84.1 versus 82.0 (Han et al., 7 Jul 2025).
The implementation profile reported for NC-GCD uses DINO ViT-B/16 with a projection head MLP of input 768, hidden 2048, and output 768, with GeLU activation. Optimization uses learning rate 0.1, batch size 128, and weight decay 1. The contrastive temperature is approximately 2, the number of augmentations is 2, and 3 is reported as a good balance between old and novel class accuracy. The loss weights 4, 5, and 6 are tuned, and 7 is described as crucial for making ETF geometry influential. The clustering period 8 is also a tunable hyperparameter (Han et al., 7 Jul 2025).
The main limitations are explicit. NC-GCD depends on knowledge or estimation of 9; if 0 is estimated inaccurately, ETF construction is affected. Periodic clustering and Hungarian matching add computational overhead, especially for large 1. Very large numbers of classes increase the cost of matching and clustering, and scalable approximations may be needed. The method is reported to excel in fine-grained settings, but those same regimes can make matching and clustering more expensive. Future directions mentioned for the framework include extending ETF- and SCM-based ideas to incremental GCD or streaming settings (Han et al., 7 Jul 2025).
Taken together, NC-GCD represents a geometry-driven stage in the development of GCD. The original GCD framework showed that strong ViT representations and non-parametric clustering could organize mixed seen/unseen unlabeled data effectively (Vaze et al., 2022). NC-GCD recasts that discovery problem through fixed ETF prototypes, consistent supervised–unsupervised alignment, and temporal label matching, thereby making Neural Collapse an explicit training prior rather than a post hoc geometric observation (Han et al., 7 Jul 2025).