Robust Fast Adaptation from Adversarially Explicit Task Distribution Generation

Cheems Wang, Yiqin Lv, Yixiu Mao, Yun Qu, Yi Xu, Xiangyang Ji · DOI

Introduction

Meta-learning, or "learning to learn," aims to develop models capable of rapid adaptation to new tasks using minimal data. A significant challenge in current meta-learning frameworks is the reliance on hand-crafted, often uniform, task distributions during training. In real-world applications, such as autonomous driving or robotics, models frequently encounter "task distribution shifts"—scenarios where the test-time tasks differ significantly from the average training conditions. Standard meta-learners often fail in these high-risk, "worst-case" scenarios. This paper addresses this gap by proposing a framework that explicitly generates and trains on challenging task distributions.

Methodology: AR-MAML

The authors introduce AR-MAML (Adversarially Robust Model-Agnostic Meta-Learning), which frames meta-learning as a Stackelberg game between two agents: a Meta-Learner and a Distribution Adversary.

The Stackelberg Game and Normalizing Flows

In this leader-follower setup, the Meta-Learner (Leader) seeks to minimize adaptation error across tasks, while the Distribution Adversary (Follower) attempts to shift the task distribution to maximize this error. To make the task distribution explicit and learnable, the framework utilizes Normalizing Flows (NF).

Transformation of a uniform initial task distribution into a complex, explicit generated distribution using Normalizing Flows.

As shown in the figure above, Normalizing Flows allow the system to warp a simple base distribution (like a uniform or Gaussian distribution) into a complex, multi-modal distribution that identifies "hard" regions of the task space. Because NFs provide exact log-likelihoods, the adversarial updates remain mathematically tractable.

The Distribution Adversary

The adversary's role is to discover task structures that are inherently difficult for the learner. For example, in sinusoid regression, the adversary might learn to concentrate probability mass on tasks with high amplitudes, which are typically harder to predict from few samples.

The Distribution Adversary uses Normalizing Flows to map a simple base distribution to a complex target task distribution.

To ensure the adversary does not create impossible tasks or suffer from mode collapse, the authors implement a Lagrange multiplier ($\lambda$) to constrain the shift, acting as a "trust region" for task generation. Optimization is performed using Stochastic Alternating Gradient Descent Ascent (GDA) to reach a local minimax equilibrium.

Experimental Evaluation

The framework was evaluated on several benchmarks, including sinusoid regression, system identification (Acrobot and Pendulum), and meta-reinforcement learning (Point Robot and Ant-Pos navigation).

Key Results

  • Enhanced Robustness: AR-MAML consistently outperformed state-of-the-art baselines like TR-MAML and DR-MAML in terms of Conditional Value at Risk (CVaR). In sinusoid benchmarks, AR-MAML reduced the adversarial CVaR to 0.671, compared to 0.883 for standard MAML.
  • Generalization and Noise Tolerance: Interestingly, training on adversarial distributions did not degrade performance on the original task distribution. In many cases, it improved it, suggesting that focusing on "hard" tasks helps the model learn more fundamental, robust features. The model also showed superior resilience to noise in the few-shot support data.

Discussion and Future Work

AR-MAML provides a significant step toward interpretable and robust meta-learning by making the "hardness" of tasks explicit and visualizable. However, the method currently relies on known "task identifiers" (e.g., physical parameters like mass or length). Future research could explore extending this to high-dimensional latent spaces where task identifiers are not explicitly provided, such as in complex image classification. Additionally, addressing the computational overhead of training a generative model alongside the meta-learner remains an area for optimization.

Summary updated

BibTeX
@inproceedings{wang2024robust,
  author = {Cheems Wang and Yiqin Lv and Yixiu Mao and Yun Qu and Yi Xu and Xiangyang Ji},
  title = {{Robust Fast Adaptation from Adversarially Explicit Task Distribution Generation}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2024},
  doi = {10.1145/3690624.3709337},
}
Figure