$\mathcal{RL}_1$-$\mathcal{GP}$: Safe Simultaneous Learning and Control

Aditya Gahlawat, Arun Lakshmanan, Lin Song, Andrew Patterson, Zhuohuan Wu, Naira Hovakimyan, Evangelos A. Theodorou

Abstract

We present $\mathcal{RL}_1$-\mathcal{GP}$, a control framework that enables safe simultaneous learning and control for systems subject to uncertainties. The two main constituents are Riemannian energy $\mathcal{L}_1$ ($\mathcal{RL}_1$) control and Bayesian learning in the form of Gaussian process (GP) regression. The $\mathcal{RL}_1$ controller ensures that control objectives are met while providing safety certificates. Furthermore, $\mathcal{RL}_1$-\mathcal{GP}$ incorporates any available data into a GP model of uncertainties, which improves performance and enables the motion planner to achieve optimality safely. This way, the safe operation of the system is always guaranteed, even during the learning transients. We provide a few illustrative examples for the safe learning and control of planar quadrotor systems in a variety of environments.

Introduction

In robotics, the pursuit of high performance often conflicts with the necessity of safety. Modern planning algorithms, such as Model Predictive Control (MPC) or Reinforcement Learning (RL), typically rely on mathematical models of the system. However, real-world dynamics are often plagued by unmodeled effects like wind gusts or friction.

A critical challenge is the "learning transient" problem: a robot might make catastrophic errors before its model becomes sufficiently accurate. While many existing methods offer asymptotic stability, they often lack transient safety certificates—guarantees that the robot remains safe even while it is still learning. This paper introduces $\mathcal{RL}_1$-\mathcal{GP}$, a framework designed to provide apriori computable safety bounds that hold throughout the entire learning process.

Methodology

The $\mathcal{RL}_1$-\mathcal{GP}$ framework integrates three core components:

  1. Contraction Theory: The system utilizes Control Contraction Metrics (CCM) to design a feedback controller for complex nonlinear systems. This provides a baseline for stability without requiring feedback linearization.
  2. $\mathcal{L}_1$ Adaptive Control: This serves as the "fast adaptation" engine, estimating and canceling uncertainties in real-time. By separating adaptation from the control law via low-pass filtering, it ensures system stability and prevents jittery behavior.
  3. Gaussian Process (GP) Regression: As the robot operates, it collects data to build a statistical model of unmodeled forces.

The framework's novelty lies in using the GP's posterior distribution to compute high-probability uniform error bounds. These bounds are fed back into the $\mathcal{RL}_1$ controller, creating a loop where improved learning leads to tighter safety certificates and more efficient planning.

Key Insights: The Shrinking Safety Tube

A fundamental concept in this work is the decoupling of safety from learning. Safety is maintained as a baseline; if the GP model is inaccurate, the $\mathcal{RL}_1$ controller reverts to a conservative "safety tube." As the GP model incorporates more data, the uncertainty bounds shrink, which in turn shrinks the radius of the safety tube.

Evolution of the safety tube as learning progresses. As more data is collected (from a to c), the uncertainty bounds and the resulting safety tube radius shrink, enabling more optimal and aggressive trajectories.

This "shrinking tube" allows the planner to be more aggressive over time without risking a crash. Furthermore, the framework is planner-agnostic, meaning it can be integrated with various path planners like MPC or BIT* as long as they can respect the tube constraints.

Experimental Results

The framework was evaluated using a 6-DOF planar quadrotor simulation in challenging environments like an "Obstacle Forest" and a "Bug-Trap." Training data was generated using Latin Hypercube Sampling across the state space to ensure diverse data collection.

  • Tube Reduction: In the Obstacle Forest task, the safety tube radius $\rho$ was reduced from 0.6 (no learning) to 0.1 after 100 samples.
  • Efficiency Gains: Without learning, the quadrotor navigated the forest in 27 seconds using a conservative path. With 100 samples, the tighter safety bounds allowed for a more direct route, completing the task in just 14 seconds—a nearly 50% improvement in speed.
  • Optimality: In the Bug-Trap scenario, the learned model enabled the planner to exploit the vehicle's maneuverability, resulting in smoother trajectories compared to initial runs.

Conclusion and Future Directions

$\mathcal{RL}_1$-\mathcal{GP}$ demonstrates that it is possible to maintain strict safety guarantees while simultaneously learning and optimizing performance. Future work will focus on extending the framework to handle noisy sensor data (output feedback) and integrating uncertainty bounds more deeply into the planning phase for active learning. Additionally, scaling GP regression for long-duration missions using sparse or local GP models remains an important computational challenge.

Summary updated

BibTeX
@misc{gahlawat2020mathcal,
  author = {Aditya Gahlawat and Arun Lakshmanan and Lin Song and Andrew Patterson and Zhuohuan Wu and Naira Hovakimyan and Evangelos A. Theodorou},
  title = {{$\textbackslash\{\}mathcal\{RL\}\_1$-$\textbackslash\{\}mathcal\{GP\}$: Safe Simultaneous Learning and Control}},
  year = {2020},
  eprint = {2009.03864},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.03864},
}
Figure