Model-based Meta Reinforcement Learning using Graph Structured Surrogate Models

Qi Wang, Herke van HoofarXiv 2021

Abstract

This paper introduces the Graph Structured Surrogate Model (GSSM), a model-based meta-reinforcement learning framework that leverages Graph Neural Networks (GNNs) to identify task dynamics from context transitions. By conditioning an amortized policy on these graph-derived latent variables, GSSM enables instantaneous adaptation to new tasks without test-time gradient updates, achieving state-of-the-art performance on standard benchmarks while significantly improving data efficiency.

Introduction

Reinforcement Learning (RL) has demonstrated remarkable success in complex tasks but continues to face three primary bottlenecks: low data efficiency, poor generalization to varying dynamics (the "Sim2Real" gap), and slow execution speed due to the need for online planning or fine-tuning in new environments. Traditional Model-Based Meta-RL (MBMRL) methods often struggle to balance the speed of adaptation with the accuracy of the learned dynamics model. The authors propose GSSM to address these challenges by treating task identification as a relational graph problem, allowing for rapid and precise environment characterization.

The GSSM Framework

The core innovation of GSSM lies in its approach to task identification. Rather than treating past experiences as a simple "bag of points," GSSM models context transitions—triplets of state, action, and next-state—as nodes in a graph.

The message passing mechanism in GSSM allows for relational reasoning across context points to identify underlying task dynamics.

As shown in the figure above, the model employs Graph Neural Networks (GNNs) to perform message passing across context points. This structure enables the model to "triangulate" the underlying physics of an environment by observing how different transitions relate to one another. The resulting latent variable $z$ provides a compact and accurate representation of the specific task or MDP dynamics.

Training Paradigm and Amortized Policy

To eliminate the test-time bottleneck, GSSM uses an Amortized Policy Optimization strategy. Instead of re-training or fine-tuning a policy for every new task, a single meta-policy $\pi(a|s, z)$ is trained, conditioned on the latent task variable $z$.

The GSSM training paradigm illustrates the interaction between the Dynamics Model (learning $p_\theta$) and the Policy Network (learning $\pi_\varphi$).

This paradigm allows for zero-shot adaptation: as soon as a few context points are collected and $z$ is computed via the GNN, the policy is immediately ready to execute optimal actions. To manage uncertainty during exploration, the framework incorporates Thompson sampling, drawing different latent variables to probe the environment effectively.

Experimental Results

The authors evaluated GSSM on standard benchmarks including Cart-Pole, Acrobot, and MuJoCo environments (Half-Cheetah and Slim-Humanoid). Key findings include:

  • Superior Dynamics Prediction: GSSM achieved lower Mean Square Error (MSE) in transition predictions compared to baselines like L2A and MLSM.
  • High Performance: In the complex Slim-Humanoid task, GSSM reached average rewards of ~1000, significantly outperforming baselines that plateaued between 500 and 700.
  • Sample Efficiency: GSSM required 10x fewer samples than model-free Domain Randomization (DR-PPO) to reach comparable performance levels.
  • Instant Adaptation: While competing MBMRL methods required up to 6.5 seconds of test-time adaptation per task, GSSM achieved 0.0 seconds of additional adaptation time.

Conclusion

GSSM represents a significant step forward in Meta-RL by combining the relational power of GNNs with the speed of amortized policy conditioning. By providing a theoretical regret bound and demonstrating empirical success across diverse robotic simulations, the authors show that accurate dynamics modeling is a viable path toward robust, real-time adaptive agents. Future work may focus on stabilizing Back-Propagation Through Time (BPTT) for policy search and refining the selection of latent bottleneck dimensions.

Summary updated

BibTeX
@misc{wang2021model,
  author = {Qi Wang and Herke van Hoof},
  title = {{Model-based Meta Reinforcement Learning using Graph Structured Surrogate Models}},
  year = {2021},
  eprint = {2102.08291},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.08291},
}
Figure