Multimodal Model-Agnostic Meta-Learning via Task-Aware Modulation

Risto Vuorio, Shao-Hua Sun, Hexiang Hu, Joseph J. Lim

TL;DR

Standard Model-Agnostic Meta-Learning (MAML) struggles when tasks are too diverse because it tries to find a single "average" starting point for everything. This paper introduces MMAML, which uses a modulation network to first identify the "mode" of a task and then shifts the model's initialization before fine-tuning, allowing for much faster and more accurate adaptation across wildly different domains.

What Problem Does This Paper Address?

Meta-learning, or "learning to learn," aims to create models that can adapt to new tasks with just a few examples. The gold standard for this has been MAML, which searches for a single set of initial parameters (a "prior") that is just a few gradient steps away from any specific task.

However, the authors identify a major bottleneck: MAML assumes a unimodal task distribution. Imagine trying to find a single physical starting pose that is optimal for both sprinting and swimming; you’d likely end up with a mediocre compromise that isn't great for either. In the real world, tasks are often multimodal—they come from different "modes" or families (e.g., classifying birds vs. classifying aircraft). When tasks are disjoint or far apart in parameter space, MAML’s single initialization fails to provide a helpful head start.

Methods

The authors propose Multimodal Model-Agnostic Meta-Learning (MMAML). The core idea is to combine the strengths of model-based meta-learning (which uses networks to "recognize" tasks) and model-agnostic meta-learning (which uses gradients to "adapt" to tasks).

MMAML Architecture

The architecture consists of two main components:

  1. Modulation Network: This network takes a few sample data points from the new task and produces a task embedding. This embedding is then transformed into modulation parameters.
  2. Task Network: This is the actual model performing the task (e.g., a classifier). Instead of starting from a fixed global initialization, its parameters are "modulated" (shifted and scaled) by the modulation network based on the identified task mode.

The authors specifically use FiLM (Feature-wise Linear Modulation) to apply these changes. Once the task network is modulated to a "mode-aware" starting point, it undergoes standard gradient-based adaptation (the "inner loop" of MAML) to specialize in the specific task at hand.

Datasets

The authors evaluated MMAML across three distinct domains to prove its versatility:

  • Few-shot Regression: A synthetic benchmark using five different function families: sinusoidal, linear, quadratic, $L_1$ norm, and hyperbolic tangent.
  • Few-shot Image Classification: A massive "multimodal" dataset created by merging five popular benchmarks: Omniglot (characters), Mini-ImageNet (objects), FC100 (objects), CUB (birds), and Aircraft.
  • Reinforcement Learning (RL): Continuous control tasks using the MuJoCo simulator, including Point Mass, Reacher, and Ant robots, where goals were sampled from multimodal spatial distributions.

Key Insights and Ideas

  • Zero-Supervision Mode Discovery: Perhaps the most striking insight is that MMAML learns to identify task modes (like "this is a bird task") entirely on its own.
t-SNE of Task Embeddings

As shown in the t-SNE visualizations, the task embeddings form clear clusters corresponding to different datasets, even though the model was never explicitly told which dataset a task came from.

  • The "Compromise" Penalty: The results confirmed that standard MAML performs significantly worse as the number of task modes increases. It gets "pulled" in too many directions, resulting in a prior that is essentially useless for all modes.
  • Cross-Mode Synergy: Interestingly, the authors found that training on a multimodal distribution sometimes improved performance compared to training on a single mode. This suggests that the model can leverage shared underlying structures across different types of tasks.

Key Results

  • Regression: In a 5-mode setup, MMAML achieved a Mean Squared Error (MSE) of 0.868, nearly doubling the performance of standard MAML (1.668).
  • Image Classification: On a 5-mode, 5-way 5-shot task, MMAML reached 51.53% overall accuracy, significantly outperforming MAML’s 43.92%. It even remained competitive with "Multi-MAML," a baseline that was manually given the ground-truth task labels.
  • Reinforcement Learning: In the 4-mode Point Mass environment, MMAML achieved a cumulative reward of -209, while the unmodulated baseline (ProMP) trailed far behind at -523.

Limitations and Future Work

  • Architectural Complexity: MMAML requires designing and training an additional modulation network, which adds complexity compared to the "pure" gradient-based approach of MAML.
  • Credit Assignment in RL: The authors noted that standard MAML has known credit assignment issues in RL. While they mitigated this by using ProMP as their base algorithm, the interaction between modulation and complex policy gradients remains an area for further refinement.
  • Scalability: While the model handled five distinct image datasets well, future work could explore how this scales to hundreds of modes or truly open-ended task distributions.

Summary updated

BibTeX
@inproceedings{vuorio2019multimodal,
  author = {Risto Vuorio and Shao-Hua Sun and Hexiang Hu and Joseph J. Lim},
  title = {{Multimodal Model-Agnostic Meta-Learning via Task-Aware Modulation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure