Semi-supervised few-shot learning (SSFSL) resembles realworld “auto-annotation” application, which aims to learn a model over a few labeled and abundant unlabeled task-specific examples to automatically annotate the unlabeled ones. Existing SSL methods have mostly focused on finetuning ImageNet-pretrained backbones or prompts a frozen VLM, which underperforms recent few-shot learning methods that finetune the VLM and retrieve task-relevant open data. To bridge the gap, we explore these techniques for SSFSL.
Over five challenging fine-grained SSL datasets, our experiments show that:
We run OpenCLIP ViT-B/32 on the unlabeled images of the semi-Aves dataset by zero-shot prompting its 200 class names.
We apply temperatures for (1) sharpening the softmax probability distributions and (2) strengthening supervision signals. We illustrate our temperatures with FixMatch as an example. Specifically, we introduce two temperatures: (a) loss temperature T_loss to sharpen the softmax probabilities when computing the cross-entropy loss, and (b) confidence temperature T_conf to scale the softmax probabilities when determining whether the confidence exceeds the threshold for utilizing unlabeled data. By applying these two temperatures, we can effectively mitigate the issues caused by flat softmax probabilities from VLMs, leading to improved finetuning performance.
To mitigate the domain gap in retrieved data, we propose a stage-wise finetuning approach. Specifically, we initialize the classification head by linear probing with few-shot examples, providing a better starting point for semi-supervised finetuning. We also apply few-shot finetuning at the third stage to calibrate the model to the target domain.
We illustrate the impact of loss temperature T_loss through few-shot finetuning the visual encoder of OpenCLIP ViT-B/32. Training loss (left) and test accuracy (right) over epochs show that finetuning without temperature (i.e., T_loss=1.0) yields slow convergence (slow reduction in training loss and increase in test accuracy), due to the weak supervision. In contrast, applying a loss temperature, either by fixing T_loss to a moderately small value (e.g., 0.1 or 0.07, solid lines) or by learning it dynamically (dashed lines), greatly accelerates convergence and improves test accuracy, demonstrating the strengthening of training supervisions.
We illustrate the impact of confidence temperature T_conf through finetuning OpenCLIP ViT-B/32 with FixMatch on semi-Aves. The left figure shows that without temperature (i.e., T_conf=1.0), the utilization of unlabeled data is zero with a default confidence threshold of 0.8, resulting no accuracy gains over the few-shot finetuning. However, reducing the confidence temperature, e.g., fixing T_conf to a moderately small value (0.1 or 0.07) significantly increases the utilization of unlabeled data, yielding notable accuracy gains (right).
If you find our work useful, please consider citing our papers:
@article{liu2026solving,
title={Solving Semi-Supervised Few-Shot Learning from an Auto-Annotation Perspective},
author={Liu, Tian and Basu, Anwesha and Caverlee, James and Kong, Shu},
journal={European Conference on Computer Vision (ECCV)},
year={2026}
}
@inproceedings{liu2025few,
title={Few-Shot Recognition via Stage-Wise Retrieval-Augmented Finetuning},
author={Liu, Tian and Zhang, Huixin and Parashar, Shubham and Kong, Shu},
booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
year={2025}
}