TL;DR
AMAGO-2 tackles the "multi-task barrier" in meta-reinforcement learning (meta-RL), enabling a single Transformer agent to generalize across diverse, unlabeled tasks with wildly different reward scales. By converting both actor and critic objectives into scale-resistant classification terms, AMAGO-2 achieves state-of-the-art online multi-task adaptation without requiring explicit task labels or manual reward normalization.
What Problem Does This Paper Address?
Meta-RL agents excel at adapting to minor variations of a single problem (e.g., navigating different layouts of the same game). However, when forced to learn across a heterogeneous mix of entirely different tasks (e.g., playing multiple distinct video games), they hit a "multi-task barrier" and fail to converge.
The authors argue that this failure isn't because the agent can't infer what task it's performing. Instead, it is a fundamental optimization bottleneck: different tasks have vastly different reward scales. Standard reinforcement learning objectives (like Mean Squared Error for value functions) cause the training gradient to be dominated by tasks with large absolute returns, leaving other tasks neglected. While traditional Multi-Task RL (MTRL) fixes this using task labels or per-task normalization layers, meta-RL cannot rely on task labels if it wants to preserve its ultimate goal: zero-shot adaptation to completely unseen tasks at test time.
Methods
AMAGO-2 builds on a Transformer-based actor-critic architecture that processes trajectory sequences to perform in-context task inference. To break the multi-task barrier without using task labels, the authors introduce two scale-resistant modifications to the standard RL loss functions:
- Scale-Resistant Critic: Instead of standard scalar value regression, AMAGO-2 applies a
symlogtransformation to the temporal difference (TD) targets and maps them to a discrete set of bins using two-hot encoding. This converts value estimation into a multi-label classification problem. As a result, a relative prediction error yields a similar loss magnitude whether the absolute return of the task is 10 or 10,000 (see Figure 3). - Scale-Resistant Actor: Standard advantage-weighted regression scales policy updates by the absolute magnitude of the reward advantage. AMAGO-2 replaces this with a binary filter (filtered imitation learning). The actor simply performs imitation learning on actions that have a positive estimated advantage ($A > 0$), completely decoupling policy updates from the return scale.
Datasets
The authors evaluated AMAGO-2 across five diverse, large-scale benchmarks representing combinations of meta-learning, multi-task optimization, and long-term memory:
- Meta-World ML45: 45 robotic manipulation tasks used for training, with 5 held-out tasks for testing generalization.
- Multi-Task POPGym: A combination of 27 partially observable memory games.
- Multi-Game Procgen: Procedurally generated video games evaluated in both easy and memory-hard modes.
- Multi-Game Atari: 10 classic games evaluated simultaneously using raw, unclipped rewards.
- Multi-Task BabyAI: A hybrid meta-RL gridworld suite featuring 68 unique task configurations with language instructions.
Key Insights and Ideas
- Optimization over Inference: The primary bottleneck preventing meta-RL from scaling to multi-game generalists is loss imbalance caused by return scales, not the difficulty of inferring task identities.
- Classification > Regression for Multi-Task RL: Turning value regression into a classification problem provides an elegant, automatic form of scale invariance. It forces the network to weight relative prediction errors equally across all tasks.
- Online Filtered Imitation: Filtered imitation learning (like CRR), which is traditionally reserved for offline RL to handle out-of-distribution data, acts as an excellent defense against multi-task gradient dominance when deployed online.
Key Results
- Meta-World ML45: AMAGO-2 more than doubled the success rate of the original $RL^2$ baseline and matched the performance of heavily optimized value-prediction methods like MuZero within a 50M timestep budget (see Figure 4).
- Robustness to Extreme Rescaling: In a controlled Procgen experiment, the authors artificially multiplied the rewards of one game by 100 and divided another by 10. Standard actor-critics completely failed on the rescaled distribution, whereas AMAGO-2's performance remained entirely unaffected.
- Unclipped Atari: Training a single shared Transformer on 10 Atari games simultaneously without reward clipping typically breaks standard RL. AMAGO-2 achieved dramatic performance improvements in 8 out of 10 games compared to scale-dependent baselines.
Limitations and Future Work
- Loss of Optimistic Exploration: By shifting the actor to a filtered imitation learning objective, the agent loses the ability to extrapolate optimistically to unseen actions. This trade-off stabilizes multi-task learning but may hinder performance in environments requiring deep, strategic exploration.
- Hyperparameter Tuning of Bins: The resolution and number of discrete bins ($B$) used for the critic classification remain an open hyperparameter choice. While a wide default works well, optimal bin configurations for individual domains could further improve sample efficiency.
- Need for Greater Task Diversity: In benchmarks like BabyAI, the authors noted that only a small subset of tasks truly required or benefited from long-context adaptation, highlighting the need for even more complex, open-ended environments (such as XLand Minigrid) to push the boundaries of generalist agents.
Summary updated