Learning Action Translator for Meta Reinforcement Learning on Sparse-Reward Tasks

Yijie Guo, Qiucheng Wu, Honglak Lee

Introduction

Meta-Reinforcement Learning (meta-RL) aims to develop agents capable of rapid adaptation to novel tasks by leveraging experience from a distribution of training tasks. However, two significant challenges hinder its application: sparse rewards and task imbalance. In sparse-reward environments, agents often fail to encounter any reward signal during exploration, preventing learning. Furthermore, task imbalance occurs when agents master "easy" tasks but fail to adapt to "harder" tasks with differing dynamics.

This paper introduces MCAT (Meta-RL with Context-conditioned Action Translator), a framework designed to "translate" successful strategies across tasks with varying physics. By mapping actions from a source task to equivalent outcomes in a target task, MCAT enables structured exploration and significantly improves sample efficiency in challenging, sparse-reward settings.

Methodology

The core of the MCAT framework is the Action Translator ($H$), which facilitates policy transfer by identifying action equivalence across different task dynamics. The architecture consists of four primary components:

  1. Context Encoder ($C$): This module extracts a latent task context ($z$) from a short history of transitions. It utilizes a contrastive loss to ensure that task embeddings are distinct and representative of specific physical properties.
  2. Forward Dynamics Model ($F$): This model learns the transition dynamics of each task, predicting the next state given the current state, action, and context $z$.
  3. Action Translator ($H$): Acting as a "universal adapter," $H$ calculates the action in a target task that would produce the same next state as a given action in a source task, conditioned on their respective contexts.
  4. Policy Transfer Mechanism: During training, the agent evaluates its current policy against translated versions of successful policies from other tasks. If a translated policy demonstrates superior performance, it is used to guide data collection, effectively allowing the agent to learn from its own successes in related domains.
The MCAT architecture details the interaction between the Context Encoder, Forward Model, and Action Translator to facilitate policy transfer.

Unlike previous approaches requiring complex adversarial losses, MCAT optimizes a simpler objective: maximizing the likelihood of predicted next states under the forward model. This theoretical approach is supported by a proof showing that the value difference between source and transferred policies is upper-bounded by the translation loss.

Experimental Setup

The researchers evaluated MCAT on continuous control benchmarks using the MuJoCo physics engine and the Meta-World manipulation suite. Tasks included variations of HalfCheetah, Ant, and Hopper where physical properties (mass, armature, damping) were modified. To simulate real-world difficulty, the experiments utilized a delayed reward setup, where the agent only receives a cumulative reward signal every $n$ steps (up to 500), creating extreme sparsity.

Key Results

MCAT significantly outperformed state-of-the-art meta-RL baselines, including PEARL, MQL, and HiP-BMDP, particularly in the most challenging sparse-reward scenarios.

Learning curves on the HalfCheetah Armature task demonstrate MCAT's (yellow) superior performance and sample efficiency compared to baselines in sparse-reward settings.

On the "HalfCheetah Armature" task, MCAT achieved an average reward of approximately 2071, whereas the best-performing baseline, Distral, only reached 566. Ablation studies confirmed that the Policy Transfer (PT) mechanism is the primary driver of success; removing it caused performance to collapse in sparse settings, as the agent could no longer "borrow" successful strategies to jumpstart exploration.

Conclusion

MCAT addresses the critical bottleneck of exploration in sparse-reward Meta-RL by focusing on action equivalence rather than simple policy distillation. By translating the "how" of physical actions across tasks, the framework allows the policy to focus on the "what" of the goal. While the current implementation assumes consistent state and action dimensions, future work may extend this to cross-morphism transfer and more diverse reward functions.

Summary updated

BibTeX
@inproceedings{guo2022learning,
  author = {Yijie Guo and Qiucheng Wu and Honglak Lee},
  title = {{Learning Action Translator for Meta Reinforcement Learning on Sparse-Reward Tasks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i6.20635},
}
Figure