Abstract
Few-shot learning (FSL) typically relies on extensive labeled datasets for meta-learning. This paper introduces UFLST (Unsupervised Few-shot Learning via Self-supervised Training), a framework that circumvents the need for human-annotated labels. By iteratively alternating between progressive clustering to generate pseudo-labels and episodic training, UFLST enables models to learn discriminative features from unlabeled data. Experimental results on benchmarks like Omniglot and Mini-ImageNet demonstrate that UFLST significantly narrows the performance gap between unsupervised and supervised few-shot learners.
Introduction
The primary challenge in few-shot learning is the "data-hungry" nature of the pre-training phase. While humans can categorize new objects with minimal supervision by leveraging prior unsupervised observations, machine learning models usually require massive labeled datasets to learn generalizable feature extractors. UFLST addresses this by asking whether a robust few-shot learner can be built using only unlabeled data. The proposed method mimics a "coarse-to-fine" learning strategy, refining its internal representations through a self-reinforcing cycle of clustering and meta-learning.
Methodology: The UFLST Framework
The UFLST framework operates through a cyclic, two-stage process that progressively improves both the feature extractor and the quality of the generated tasks.
1. Progressive Clustering
In the clustering stage, the model extracts features from the unlabeled dataset. To handle noise and high-dimensional complexity, it employs k-reciprocal Jaccard distance (KRJD). Unlike standard Euclidean metrics, KRJD identifies mutual neighbors, ensuring that two points are only considered similar if they appear in each other's top-k nearest neighbor lists. Subsequently, DBSCAN is used to group these features into clusters, which serve as "pseudo-classes." Outliers are discarded to maintain the purity of the training signal.
2. Episodic Training
The generated clusters are treated as ground truth for a meta-learning phase. The model samples "support" and "query" sets from these pseudo-classes to construct episodic tasks. Training is conducted using specialized loss functions:
- Prototype Loss: Minimizes the distance between query points and their corresponding cluster means (prototypes).
- Hardtriplet Loss: A more robust alternative that focuses on the most difficult examples—pushing different classes apart while pulling the same class together.
This cycle is self-improving: better features lead to cleaner clusters, which in turn provide more accurate supervision for the next round of episodic training.
Experimental Evaluation
The model was evaluated on three distinct benchmarks to test its versatility: Omniglot (handwritten characters), Mini-ImageNet (natural images), and Market1501 (person re-identification).
Key Results and Insights
UFLST demonstrated remarkable performance, particularly on structured data. On the Omniglot dataset, the model achieved 97.03% accuracy (5-way 1-shot), nearly matching the ~98.8% accuracy of fully supervised state-of-the-art models. On the more complex Mini-ImageNet, UFLST reached 45.03% (5-shot) accuracy, representing an 8.6% improvement over training from scratch.
A critical finding was the superiority of Hardtriplet Loss over standard Prototype Loss. By mining difficult negative examples, the model became more resilient to the inherent noise in unsupervised pseudo-labels. Furthermore, as shown in the training curves, the model's accuracy steadily improves as the clustering and training blocks reinforce each other over successive rounds.
Conclusion
UFLST provides a viable path for few-shot learning in label-scarce environments. By successfully "discovering" features through iterative self-supervision, it bridges the gap between unsupervised and supervised learning. While challenges remain in handling the high variance of natural images and tuning clustering hyperparameters, the framework's success on person re-identification tasks suggests significant potential for real-world deployment where manual labeling is impractical.
Summary updated