Skip to main content
QUICK REVIEW

[Paper Review] Adaptive Task Sampling for Meta-Learning

Chenghao Liu, Zhihao Wang|arXiv (Cornell University)|Jul 17, 2020
Domain Adaptation and Few-Shot LearningComputer Science61 references5 citations
TL;DR

This paper proposes adaptive task sampling for meta-learning that improves few-shot classification by selecting more informative, challenging class pairs based on class-pair potentials, using a greedy algorithm to efficiently sample difficult tasks. The method consistently boosts performance across multiple backbones and meta-learning algorithms without significant training overhead.

ABSTRACT

Meta-learning methods have been extensively studied and applied in computer vision, especially for few-shot classification tasks. The key idea of meta-learning for few-shot classification is to mimic the few-shot situations faced at test time by randomly sampling classes in meta-training data to construct few-shot tasks for episodic training. While a rich line of work focuses solely on how to extract meta-knowledge across tasks, we exploit the complementary problem on how to generate informative tasks. We argue that the randomly sampled tasks could be sub-optimal and uninformative (e.g., the task of classifying "dog" from "laptop" is often trivial) to the meta-learner. In this paper, we propose an adaptive task sampling method to improve the generalization performance. Unlike instance based sampling, task based sampling is much more challenging due to the implicit definition of the task in each episode. Therefore, we accordingly propose a greedy class-pair based sampling method, which selects difficult tasks according to class-pair potentials. We evaluate our adaptive task sampling method on two few-shot classification benchmarks, and it achieves consistent improvements across different feature backbones, meta-learning algorithms and datasets.

Motivation & Objective

  • To address the limitation of random task sampling in meta-learning, which often generates trivial or uninformative tasks.
  • To improve meta-learner generalization by exploiting intrinsic class relationships to form more challenging and informative few-shot tasks.
  • To develop an efficient sampling strategy that captures complex inter-class relationships without incurring prohibitive computational cost.
  • To enable broad applicability across different meta-learning algorithms and feature backbones.

Proposed method

  • The method defines task difficulty via class-pair potentials, which quantify the difficulty of distinguishing one class from another based on feature embeddings.
  • It formulates a non-greedy task sampling distribution over all possible K-way class combinations using these potentials.
  • A greedy approximation is introduced that selects the most informative class pairs in O(K) time, maintaining equivalence to the full distribution.
  • The greedy approach iteratively selects the highest-potential class pair, updating potentials dynamically to avoid redundancy.
  • The method is compatible with any episodic meta-learning framework, including metric-based (e.g., Prototypical Networks) and optimization-based approaches.
  • Class-pair potentials are computed using cosine similarity between class prototypes and updated during training.

Experimental results

Research questions

  • RQ1Can adaptive task sampling based on class-pair relationships improve meta-learning generalization beyond random sampling?
  • RQ2How can task difficulty be effectively modeled when it depends on inter-class relationships rather than individual class difficulty?
  • RQ3Can an efficient greedy sampling strategy approximate the optimal task distribution while remaining computationally feasible?
  • RQ4Does adaptive sampling lead to consistent performance gains across diverse meta-learning algorithms and feature backbones?

Key findings

  • The proposed greedy class-pair (gcp) sampling method achieves consistent accuracy improvements across multiple few-shot benchmarks, including CIFAR-FS and mini-ImageNet.
  • On CIFAR-FS with Prototypical Networks, gcp-sampling improved few-shot accuracy by up to 2.1% over random sampling across different shot settings.
  • The method maintained comparable training time to random sampling, with only a 1.2x overhead at most, even under high-way settings (20-way-1-shot).
  • Visualizations confirmed that gcp-sampling favors more visually and semantically similar classes (e.g., small animals), which are harder to distinguish and thus more informative for meta-learning.
  • The class-pair potential matrix revealed that gcp-sampling preferentially selects pairs with high correlation weights, indicating higher sampling probability for difficult combinations.
  • The hard class strategy for sampling class-pair potentials consistently yielded the best performance, outperforming random or easy class sampling.

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.