Meta-learning autoencoders for few-shot prediction

Tailin Wu, John Peurifoy, Isaac L. Chuang, Max Tegmark

Introduction

Humans possess a remarkable ability to adapt to new environments with minimal data. For instance, observing a ball's trajectory after just one or two bounces allows us to predict its future path by quickly identifying environmental properties like room shape or ball elasticity. In "Meta-learning autoencoders for few-shot prediction," researchers from MIT introduce MeLA (Meta-Learning Autoencoder), a framework designed to mimic this rapid adaptation by learning to generate the parameters of task-specific neural networks from limited examples.

The Challenge of Few-Shot Learning

Standard machine learning models typically require vast amounts of data to generalize. Meta-learning, or "learning to learn," addresses this by training models to adapt to new tasks with very few examples. Current approaches generally fall into two categories:

  1. Optimization-based (e.g., MAML): These seek a "great initialization" so that a few gradient descent steps yield a good solution.
  2. Memory-based: These use recurrent networks or attention mechanisms to "remember" previous examples.

MeLA proposes a third path for regression and physics-based problems. By recognizing an underlying continuum of models, MeLA aims to understand the latent space of the models themselves, enabling instant adaptation and even "active learning," where the model identifies the most informative data points.

Methodology: The MeLA Architecture

The MeLA framework consists of three integrated components that function like an autoencoder for neural network parameters.

The MeLA architecture: a meta-recognition model encodes examples into a latent code z, which the meta-generative model uses to produce weights for a task-specific model.
  1. Meta-Recognition Model ($m_\mu$): Acting as the "encoder," it takes a small set of input-output pairs $(X, Y)$. It utilizes a series of layers followed by a max-pooling operation to produce a compact model code ($z$). Max-pooling ensures the model is invariant to the order of examples and can handle varying numbers of inputs.
  2. Meta-Generative Model ($g_\gamma$): This "decoder" maps the model code $z$ to the weights and biases ($\theta$) of a separate task-specific network.
  3. Task-Specific Model ($f_\theta$): This network performs the actual prediction. Crucially, its parameters are directly "poured in" by the meta-generative model rather than being learned via backpropagation during inference.

Experimental Evaluation

MeLA was evaluated on three increasingly complex regression and prediction scenarios: simple sine wave regression, state representation for a bouncing ball in various polygon rooms, and high-dimensional video prediction for the same bouncing ball system.

Performance comparison and active learning capabilities of MeLA. (a) MSE vs. gradient steps. (b) Sine wave fitting. (c-d) Identifying the most informative measurement points.

Key Results

  • Zero-Shot Adaptation: MeLA often outperforms MAML at "step zero" (before any fine-tuning). In the sine wave task, MeLA achieved an initial Mean Squared Error (MSE) of 0.208, whereas MAML started at 3.05, requiring five gradient steps to reach MeLA's initial performance.
  • Influence Identification: By analyzing which examples "won" the max-pooling operation, MeLA identifies the most informative data points. In the bouncing ball task, the model naturally identifies points near the vertices of the polygon as the most influential.
  • Interactive Learning: The differentiable nature of the pipeline allows MeLA to calculate a "sensitivity matrix" to predict which unseen inputs would provide the most information if revealed, enabling automated experimental design.

Discussion and Future Work

MeLA demonstrates that learning the latent space of models allows for rapid, accurate adaptation in physical domains. However, challenges remain. Generating weights for massive architectures would require significantly larger meta-generative models. Furthermore, while MeLA excels in clean physical simulations, its performance on noisy, real-world datasets remains to be explored. Future research may also investigate more flexible mappings from model codes to diverse task-specific architectures.

Summary updated

Abstract

Compared to humans, machine learning models generally require significantly more training examples and fail to extrapolate from experience to solve previously unseen challenges. To help close this performance gap, we augment single-task neural networks with a meta-recognition model which learns a succinct model code via its autoencoder structure, using just a few informative examples. The model code is then employed by a meta-generative model to construct parameters for the task-specific model. We demonstrate that for previously unseen tasks, without additional training, this Meta-Learning Autoencoder (MeLA) framework can build models that closely match the true underlying models, with loss significantly lower than given by fine-tuned baseline networks, and performance that compares favorably with state-of-the-art meta-learning algorithms. MeLA also adds the ability to identify influential training examples and predict which additional data will be most valuable to acquire to improve model prediction.
BibTeX
@misc{wu2018meta,
  author = {Tailin Wu and John Peurifoy and Isaac L. Chuang and Max Tegmark},
  title = {{Meta-learning autoencoders for few-shot prediction}},
  year = {2018},
  eprint = {1807.09912},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1807.09912},
}
Figure