Skip to main content
QUICK REVIEW

[Paper Review] Stochastic Prototype Embeddings

Tyler R. Scott, Karl Ridgeway|arXiv (Cornell University)|Sep 25, 2019
Domain Adaptation and Few-Shot LearningComputer Science27 references10 citations
TL;DR

This paper proposes Stochastic Prototype Embeddings (SPE), a probabilistic extension of Prototypical Networks that models embeddings as Gaussian random variables to capture uncertainty in few-shot learning. By marginalizing over embedding uncertainty via an efficient sampler, SPE improves robustness to label noise and out-of-distribution inputs, outperforming both deterministic (PN) and stochastic (HIB) baselines in few-shot and open-set classification while yielding interpretable, disentangled representations.

ABSTRACT

Supervised deep-embedding methods project inputs of a domain to a representational space in which same-class instances lie near one another and different-class instances lie far apart. We propose a probabilistic method that treats embeddings as random variables. Extending a state-of-the-art deterministic method, Prototypical Networks (Snell et al., 2017), our approach supposes the existence of a class prototype around which class instances are Gaussian distributed. The prototype posterior is a product distribution over labeled instances, and query instances are classified by marginalizing relative prototype proximity over embedding uncertainty. We describe an efficient sampler for approximate inference that allows us to train the model at roughly the same space and time cost as its deterministic sibling. Incorporating uncertainty improves performance on few-shot learning and gracefully handles label noise and out-of-distribution inputs. Compared to the state-of-the-art stochastic method, Hedged Instance Embeddings (Oh et al., 2019), we achieve superior large- and open-set classification accuracy. Our method also aligns class-discriminating features with the axes of the embedding space, yielding an interpretable, disentangled representation.

Motivation & Objective

  • To address the limitations of deterministic deep embedding methods in handling uncertainty from label noise, data corruption, and out-of-distribution inputs.
  • To develop a stochastic embedding method that maintains training efficiency while improving generalization in few-shot and open-set learning scenarios.
  • To enable interpretable, disentangled representations by aligning class-discriminative features with the principal axes of the embedding space.
  • To outperform state-of-the-art stochastic methods like Hedged Instance Embeddings (HIB) in large-set and open-set classification tasks.
  • To provide a scalable, parameter-free alternative to existing stochastic embedding frameworks with tunable uncertainty modeling.

Proposed method

  • SPE models each class prototype as a Gaussian random variable, with instance embeddings distributed around it as i.i.d. Gaussian perturbations.
  • Query classification is performed by marginalizing over prototype proximity, integrating uncertainty in both support and query embeddings.
  • An intersection sampler is introduced for efficient approximate posterior inference, enabling training at near-deterministic computational cost.
  • The model uses a diagonal covariance matrix to encode uncertainty, which naturally aligns class-discriminative features with the principal axes of the embedding space.
  • The method extends Prototypical Networks by replacing point estimates with distributions, preserving the same architecture but adding probabilistic inference.
  • The training objective minimizes expected classification error under the posterior distribution, using stochastic backpropagation with reparameterization.

Experimental results

Research questions

  • RQ1Can modeling embeddings as random variables improve robustness to label noise and data corruption in few-shot learning?
  • RQ2Does a stochastic prototype-based approach yield more interpretable and disentangled representations than deterministic or existing stochastic methods?
  • RQ3How does SPE compare to the state-of-the-art stochastic method, Hedged Instance Embeddings (HIB), in open-set and large-set classification?
  • RQ4Can an efficient sampling strategy maintain training efficiency while enabling full Bayesian inference in a deep embedding framework?
  • RQ5To what extent does uncertainty modeling enhance generalization to unseen classes in few-shot and open-set learning?

Key findings

  • SPE significantly outperforms the deterministic Prototypical Network (PN) on few-shot learning, especially when support instances are corrupted, due to uncertainty-aware inference.
  • On the MNIST-based $N$-digit classification task, SPE achieves higher accuracy than HIB across all six conditions (2≤N≤3, 2≤D≤3), with only 7 out of 24 conditions where SPE underperforms.
  • SPE generalizes better to unseen classes than HIB, which fails to produce meaningful embeddings for novel classes, demonstrating superior open-set recognition capability.
  • The diagonal covariance structure of SPE leads to disentangled, interpretable representations where class-discriminative features align with principal axes, unlike entangled representations in HIB.
  • SPE achieves state-of-the-art performance on large-set and open-set classification benchmarks, outperforming HIB despite using only 1/3 of the labeled data and no hyperparameter tuning.
  • The intersection sampler enables training at roughly the same space and time cost as the deterministic PN, making SPE scalable and practical for real-world deployment.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.