Skip to main content
QUICK REVIEW

[Paper Review] Semi-Supervised Few-Shot Learning with Prototypical Random Walks

Ahmed Ayyad, Li, Yuchen|arXiv (Cornell University)|Mar 6, 2019
Domain Adaptation and Few-Shot LearningComputer Science30 references5 citations
TL;DR

This paper proposes Prototypical Random Walk Networks (PRWN), a semi-supervised few-shot learning method that enhances prototypical networks by introducing a global, graph-based random walk loss to magnetize unlabeled data points toward their class prototypes. The approach achieves state-of-the-art performance, outperforming fully supervised prototypical networks on 1-shot mini-ImageNet (50.89% vs. 49.4%) and demonstrating robustness to distractor classes in unlabeled data.

ABSTRACT

Recent progress has shown that few-shot learning can be improved with access to unlabelled data, known as semi-supervised few-shot learning(SS-FSL). We introduce an SS-FSL approach, dubbed as Prototypical Random Walk Networks(PRWN), built on top of Prototypical Networks (PN). We develop a random walk semi-supervised loss that enables the network to learn representations that are compact and well-separated. Our work is related to the very recent development of graph-based approaches for few-shot learning. However, we show that compact and well-separated class representations can be achieved by modeling our prototypical random walk notion without needing additional graph-NN parameters or requiring a transductive setting where a collective test set is provided. Our model outperforms baselines in most benchmarks with significant improvements in some cases. Our model, trained with 40$\%$ of the data as labeled, compares competitively against fully supervised prototypical networks, trained on 100$\%$ of the labels, even outperforming it in the 1-shot mini-Imagenet case with 50.89$\%$ to 49.4$\%$ accuracy. We also show that our loss is resistant to distractors, unlabeled data that does not belong to any of the training classes, and hence reflecting robustness to labeled/unlabeled class distribution mismatch. Associated GitHub page can be found at https://prototypical-random-walk.github.io.

Motivation & Objective

  • To improve few-shot learning by leveraging unlabeled data through a novel semi-supervised training signal.
  • To address the challenge of labeled data scarcity in few-shot learning by introducing a global consistency loss that enhances representation discriminability.
  • To develop a method robust to distributional mismatches, such as distractor classes in unlabeled data.
  • To outperform existing semi-supervised few-shot learning baselines, including those using adversarial or graph-based losses.
  • To demonstrate that global consistency via random walks surpasses local consistency losses like VAT in few-shot settings.

Proposed method

  • The method builds on Prototypical Networks (PN) and introduces a random walk-based semi-supervised loss that maximizes the probability of a walk starting and ending at the same class prototype via unlabeled embeddings.
  • A similarity graph is constructed over all prototypes and unlabeled points in an episode, enabling the model to learn global manifold structure.
  • The random walk loss enforces 'prototypical magnetization', where points of the same class are pulled toward their prototype while being repelled from others.
  • The loss function is computed using transition probabilities derived from a symmetric normalized graph Laplacian, ensuring stable and differentiable walk dynamics.
  • A simple filtering mechanism is proposed during inference that uses walk success probability to discard distractor points, improving robustness.
  • The model is trained end-to-end using meta-learning with episodic training, where each episode contains a support set for adaptation and a query set for evaluation.

Experimental results

Research questions

  • RQ1Can a global, graph-based consistency signal improve few-shot representation learning beyond local consistency losses like VAT?
  • RQ2How does prototypical random walk loss enhance model robustness to distractor points in unlabeled data?
  • RQ3Can a semi-supervised few-shot model trained on only 40% labeled data outperform a fully supervised model trained on 100% labels?
  • RQ4To what extent does the random walk dynamics naturally repel irrelevant (distractor) points from class prototypes?
  • RQ5Can a simple filtering step based on walk success probability improve semi-supervised inference in the presence of distractors?

Key findings

  • PRWN achieves 50.89% top-1 accuracy on 1-shot mini-ImageNet, surpassing the fully supervised prototypical network (49.4%) and setting a new state-of-the-art.
  • On 5-shot mini-ImageNet, PRWN achieves 68.77% accuracy, outperforming prior methods including Meta-GAN and PN+Soft K-Means.
  • The model maintains strong performance under distractor conditions, with clean-point visitation probability of 0.81, significantly higher than PN (0.67) and PN+all (0.76).
  • By applying a simple median-based filter on walk success probability, PRWN improves semi-supervised inference, achieving 99.04% accuracy on Omniglot and 69.74% on 5-shot Tiered-ImageNet.
  • The prototypical random walk loss provides both attractive and repelling forces—magnetizing relevant points while avoiding distractors—without requiring additional graph neural network parameters.
  • PRWN outperforms VAT-based PN in all benchmarks, demonstrating that global consistency via random walks is more effective than local consistency in few-shot semi-supervised learning.

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.