TL;DR
Meta-reinforcement learning (meta-RL) often fails on sparse-reward tasks because good exploration strategies found in one task aren't easily shared with others due to varying environment dynamics. This paper introduces MCAT, a framework that learns an action translator to map successful policies from one task to another, significantly boosting sample efficiency and performance. By theoretically bounding the value difference of transferred policies, the authors provide a principled way to leverage cross-task experiences for deeper exploration.
What Problem Does This Paper Address?
Meta-RL aims to learn a shared structure across a distribution of training tasks so an agent can quickly adapt to unseen test tasks. However, when rewards are sparse—meaning the agent rarely receives positive feedback—exploration becomes a massive bottleneck.
To make matters worse, tasks often vary in difficulty. A meta-RL agent might successfully solve an "easy" task, but the gradient signals from that task can dominate the shared policy, preventing the agent from learning how to adapt to harder tasks. Ideally, we want the agent to use its success in one task to bootstrap exploration in another. But if the tasks have different physics (dynamics), a successful sequence of actions in the first task won't work in the second.
This paper addresses how to effectively transfer a successful policy from a source task to a target task with different dynamics under sparse-reward constraints.
Methods
The authors introduce MCAT (Meta-RL with Context-conditioned Action Translator). Instead of forcing a single policy to fit all tasks simultaneously, MCAT learns to translate actions across tasks.
The architecture consists of three main phases trained alternatively:
- Context & Forward Dynamics Learning: A context encoder $C$ extracts a latent task embedding ($z$) from past transitions. A forward dynamics model $F$ predicts future states based on this context. A contrastive loss ($L_{cont}$) ensures that transitions from the same task cluster together in the embedding space, while different tasks are pushed apart.
- Action Translation ($H$): The core novelty is the action translator network, $H$. Given a state, a source action, and the context embeddings of both the source and target tasks, $H$ outputs a translated action for the target task. The objective function ($L_{trans}$) minimizes the difference between the predicted next state in the target task and the actual next state observed in the source task.
- Policy Transfer & Meta-Training: During data collection, if the agent performs better on task A than task B, the action translator maps task A's policy onto task B. If this transferred policy outperforms the current target policy, the agent uses it to collect high-quality exploration data, which is then optimized using TD3 and Self-Imitation Learning (SIL).
Datasets
The method was evaluated on two primary benchmarks modified to have delayed (sparse) rewards:
- MuJoCo Environments (Hopper, HalfCheetah, Ant): The authors modified physics parameters to create task distributions. For Hopper, body part sizes were varied; for HalfCheetah, armature or link masses were altered; for Ant, leg damping was scaled or specific legs were crippled. Rewards were accumulated and only delivered every 100 to 500 steps.
- Meta-World Benchmark: Object manipulation tasks (
push-v2,coffee-push-v2,sweep-into-goal-v2) where the agent manipulates different objects (cylinders, mugs, cubes) with varying physics. The reward is strictly binary (1.0 if the object reaches the goal, 0 otherwise).
Key Insights and Ideas
- Action Equivalence over State Equivalence: Prior transfer learning methods often try to map complex state spaces across domains, which is mathematically restrictive. MCAT focuses on action equivalence—finding the action in the target domain that mimics the state-transition effect of the action in the source domain.
- Theoretical Bounding of Policy Value: The authors provide a mathematical proof showing that the value difference between a source policy and its transferred counterpart is upper-bounded by the total-variation distance of their next-state distributions. Minimizing their target loss function directly minimizes this bound.
- Cross-Pollination for Exploration: In sparse-reward settings, discovering a reward is a lottery. MCAT ensures that when one task "wins the lottery," the successful behavior is immediately translated to accelerate exploration across all other tasks.
Key Results
MCAT demonstrated substantial improvements over state-of-the-art meta-RL baselines (MQL, PEARL, Distral, and HiP-BMDP) in sample efficiency and final performance.
- Performance in Sparse Environments: On the challenging
HalfCheetah Armaturetask with a reward delay of 500 steps, MCAT achieved a test reward of 2071.5, while standard baselines like PEARL (-18.8) and MQL (-77.9) failed to learn entirely. - Ablation Verification: Removing the Policy Transfer (PT) mechanism (
MCAT w/o PT) caused performance to plummet on tasks likeHalfCheetah Mass(dropping from 1771.1 to -364.3), proving that cross-task action translation is vital for balancing multi-task learning.
Limitations and Future Work
- Shared State/Action Spaces: The primary formulation assumes tasks share identical state and action dimensions, only differing in dynamics. Although the appendix outlines an extension for differing spaces (e.g., transferring from a 2-leg to a 3-leg robot), it requires introducing an additional state translator, increasing complexity.
- Alternating Training Complexity: Because the context encoder, forward model, action translator, and RL agent are trained alternatively rather than end-to-end, hyperparameter tuning and training stability require careful management.
Summary updated