MELD: Meta-Reinforcement Learning from Images via Latent State Models

Zihao Zhao, Anusha Nagabandi, Kate Rakelly, Chelsea Finn, Sergey Levine

Abstract

Meta-reinforcement learning algorithms can enable autonomous agents, such as robots, to quickly acquire new behaviors by leveraging prior experience in a set of related training tasks. However, applying these methods to real-world robotics is challenging due to the high dimensionality of sensory input and the extreme sample inefficiency of learning from pixels. MELD (Meta-Reinforcement Learning from Images via Latent State Models) addresses these issues by integrating task inference into a latent dynamics model, allowing for efficient learning and rapid adaptation.

Introduction

Meta-Reinforcement Learning (meta-RL) aims to create agents that can "learn to learn," adapting to novel tasks with minimal trials. While promising, real-world application is hindered by the representation bottleneck. Standard RL is data-intensive; adding high-dimensional image data and the requirement to meta-learn across tasks often makes the data requirements prohibitive for physical robots. Most existing algorithms either rely on low-dimensional state information or require millions of frames in simulation, which is impractical for robots learning from on-board cameras.

Methodology

MELD bridges the gap between unsupervised representation learning and meta-learning by treating state estimation and task inference as a unified inference problem within a Partially Observed Markov Decision Process (POMDP).

  • Latent State Models: MELD utilizes a sequential Variational Autoencoder (VAE) to learn a compact latent representation ($z_t$) from a history of images, actions, and rewards.
  • Unified Inference: By including rewards as input to the latent model, the system naturally performs task inference. The robot’s policy is conditioned on this latent "belief," enabling it to adapt its behavior as it gathers information.
  • Algorithmic Backbone: The framework builds on Stochastic Latent Actor-Critic (SLAC), extending it to the meta-learning regime with minimal structural changes to maintain efficiency.

Experimental Setup

The researchers evaluated MELD on several benchmarks, including simulated MuJoCo environments (Cheetah-vel, Reacher, Peg-insertion) and a custom "Button-pressing" exploration task. Crucially, the system was tested on real-world hardware:

  • WidowX (5-DoF): Ethernet cable insertion into a router with varying port locations.
  • Sawyer (7-DoF): Precise peg-in-hole insertion.
A sequence of trial steps in the real-world insertion task where the agent receives no reward during initial exploration.

Results and Discussion

MELD demonstrated significant improvements over prior meta-RL baselines like PEARL and $RL^2$ in image-based tasks.

  • Timestep-Level Adaptation: Unlike methods that update task beliefs once per episode, MELD updates its belief at every timestep. This allows for "intra-episode" adaptation, which is vital for tasks that might change dynamically.
  • Sample Efficiency: By leveraging the VAE reconstruction objective, MELD learns useful visual features much faster than algorithms relying solely on scalar rewards.
  • Real-World Success: MELD achieved a 90% success rate on the Ethernet insertion task after only 8 hours of training. This marks a significant milestone: the first time a meta-RL algorithm has been trained entirely from images on a physical robotic platform.
Successful completion of the Ethernet insertion task with a positive reward after adaptation.

Conclusion

While MELD represents a major step forward, challenges remain in generalizing across vastly different manipulation types and reducing reliance on shaped rewards. Future work may involve incorporating human demonstrations or natural language to further scale the system's capabilities. Nonetheless, MELD provides a robust framework for bringing the power of meta-RL to real-world, vision-based robotic tasks.

Summary updated

BibTeX
@inproceedings{zhao2020meld,
  author = {Zihao Zhao and Anusha Nagabandi and Kate Rakelly and Chelsea Finn and Sergey Levine},
  title = {{MELD: Meta-Reinforcement Learning from Images via Latent State Models}},
  booktitle = {Conference on Robot Learning},
  year = {2020},
  url = {https://openreview.net/forum?id=Slv5b3s8_t},
}
Figure