TL;DR
This paper introduces SAGE-DynX, a framework for safely learning unknown nonlinear dynamics in an online, non-episodic setting without environment resets. By coupling pessimistic safety constraints with optimistic planning toward informative states, it guarantees high-probability safety and achieves provably near-optimal reward performance in finite time.
What Problem Does This Paper Address?
Reinforcement learning (RL) and model predictive control (MPC) usually assume either known system dynamics or the ability to safely explore via trial-and-error resets. However, real-world systems—such as autonomous racecars or drones—cannot simply "reset" after crashing into a wall.
Existing safe exploration methods face key hurdles:
- Constrained MDPs (CMDPs) typically enforce safety only in expectation or for the final converged policy, risking violations during learning.
- Safe Bayesian Optimization usually requires resetting to a safe initial state between trials.
- Safe MPC methods without resets often focus on unknown constraint boundaries rather than unknown dynamics, or they rely on passive heuristics that offer no guarantee of sufficient exploration.
The core challenge is: How can an autonomous agent explore and control an unknown, safety-critical system continuously in a single, non-episodic trajectory while guaranteeing both zero safety violations and near-optimal performance?
Methods
The authors model unknown dynamics using Gaussian Processes (GPs) within a Reproducing Kernel Hilbert Space (RKHS), providing well-calibrated confidence sets $\mathcal{F}_n$ that contain the true dynamics with high probability ($1 - \delta$).
The paper develops two algorithms based on this representation:
- Guaranteed Dynamics Exploration (Algorithm 1):
- Uses a pessimistic policy set $\Pi_n^p$ ensuring that, for every plausible dynamics function in $\mathcal{F}_n$, the system remains safe and can return to an invariant safe set $\mathcal{X}_n$.
- Simultaneously plans optimistically to reach states where model uncertainty $w_n(x, u) \ge \epsilon_d$.
- Crucial mechanism: If the actual system deviates from the optimistic prediction, the discrepancy provides informative data; if it follows it, the system reaches the intended informative state. In both cases, the agent collects informative measurements without risking safety.
- SAGE-DynX (Safe Guaranteed Dynamics Exploration with Intrinsic Exploration, Algorithm 2):
- Targets reward maximization rather than exhaustive exploration.
- Solves an optimistic problem (to find maximum potential performance) and a pessimistic problem (to lower-bound performance under uncertainty).
- Explores only in task-relevant directions until the gap between pessimistic and optimistic bounds falls below a user-specified threshold $\epsilon$.
- Replans online without physically backtracking to the safe set—only the ability to safely return is maintained.
- Implemented practically via sample-based Sequential Quadratic Programming (SQP) using
acados,CasADi, andGPyTorch.
Datasets
The paper evaluates control tasks in continuous simulation benchmarks rather than static datasets:
- Inverted Pendulum: Nonlinear pendulum balancing task with an angular velocity constraint and a physical wall constraint.
- 6D Quadrotor Drone Navigation: 6-state, 2-input drone tracking a time-varying heart-shaped reference trajectory under aerodynamic disturbances and box constraints.
- Autonomous Car Racing: 4-state kinematic bicycle model learning slip angles and drag online while tracking an elliptical center line within tight track boundary corridors.
Key Insights and Ideas
- "Pessimism for safety, optimism for information": The fundamental tension in safe exploration is resolved cleanly. Safety constraints consider the worst-case dynamics in the uncertainty set, while exploration objectives optimistically target regions of high information gain. You win either way: mismatch gives information, agreement reaches the target.
- Guaranteed exploration without resets: Instead of forcing episodic resets, the algorithm maintains recursive returnability to a known robust positive invariant safe set ($\mathcal{X}_n$). The agent continues expanding its explored territory online without actually retreating unless necessary.
- Task-directed exploration: Exhaustively learning dynamics everywhere is sample-inefficient and unnecessary. SAGE-DynX stops exploring as soon as the pessimistic performance bound approaches the optimistic ceiling, ensuring near-optimal behavior with minimal exploration.
Key Results
- Theoretical Guarantees: The authors prove finite-time termination ($n \le n^*$) where the learned policy set covers the connected true $\epsilon$-safe policy set, certifying that SAGE-DynX returns a policy within $K\epsilon$ of the clairvoyant optimum with probability $\ge 1 - \delta$.
- Empirical Regret: In both car racing and drone tracking, SAGE-DynX achieved an order-of-magnitude reduction in cumulative regret compared to:
- No-learning baseline: Fails to track accurately due to high conservatism under model uncertainty.
- Two-stage baseline (explore first, exploit later): Incurs heavy initial regret from random, task-agnostic exploration.
- Zero Constraint Violations: Zero safety violations were observed during online learning runs across all seeds.
- Real-Time Execution: In the car racing environment, computing a control sequence took $32.0 \pm 7.7$ ms on an Intel i7-11800H CPU with an RTX A2000 GPU, demonstrating real-time MPC feasibility.
Limitations and Future Work
- Conservative Noise Handling: The theory relies on bounded, worst-case disturbances ($\eta(k) \in \mathcal{W}$), which can lead to over-conservative trajectories. The authors suggest moving to chance-constrained or stochastic MPC formulations.
- Finite Planning Horizon: Performance guarantees apply strictly over a finite prediction horizon $H$. Extending guarantees to infinite-horizon cumulative rewards will require turnpike theory and dissipativity notions.
- Implementation Approximations: While theory analyzes continuous RKHS confidence sets and affine feedback policies, the practical implementation uses a finite number of GP trajectory samples and open-loop sequences.
Summary updated