On Data Efficiency of Meta-learning

Maruan Al-Shedivat, Liam Li, Eric Poe Xing, Ameet Talwalkar

Abstract

While meta-learning is celebrated for its ability to adapt to new tasks quickly, its "data efficiency"—the total number of labels required to learn effectively—is often overlooked. This paper provides a theoretical and empirical analysis of popular algorithms, including MAML, Reptile, and Prototypical Networks (ProtoNets). We reveal that their performance depends heavily on how a fixed "labeling budget" is allocated between the number of tasks and the number of data points per task. Furthermore, we introduce an active meta-learning framework that improves generalization by intelligently selecting which data points to label during the meta-training process.

Introduction

Most meta-learning research operates under the assumption of an "infinite" stream of tasks. In standard benchmarks like Omniglot, researchers programmatically generate millions of few-shot tasks from a large pool of data. However, in real-world applications such as personalized federated learning, this assumption is often invalid. In these scenarios, a "task" represents a specific user whose data is private and cannot be reused. Moreover, labeling data (e.g., asking a user to rate a product) is expensive and time-consuming.

This paper addresses the lack of understanding regarding which meta-learning algorithms are truly data-efficient when operating under a strict supervision budget. We investigate a fundamental trade-off: is it better to have many tasks with very few labels each, or fewer tasks with more labels per task?

Theoretical Framework and Methodology

To analyze data efficiency, we utilize three distinct approaches:

  1. Algorithmic Stability: We derive generalization bounds (transfer risk) for two major families of algorithms: gradient-based methods (MAML and Reptile) and metric-based methods (ProtoNets). This allows us to theoretically predict how error scales with the number of tasks and points per task.
  2. Supervision Budget Framework: We introduce a novel evaluation protocol where algorithms are compared based on a fixed total number of labels ($B$) rather than a fixed number of training iterations. This reflects the real-world constraint of labeling costs.
  3. Active Meta-learning: We propose a novel approach that integrates active learning into the meta-training loop. Instead of selecting support points at random, we use a sub-routine combining entropy-based uncertainty and k-means++ diversity to decide which points within a task should be labeled.

Key Insights: Task-Hungry vs. Shot-Hungry

Our analysis reveals a fundamental divide in how meta-learning algorithms utilize data:

The "Reptile Floor"

Theoretical analysis shows that Reptile optimizes an empirical estimator of risk using the same data for both inner and outer loops. This results in an additive $O(1/m)$ error term, where $m$ is the number of points per task. Consequently, even with an infinite number of tasks, Reptile will never reach zero generalization error if the number of points per task is small. We refer to this as the "Reptile Floor."

Algorithmic Preferences

  • MAML and ProtoNets (Task-Hungry): These algorithms generalize better when trained on a large number of tasks, even if those tasks have very few labels (e.g., 1-shot). They are designed to extract meta-knowledge across task boundaries effectively.
  • Reptile (Shot-Hungry): Due to the aforementioned error term, Reptile performs significantly better when given more data points per task. This helps the algorithm overcome the lack of a held-out query set during the training phase.

Empirical Results

We evaluated these methods on Omniglot, mini-ImageNet, and Federated EMNIST (a benchmark with 3,400 unique users).

  • Budget Allocation: Under a strict label budget (e.g., 300k labels), Reptile struggles compared to MAML or ProtoNets unless the number of shots per task is high. In the "classical" regime of infinite tasks, MAML and ProtoNets perform similarly, but under a limited task budget, MAML thrives on 1-shot tasks while ProtoNets dominate 5-shot benchmarks.
  • Active Selection Gains: Integrating active learning consistently improves performance. By picking the most informative points to label, the algorithm creates "better-behaved" meta-loss landscapes. On the 62-way Federated EMNIST dataset (100k budget), Active Reptile achieved 89.1% accuracy, significantly outperforming the 87.0% achieved via random sampling.

Conclusion and Future Work

Our findings suggest that the choice of meta-learning algorithm should be dictated by the nature of the available data budget. If tasks are plentiful but labels per task are scarce, MAML is preferred. If labels per task can be increased, Reptile becomes more competitive, especially when paired with active selection strategies.

Future work should explore whether these trends hold for larger architectures like Vision Transformers and investigate hyperparameter tuning strategies specifically optimized for fixed-budget regimes. Additionally, extending the stability analysis to non-convex objectives could provide even sharper theoretical insights into the data efficiency of meta-learning.

Summary updated

BibTeX
@inproceedings{alshedivat2021data,
  author = {Maruan Al-Shedivat and Liam Li and Eric Poe Xing and Ameet Talwalkar},
  title = {{On Data Efficiency of Meta-learning}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2021},
}
Figure