Skip to main content
QUICK REVIEW

[Paper Review] TapNet: Neural Network Augmented with Task-Adaptive Projection for Few-Shot Learning

S.W. Yoon, Jun Seo|arXiv (Cornell University)|May 16, 2019
Domain Adaptation and Few-Shot LearningComputer Science22 references123 citations
TL;DR

TapNet learns an embedding network and per-class reference vectors while constructing a task-specific projection space for each episode, yielding state-of-the-art few-shot classification on Omniglot, miniImageNet, and tieredImageNet.

ABSTRACT

Handling previously unseen tasks after given only a few training examples continues to be a tough challenge in machine learning. We propose TapNets, neural networks augmented with task-adaptive projection for improved few-shot learning. Here, employing a meta-learning strategy with episode-based training, a network and a set of per-class reference vectors are learned across widely varying tasks. At the same time, for every episode, features in the embedding space are linearly projected into a new space as a form of quick task-specific conditioning. The training loss is obtained based on a distance metric between the query and the reference vectors in the projection space. Excellent generalization results in this way. When tested on the Omniglot, miniImageNet and tieredImageNet datasets, we obtain state of the art classification accuracies under various few-shot scenarios.

Motivation & Objective

  • Motivate and address few-shot learning by enabling rapid adaptation to unseen tasks with limited labeled data.
  • Propose a meta-learning framework that jointly learns an embedding, per-class references, and a task-specific projection space.
  • Enhance generalization by conditioning classification via a linear projection that aligns embeddings with class references per episode.
  • Demonstrate strong empirical performance across standard few-shot benchmarks and analyze the behavior of the learned references and projection space.

Proposed method

  • Use an embedding network f_theta to map inputs to a feature space.
  • Maintain a set of per-class reference vectors Phi that represent class prototypes in reference space.
  • Compute a task-dependent linear projection M that maps features into a new classification space for the episode.
  • Align class averages c_k (from the support set) with modified references tilde(phi)_k through a linear nulling of the error vectors to obtain M (via SVD).
  • Classify queries by Euclidean distance in the projected space to the projected references M(f_theta(x_hat)).
  • Update f_theta and Phi across episodes through episodic training to minimize cross-episode classification loss based on distances in the projection space.

Experimental results

Research questions

  • RQ1Can a task-specific projection space improve generalization in few-shot learning beyond static embedding spaces?
  • RQ2Do per-class reference vectors that are learned across tasks, combined with a task-conditioned projection, yield better alignment and discrimination for unseen classes?
  • RQ3How does the dimension of the projection space affect few-shot performance?
  • RQ4How does TapNet compare to existing metric-based and memory-augmented meta-learners on standard benchmarks?

Key findings

  • TapNet achieves 98.07% 1-shot and 99.49% 5-shot accuracy on 20-way Omniglot.
  • TapNet achieves 61.65% 1-shot and 76.36% 5-shot accuracy on 5-way miniImageNet.
  • TapNet achieves 63.08% 1-shot and 80.26% 5-shot accuracy on 5-way tieredImageNet.
  • The projection space M is constructed per episode via linear nulling of embedding-reference misalignment, enabling task-specific conditioning without learned parameters for M itself.
  • Learning across many episodes with higher-way training improves performance and allows handling varying numbers of classes in few-shot tests.
  • Visualization analyses indicate references naturally separate in projection space and align with matching references after projection.

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.