Abstract
Few-shot learning (FSL) aims to recognize new objects from very few examples, but standard metric-learning approaches often suffer from overconfidence due to inherent data noise. This paper introduces the Uncertainty-Aware Few-Shot (UAFS) framework, which models the similarity between query images and class prototypes as probabilistic distributions rather than deterministic scalars. By employing a Graph Convolutional Network (GCN) to estimate aleatoric uncertainty across the global scope of prototypes, UAFS achieves state-of-the-art performance on major benchmarks like mini-ImageNet and CIFAR-FS, demonstrating significant robustness in low-data regimes.
Introduction
Deep learning models typically require vast amounts of labeled data, a requirement that contrasts sharply with human ability to learn from single examples. Few-shot learning (FSL) addresses this by using metric learning, where a model calculates the similarity between a "query" image and a "prototype" representing a known class.
However, with limited data, these similarity scores are prone to noise—a single atypical pixel or camera angle can lead to erroneous, overconfident predictions. Traditional models treat similarity as a fixed number, ignoring the uncertainty inherent in the observation. The UAFS framework addresses this by treating similarity as a probabilistic variable, allowing for more robust optimization during the training phase.
Methodology
The UAFS framework introduces three core innovations to handle uncertainty in the embedding space:
- Probabilistic Similarity Representation: Instead of a scalar value, the similarity between a query $x_i$ and a prototype $c_j$ is modeled as a Gaussian distribution $\mathcal{N}(\mu, \sigma^2)$. The mean $\mu$ represents the expected similarity, while the variance $\sigma^2$ captures the data-dependent (aleatoric) uncertainty.
- Similarity Uncertainty Estimation via GCN: To estimate $\sigma$, the model utilizes a Graph Convolutional Network (GCN). By treating each query-prototype pair as a node in a graph, the GCN can leverage the global context—comparing the query against all prototypes simultaneously. This joint estimation is more effective than independent estimation, as it identifies queries that are ambiguous across multiple classes.
- Uncertainty-Aware Optimization: During training, the model employs Monte Carlo sampling to integrate over the similarity distributions. This approach naturally penalizes high-uncertainty predictions, forcing the feature extractor to learn more discriminative and robust representations.
Experimental Results
The UAFS framework was evaluated on four standard benchmarks: mini-ImageNet, tiered-ImageNet, CIFAR-FS, and FC100.
As shown in the comparative analysis, UAFS consistently outperforms strong baselines and existing state-of-the-art (SOTA) methods. In 1-shot classification tasks—where data scarcity makes noise most impactful—UAFS achieved gains of up to 1.76% over the "Meta-Base" baseline. Notably, the GCN-based uncertainty estimator is only required during training; it is discarded during inference, allowing the model to maintain high accuracy without increasing computational overhead in production environments.
Conclusion
By shifting from deterministic to probabilistic similarity modeling, the UAFS framework provides a principled way to handle noise in few-shot learning. The use of graph-based joint estimation for uncertainty proves superior to sample-wise methods. While the training phase involves additional sampling overhead and assumes Gaussian noise, the resulting models are more robust and achieve superior performance on challenging benchmarks. Future work may explore non-Gaussian distributions and the integration of attention mechanisms to further refine similarity estimation.
Summary updated