Semantic-Anchored, Class Variance-Optimized Clustering for Robust Semi-Supervised Few-Shot Learning

Souvik Maji, Rhythm Baghel, Pratik MazumderarXiv 2025 · DOI

Abstract

Few-shot learning has been extensively explored to address problems where the amount of labeled samples is very limited for some classes. In the semi-supervised few-shot learning setting, substantial quantities of unlabeled samples are available. Such unlabeled samples are generally cheaper to obtain and can be used to improve the few-shot learning performance of the model. Some of the recent methods for this setting rely on clustering to generate pseudo-labels for the unlabeled samples. Since the effectiveness of clustering heavily influences the labeling of the unlabeled samples, it can significantly affect the few-shot learning performance. In this paper, we focus on improving the representation learned by the model in order to improve the clustering and, consequently, the model performance. We propose an approach for semi-supervised few-shot learning that performs a class-variance optimized clustering coupled with a cluster separation tuner in order to improve the effectiveness of clustering the labeled and unlabeled samples in this setting. It also optimizes the clustering-based pseudo-labeling process using a restricted pseudo-labeling approach and performs semantic information injection in order to improve the semi-supervised few-shot learning performance of the model. We experimentally demonstrate that our proposed approach significantly outperforms recent state-of-the-art methods on the benchmark datasets. To further establish its robustness, we conduct extensive experiments under challenging conditions, showing that the model generalizes well to domain shifts and achieves new state-of-the-art performance in open-set settings with distractor classes, highlighting its effectiveness for real-world applications.

Introduction

In few-shot learning (FSL), models must learn to classify new categories using only a handful of labeled examples. Semi-supervised few-shot learning (SSFSL) attempts to alleviate this scarcity by leveraging a large pool of unlabeled data. A common strategy in SSFSL is to cluster the data and assign "pseudo-labels" to unlabeled images, effectively expanding the training set. However, if the model's initial feature representations are weak, clustering becomes noisy, leading to incorrect pseudo-labels that degrade performance. This paper addresses these challenges by improving geometric relationships in the feature space and leveraging external semantic knowledge to guide the clustering process.

Methodology

The proposed framework introduces a multi-pronged approach to refine feature representations and improve the reliability of pseudo-labeling.

The overall architecture of the proposed framework, integrating semantic injection, CVOC, and restricted pseudo-labeling.

Class-Variance Optimized Clustering (CVOC) and Cluster Separation Tuner (CST)

Instead of standard K-means, the authors utilize a reconstruction-based clustering method. CVOC incorporates regularizers that explicitly pull samples of the same class closer together (intra-class compactness) while pushing different class prototypes further apart (inter-class separation). To further refine these boundaries, a Cluster Separation Tuner (CST) is applied during fine-tuning. This lightweight algorithm acts as a "margin polisher," evaluating the proximity of class prototypes and explicitly nudging them apart to maximize decision boundaries.

Detailed view of the CVOC and CST processes for improving cluster compactness and separation.

Semantic Injection and Agentic Class Descriptions

Visual features can often be ambiguous due to background noise or occlusion. To stabilize learning, the model "anchors" visual prototypes to text embeddings derived from class descriptions. High-quality, visually-focused descriptions are generated using an LLM-based agentic chain (Writer -> Filter -> Visualizer -> Finalizer). This pipeline strips non-visual information (like habitat or diet) from WordNet definitions, leaving rich descriptions of size, shape, and color that serve as a stable semantic prior.

Restricted Pseudo-Labeling

To prevent noisy data from corrupting the model, especially in the presence of distractor classes, the framework employs restricted pseudo-labeling. By calculating prediction entropy, the model only assigns labels to the most confident unlabeled samples, filtering out high-uncertainty noise.

Experimental Results

The method was evaluated on standard benchmarks and challenging real-world scenarios:

  • Benchmark Performance: On the miniImageNet 5-way 1-shot task, the method achieved 84.51% accuracy, outperforming the previous state-of-the-art by a 6.7% margin.
  • Pseudo-labeling Accuracy: The CVOC approach reached 83.98% pseudo-labeling accuracy, significantly higher than the 77.26% achieved by prior multi-factor clustering methods.
  • Robustness to Distractors: In open-set settings where unlabeled data contains unknown classes, the model maintained a strong 74.92% accuracy.
  • Cross-Domain Generalization: The framework generalized remarkably well to radically different domains, such as satellite imagery (EuroSAT, 75.66%) and medical imaging (ISIC, 36.25%), despite being trained only on miniImageNet.

Conclusion

By combining geometric optimization through CVOC and CST with semantic anchoring via LLM-refined descriptions, this approach significantly enhances the robustness of semi-supervised few-shot learning. While the method relies on the assumption of a shared manifold between labeled and unlabeled data, its ability to filter noise and leverage linguistic priors sets a new standard for the field.

Summary updated

BibTeX
@misc{maji2025semantic,
  author = {Souvik Maji and Rhythm Baghel and Pratik Mazumder},
  title = {{Semantic-Anchored, Class Variance-Optimized Clustering for Robust Semi-Supervised Few-Shot Learning}},
  year = {2025},
  eprint = {2501.14401},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.14401},
  howpublished = {arXiv},
}
Figure