Safe Model-Based Meta-Reinforcement Learning: A Sequential Exploration-Exploitation Framework

Thomas Lew, Apoorva Sharma, James Harrison, Marco PavonearXiv 2020

Introduction

When a robot encounters a highly uncertain environment—such as picking up an unknown payload—attempting its primary task immediately can lead to catastrophic failure. This paper introduces SEELS (Sequential Exploration and Exploitation for Learning Safely), a framework that integrates Bayesian meta-learning with reachability analysis. SEELS allows robots to autonomously and safely "explore" to learn their dynamics, reducing uncertainty until they can safely "exploit" that knowledge to complete their mission.

Problem Formulation: The Safety Catch-22

Imagine a space robot tasked with transporting an uncharacterized piece of cargo. Because the payload's mass and inertia are unknown, the robot's dynamics are highly uncertain. Immediate navigation through a cluttered environment could cause the robot to overshoot and collide with obstacles.

To succeed, the robot must actively explore to learn these unknown properties. However, safe exploration is difficult when the dynamics are unknown. Furthermore, many existing safe control methods only enforce pointwise chance constraints, which do not guarantee safety over an entire continuous trajectory. SEELS addresses this by guaranteeing trajectory-wise safety for nonlinear systems that are initially too uncertain to reach their objective safely.

The SEELS Framework

The SEELS algorithm is built upon three technical pillars:

  1. Last-Layer Meta-Learning (ALPACA): Rather than training a neural network online, SEELS utilizes offline meta-learning on a distribution of possible system dynamics. During online operation, the deep layers are frozen, and only the last layer is adapted via Bayesian linear regression. This approach combines the expressiveness of deep learning with the mathematically rigorous uncertainty bounds of linear models.
  2. Trajectory-wise Reachability Analysis: Using calibrated uncertainty from the meta-learned model, SEELS computes confidence sets for model parameters. These are translated into physical "reachable tubes" in the state space using a sampling-based method (RANDUP), mapping out all potential states the robot might occupy.
  3. Sequential Planning:
  4. Exploit: The algorithm checks if a safe reachable tube exists from the current state to the goal. If so, it proceeds with the task.
  5. Explore: If the goal is unreachable due to high uncertainty, the robot plans a short, safe information-gathering trajectory. This trajectory is constrained to return to a known "safe invariant set" ($X_0$) while maximizing information gain about the dynamics.
Overview of the SEELS framework, illustrating the transition from offline meta-training to online safe exploration and exploitation.

Key Insights and Innovations

  • The "Last-Layer" Advantage: Restricting online adaptation to the last layer allows for mathematical proofs that confidence sets contain the true dynamics with high probability, a feat difficult to achieve with standard deep RL.
  • Recursive Feasibility: By requiring exploration trajectories to start and end in a known safe zone ($X_0$), SEELS ensures the robot never enters an unrecoverable state.
  • Optimized Offline Training: The authors found that regularizing offline training to encourage orthogonal features and penalizing confidence bound size drastically reduces online conservatism, enabling faster task completion.

Experimental Results

The framework was validated through extensive simulation and hardware deployment:

  • Simulation Success: In 250 randomized trials of a 6D free-flyer navigating obstacles, SEELS achieved a >93% success rate, aligning with theoretical safety guarantees.
  • Hardware Validation: SEELS was deployed on a 16kg planar spacecraft free-flyer robot. The robot successfully performed exploration bursts to infer payload inertia and table tilt before safely navigating a physical obstacle field.
  • Baseline Comparison: Baselines that ignored parameter uncertainty consistently failed, demonstrating that active uncertainty reduction is essential for safety in these scenarios.
Visualization of the SEELS algorithm in action, showing the evolution of reachable tubes (blue) as the robot navigates toward the goal (X_goal) while avoiding obstacles (X_obs).

Conclusion

SEELS provides a robust methodology for bridging high-performance learning with safety-critical control. While currently assuming time-invariant dynamics and requiring a known safe starting zone, it represents a significant advancement in autonomous systems capable of handling novel, uncertain tasks. Future work will focus on continual meta-learning for time-varying systems and more integrated explore-exploit planning strategies.

Summary updated

Abstract

Safe deployment of autonomous robots in diverse scenarios requires agents that are capable of efficiently adapting to new environments while satisfying constraints. In this work, we propose a practical and theoretically-justified approach to maintaining safety in the presence of dynamics uncertainty. Our approach leverages Bayesian meta-learning with last-layer adaptation. The expressiveness of neural-network features trained offline, paired with efficient last-layer online adaptation, enables the derivation of tight confidence sets which contract around the true dynamics as the model adapts online. We exploit these confidence sets to plan trajectories that guarantee the safety of the system. Our approach handles problems with high dynamics uncertainty, where reaching the goal safely is potentially initially infeasible, by first \textit{exploring} to gather data and reduce uncertainty, before autonomously \textit{exploiting} the acquired information to safely perform the task. Under reasonable assumptions, we prove that our framework guarantees the high-probability satisfaction of all constraints at all times jointly, i.e. over the total task duration. This theoretical analysis also motivates two regularizers of last-layer meta-learning models that improve online adaptation capabilities as well as performance by reducing the size of the confidence sets. We extensively demonstrate our approach in simulation and on hardware.
BibTeX
@misc{lew2020safe,
  author = {Thomas Lew and Apoorva Sharma and James Harrison and Marco Pavone},
  title = {{Safe Model-Based Meta-Reinforcement Learning: A Sequential Exploration-Exploitation Framework}},
  year = {2020},
  eprint = {2008.11700},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2008.11700},
}
Figure