Abstract
Meta-Reinforcement Learning (Meta-RL) aims to develop agents capable of rapid in-context adaptation, yet progress has been hindered by the "multi-task barrier." Traditional regression-based objectives often fail when training across diverse environments with disparate reward scales. AMAGO-2 addresses this by introducing scale-resistant classification-style modules for both the actor and the critic. By leveraging a Transformer-based architecture and removing the need for explicit task labels, AMAGO-2 demonstrates superior performance across a wide range of benchmarks, including robotic manipulation, memory-intensive tasks, and classic arcade games.
Introduction
Meta-Reinforcement Learning (Meta-RL) is designed to create agents that can adapt to new environments "in-context," mirroring the way Large Language Models (LLMs) adapt to new prompts. Despite this potential, much of Meta-RL research remains confined to narrow domains—typically minor variations of a single robotic skill or game.
A primary bottleneck is multi-task optimization. When training a single agent on multiple games, return scales are often uneven. For instance, if Game A offers a maximum reward of 1 while Game B offers 10,000, the training loss becomes dominated by Game B. This forces the agent to ignore Game A entirely. While traditional methods use task labels to normalize rewards, this reliance limits generalization to unknown tasks where such labels are unavailable. AMAGO-2 proposes a paradigm shift: replacing standard regression objectives with scale-resistant classification terms to enable robust multi-task learning.
Methodology
AMAGO-2 builds upon the AMAGO framework—a Transformer-based, off-policy actor-critic—and introduces two fundamental modifications to handle reward scaling:
1. Scale-Resistant Critic (Two-Hot Classification)
Rather than using Mean Squared Error (MSE) to predict a scalar value, the AMAGO-2 critic predicts a probability distribution over discrete "bins" of possible returns. To manage a wide range of potential values, the authors utilize a symlog transform to squash returns into a manageable space. They then apply two-hot encoding to map targets to adjacent bins. This approach ensures that a relative error (e.g., 10%) in a high-reward task produces a loss magnitude similar to that of a low-reward task, preventing any single task from dominating the gradient updates.
2. Scale-Resistant Actor (Filtered Imitation)
Standard policy updates typically scale gradients by the magnitude of the "advantage" (the difference between the action's value and the expected value). In AMAGO-2, this is replaced by a binary filter: if an action's value exceeds the current policy's average value, the agent performs imitation learning on that action. This "filtered imitation" makes the policy update independent of the absolute scale of Q-values, further stabilizing multi-task training.
3. Implicit Task Inference
AMAGO-2 utilizes a long-context Transformer to process the history of observations, actions, and rewards. This allows the agent to "infer" the current task and the optimal strategy purely from experience, eliminating the need for manual task IDs or one-hot labels.
Experimental Evaluation
The authors evaluated AMAGO-2 across five diverse benchmarks:
- Meta-World ML45: 45 distinct robotic manipulation tasks.
- Multi-Task POPGym: 27 memory-intensive POMDP tasks.
- Multi-Game Procgen: 16 procedurally generated games in both Easy and Memory-Hard modes.
- Multi-Game Atari: 10 classic games trained simultaneously using raw, unclipped rewards.
- Multi-Task BabyAI: 68 gridworld tasks involving language instructions.
Key Results and Insights
Overcoming Reward Scaling
In the Multi-Game Atari suite, AMAGO-2 showed dramatic improvements in 8 out of 10 games compared to standard regression. Crucially, it successfully handled games where returns differed by orders of magnitude without requiring the common "reward clipping" trick. Controlled experiments on Procgen further confirmed this robustness; while standard agents failed when rewards were artificially scaled, AMAGO-2 maintained near-full performance across all tasks.
Performance in Complex Environments
On Meta-World ML45, AMAGO-2 more than doubled the success rate of the RL² baseline. It matched the performance of more complex, specialized algorithms like MuZero while maintaining a simpler, more general architecture. In memory-intensive environments like BabyAI and Procgen Memory-Hard, the agent demonstrated clear "learning to learn" behavior, showing significant performance gains on the second attempt at a new level compared to the first.
Classification vs. Regression
A central insight of this work is that RL’s traditional reliance on regression is a major hurdle in multi-task settings. Classification terms naturally decouple optimization from reward scale. By adopting technical details from supervised sequence modeling—such as cross-entropy losses—RL can maintain a self-improvement loop while gaining the stability required for generalist agents.
Conclusion and Future Work
AMAGO-2 demonstrates that explicit task labels are often a "crutch" used to mask optimization failures. By fixing the underlying optimization via scale-resistant objectives, AMAGO-2 moves closer to the goal of pure meta-RL: learning to adapt from experience alone.
However, challenges remain. While AMAGO-2 is more efficient than its predecessors, it still requires significant environment interaction to reach peak performance. Future work will likely focus on increasing task diversity—utilizing even larger training sets like XLand-Minigrid—and exploring the performance of scale-resistant updates in purely on-policy or low-data regimes.
Summary updated