Table of Contents
Fetching ...

Metalearning with Very Few Samples Per Task

Maryam Aliakbarpour, Konstantina Bairaktari, Gavin Brown, Adam Smith, Nathan Srebro, Jonathan Ullman

TL;DR

This work investigates how to metalearn a representation that accelerates learning new tasks drawn from a metadistribution, in a distribution-free setting with extremely small per-task data. It proves that when tasks share a linear representation $h: \mathbb{R}^d \to \mathbb{R}^k$ and task-specific classifiers are halfspaces on $\mathbb{R}^k$, one can achieve a small error with just $n = k+2$ samples per task, given a sufficient number of tasks that scales with $d$ and $k$. The authors develop a uniform-convergence theory for metalearning, introduce the non-realizability-certificate complexity $\mathrm{NRC}(\mathcal{F})$, and define realizability predicates to bound task- and sample-complexity; they also connect metalearning to multitask learning via reductions and provide tight VC/pseudodimension bounds for linear representations and halfspaces. Across realizable and agnostic settings, the paper characterizes when distribution-free metalearning is possible and gives precise bounds for linear representations, including special cases like monotone thresholds where $n=2$ suffices. The results offer theoretical explanations for empirical observations that small, diverse data sources can substantially improve learning across all populations, including well-supplied ones.

Abstract

Metalearning and multitask learning are two frameworks for solving a group of related learning tasks more efficiently than we could hope to solve each of the individual tasks on their own. In multitask learning, we are given a fixed set of related learning tasks and need to output one accurate model per task, whereas in metalearning we are given tasks that are drawn i.i.d. from a metadistribution and need to output some common information that can be easily specialized to new tasks from the metadistribution. We consider a binary classification setting where tasks are related by a shared representation, that is, every task $P$ can be solved by a classifier of the form $f_{P} \circ h$ where $h \in H$ is a map from features to a representation space that is shared across tasks, and $f_{P} \in F$ is a task-specific classifier from the representation space to labels. The main question we ask is how much data do we need to metalearn a good representation? Here, the amount of data is measured in terms of the number of tasks $t$ that we need to see and the number of samples $n$ per task. We focus on the regime where $n$ is extremely small. Our main result shows that, in a distribution-free setting where the feature vectors are in $\mathbb{R}^d$, the representation is a linear map from $\mathbb{R}^d \to \mathbb{R}^k$, and the task-specific classifiers are halfspaces in $\mathbb{R}^k$, we can metalearn a representation with error $\varepsilon$ using $n = k+2$ samples per task, and $d \cdot (1/\varepsilon)^{O(k)}$ tasks. Learning with so few samples per task is remarkable because metalearning would be impossible with $k+1$ samples per task, and because we cannot even hope to learn an accurate task-specific classifier with $k+2$ samples per task. Our work also yields a characterization of distribution-free multitask learning and reductions between meta and multitask learning.

Metalearning with Very Few Samples Per Task

TL;DR

This work investigates how to metalearn a representation that accelerates learning new tasks drawn from a metadistribution, in a distribution-free setting with extremely small per-task data. It proves that when tasks share a linear representation and task-specific classifiers are halfspaces on , one can achieve a small error with just samples per task, given a sufficient number of tasks that scales with and . The authors develop a uniform-convergence theory for metalearning, introduce the non-realizability-certificate complexity , and define realizability predicates to bound task- and sample-complexity; they also connect metalearning to multitask learning via reductions and provide tight VC/pseudodimension bounds for linear representations and halfspaces. Across realizable and agnostic settings, the paper characterizes when distribution-free metalearning is possible and gives precise bounds for linear representations, including special cases like monotone thresholds where suffices. The results offer theoretical explanations for empirical observations that small, diverse data sources can substantially improve learning across all populations, including well-supplied ones.

Abstract

Metalearning and multitask learning are two frameworks for solving a group of related learning tasks more efficiently than we could hope to solve each of the individual tasks on their own. In multitask learning, we are given a fixed set of related learning tasks and need to output one accurate model per task, whereas in metalearning we are given tasks that are drawn i.i.d. from a metadistribution and need to output some common information that can be easily specialized to new tasks from the metadistribution. We consider a binary classification setting where tasks are related by a shared representation, that is, every task can be solved by a classifier of the form where is a map from features to a representation space that is shared across tasks, and is a task-specific classifier from the representation space to labels. The main question we ask is how much data do we need to metalearn a good representation? Here, the amount of data is measured in terms of the number of tasks that we need to see and the number of samples per task. We focus on the regime where is extremely small. Our main result shows that, in a distribution-free setting where the feature vectors are in , the representation is a linear map from , and the task-specific classifiers are halfspaces in , we can metalearn a representation with error using samples per task, and tasks. Learning with so few samples per task is remarkable because metalearning would be impossible with samples per task, and because we cannot even hope to learn an accurate task-specific classifier with samples per task. Our work also yields a characterization of distribution-free multitask learning and reductions between meta and multitask learning.
Paper Structure (31 sections, 44 theorems, 120 equations, 2 figures, 1 table)

This paper contains 31 sections, 44 theorems, 120 equations, 2 figures, 1 table.

Key Result

Theorem 1.1

Distribution-free multitask learning to error $\varepsilon$ with $n\xspace$ samples per task and $t\xspace$ tasks is possible if and only if $nt \gtrsim \mathrm{VC}(\mathcal{F}^{\otimes t\xspace}\circ \mathcal{H})/\varepsilon^2$. In the realizable setting $1/\varepsilon^2$ is replaced with $\log(1/\

Figures (2)

  • Figure 1: Example of an ROC curve and the line $(1-\textrm{TPR})\rho+\textrm{FPR}(1-\rho) = c$, which corresponds to points with error $c$. The line and curve intersect when $c=\textrm{err}(B, \mathcal{F}_{\textrm{mon}})$.
  • Figure 2: Constructing a datapoint drawn from distribution $\mathcal{D}$.

Theorems & Definitions (81)

  • Theorem 1.1: Informal version of Theorem \ref{['thm:mtl-smpls']}
  • Theorem 1.2
  • Corollary 1.3: Informal version of Corollary \ref{['cor:met-lin-real1']}
  • Theorem 1.4: see Theorem \ref{['thm:met-mon']}
  • Corollary 1.5: following Corollary \ref{['cor:met-lin-agn']} and Corollary \ref{['cor:imp_meta_hlr']}
  • Definition 1.6: Non-realizability-certificate complexity
  • Definition 1.7: Realizability predicate
  • Theorem 1.8: Informal version of Theorem \ref{['thm:met-samples']}
  • Definition 1.9: Empirical error function
  • Theorem 1.10: see Theorem \ref{['thm:agn-met-samples']}
  • ...and 71 more