[Paper Review] Gaussian Prototypical Networks for Few-Shot Learning on Omniglot
This paper introduces Gaussian Prototypical Networks, extending prototypical networks to predict embeddings with per-sample uncertainty via a covariance, enabling covariance-weighted distance metrics for few-shot classification on Omniglot and achieving state-of-the-art results.
We propose a novel architecture for $k$-shot classification on the Omniglot dataset. Building on prototypical networks, we extend their architecture to what we call Gaussian prototypical networks. Prototypical networks learn a map between images and embedding vectors, and use their clustering for classification. In our model, a part of the encoder output is interpreted as a confidence region estimate about the embedding point, and expressed as a Gaussian covariance matrix. Our network then constructs a direction and class dependent distance metric on the embedding space, using uncertainties of individual data points as weights. We show that Gaussian prototypical networks are a preferred architecture over vanilla prototypical networks with an equivalent number of parameters. We report state-of-the-art performance in 1-shot and 5-shot classification both in 5-way and 20-way regime (for 5-shot 5-way, we are comparable to previous state-of-the-art) on the Omniglot dataset. We explore artificially down-sampling a fraction of images in the training set, which improves our performance even further. We therefore hypothesize that Gaussian prototypical networks might perform better in less homogeneous, noisier datasets, which are commonplace in real world applications.
Motivation & Objective
- Motivate fast adaptation to unseen classes in few-shot learning settings.
- Extend prototypical networks by predicting uncertainty (covariance) for each embedding.
- Evaluate how covariance-aware measures affect class prototypes and decision boundaries.
- Investigate robustness to noisy/inhomogeneous data through covariance weighting and dataset down-sampling.
Proposed method
- Use a CNN encoder to map images to embeddings and predict a covariance (uncertainty) per embedding.
- Three covariance variants: radius (scalar), diagonal (vector), and full covariance (not used due to complexity).
- Construct class prototypes with a variance-weighted combination of support embeddings (p_c = sum(s_i ∘ x_i)/sum(s_i)).
- Define class covariance s_c = sum(s_i) and distance to a class prototype as d_c(i)^2 = (x_i - p_c)^T S_c (x_i - p_c), where S_c = Σ_c^{-1}.
- Train with episodic scheme: select N_c classes, N_s support, N_q query per class; optimize softmax cross-entropy over distances.
- Experiment with embedding dimensions and encoder capacities; compare radius vs diagonal covariance; assess impact of down-sampling training data to encourage covariance usage.
Experimental results
Research questions
- RQ1Can predicting a per-sample covariance improve few-shot classification in Omniglot compared to vanilla prototypical networks?
- RQ2What is the most parameter-efficient way to encode uncertainty (radius vs diagonal or full covariance) in this framework?
- RQ3How does deliberately degrading training data (down-sampling) affect the utility of covariance estimates and few-shot accuracy?
- RQ4Do covariance-aware metrics yield improved performance in 1-shot and 5-shot, 5-way and 20-way regimes compared to prior state-of-the-art?
Key findings
- Gaussian prototypical networks outperform vanilla prototypical networks with a comparable parameter count.
- Among covariance variants, predicting a single radius value per embedding (radius method) is most effective on Omniglot.
- Down-sampling a portion of the training data to induce noisier/less homogeneous data improves k-shot performance by encouraging use of covariance estimates.
- The best big-model radius configuration achieves state-of-the-art results in 1-shot and 5-shot, 20-way classification, and competitive results in 5-way 5-shot tasks.
- Training on partially damaged data further boosts performance on higher-shot regimes, indicating robustness of covariance weighting to noise.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.