MetaMix: Improved Meta-Learning with Interpolation-based Consistency Regularization

Yangbin Chen, Yun Ma, Tom Ko, Jianping Wang, Qing Li

Abstract

Meta-learning algorithms, particularly gradient-based methods like Model-Agnostic Meta-Learning (MAML), often suffer from meta-overfitting due to the limited diversity within small training episodes. We present MetaMix, a simple yet effective regularization technique that incorporates linear interpolation (mixup) into the meta-learning pipeline. By applying mixup specifically to the query set of each episode, MetaMix encourages the model to learn smoother decision boundaries and more robust representations. Our experiments across standard few-shot classification benchmarks—mini-ImageNet, CUB, and FC100—demonstrate that MetaMix consistently improves performance and significantly enhances data efficiency, allowing models to achieve competitive results even with a fraction of the original training data.

Introduction

Few-shot learning (FSL) challenges models to generalize from a very limited number of labeled examples. Model-Agnostic Meta-Learning (MAML) addresses this by optimizing for a meta-initialization that can be rapidly adapted to new tasks. However, the small size of training episodes often leads to "meta-overfitting," where the model memorizes specific task configurations rather than learning generalizable features. This results in brittle decision boundaries that are sensitive to noise. MetaMix introduces a low-cost regularization strategy to force the model toward smoother, more consistent transitions between classes.

Methods: The MetaMix Framework

The core innovation of MetaMix is the integration of the mixup strategy into the meta-learning outer loop. While standard mixup is applied to individual samples in supervised learning, MetaMix targets the query set of a meta-learning episode.

The MetaMix framework: During the training stage, the query set $Q_i$ undergoes linear interpolation (mixup) to generate virtual examples $\hat{Q}_i$. These are used in the outer loop to update the meta-initializer via the CNN.

The MetaMix Workflow

  1. Inner Loop Adaptation: For a given task $T_i$, the model uses the support set $S_i$ to perform a few steps of gradient descent, adapting the meta-parameters to task-specific parameters.
  2. Query Set Interpolation: Instead of evaluating the adapted model on the raw query set $Q_i$, MetaMix creates virtual examples $\hat{Q}_i$ by interpolating pairs of images and their corresponding labels from $Q_i$.
  3. Outer Loop Optimization: The meta-loss is computed on these virtual examples. This objective encourages the meta-initializer to favor parameters that result in smooth class transitions after adaptation.

The authors found that regularizing the query set is significantly more effective than regularizing the support set, as the query set directly influences the long-term "learning to learn" trajectory of the meta-optimizer.

Experimental Evaluation

MetaMix was evaluated on three benchmarks: mini-ImageNet, CUB (birds), and FC100. It was integrated with several base algorithms, including MAML, First-Order MAML (FOMAML), Meta-SGD, and Meta-Transfer Learning (MTL).

Key Results and Data Efficiency

MetaMix provided consistent accuracy gains across all settings. For instance, on the CUB dataset, MetaMix improved MAML's 1-shot accuracy from 54.32% to 57.70%. When combined with MTL, it achieved state-of-the-art results on mini-ImageNet (62.74% in 1-shot and 79.11% in 5-shot).

A striking finding was the method's extreme data efficiency. As shown in the figure below, MAML enhanced with MetaMix using only 50% of the training data often outperformed the standard MAML baseline using 100% of the data.

Comparison of accuracy vs. training data size for the 5-shot task on mini-ImageNet. MetaMix+MAML (blue) consistently outperforms standard MAML (red) and maintains high performance even with significantly reduced training data.

Discussion and Future Work

MetaMix serves as a "plug-and-play" regularizer that mitigates meta-overfitting by enforcing consistency through interpolation. While highly effective for optimization-based meta-learning, future work aims to adapt this framework for metric-based (e.g., Prototypical Networks) and model-based architectures. Additionally, the principles of MetaMix could be extended to semi-supervised learning or other domains such as natural language processing and speech recognition.

Summary updated

BibTeX
@inproceedings{chen2020metamix,
  author = {Yangbin Chen and Yun Ma and Tom Ko and Jianping Wang and Qing Li},
  title = {{MetaMix: Improved Meta-Learning with Interpolation-based Consistency Regularization}},
  booktitle = {ICPR},
  year = {2020},
  url = {https://openreview.net/forum?id=IT_IHVrYTh},
}
Figure