TL;DR
This paper introduces SageDynX, a novel framework for safely maximizing rewards in autonomous systems with completely unknown dynamics. Operating online in a non-episodic setting (without requiring system resets), it guarantees provably safe exploration throughout the learning process and achieves near-optimal control performance in finite time.
What Problem Does This Paper Address?
Deploying robots and autonomous agents in the real world requires a delicate balance between safety and performance. If the system's underlying physics (dynamics) are unknown, the agent risks taking catastrophic actions during exploration.
While model-based reinforcement learning (RL) excels at finding optimal policies, it typically ignores safety during the training phase or relies on resetting the agent back to a safe initial state when things go wrong. In the real world—such as autonomous car racing or drone navigation—resets are often impossible or prohibitively expensive. The agent must learn online, from a single continuous trajectory, without ever violating safety constraints.
Methods
The authors tackle this challenge by combining Gaussian Process (GP) regression with a clever interplay of pessimism and optimism within a Model Predictive Control (MPC) framework:
- Pessimism for Safety: The algorithm maintains a confidence set of plausible dynamics models based on collected data. When evaluating safety, it acts pessimistically, ensuring that the chosen control actions are safe under all plausible dynamics models within the confidence set.
- Optimism for Exploration: To gather informative data, the framework optimistically plans trajectories toward states with high model uncertainty.
- Task-Oriented Learning (SageDynX): Rather than trying to learn the dynamics perfectly everywhere, SageDynX focuses exploration strictly on regions necessary to maximize rewards. It continuously replans online, directly from its current state, maintaining a guaranteed safe return path to a known safe set without actually needing to execute the return.
Datasets
The method was evaluated on three simulated physical benchmarks where safety is critical and accurate modeling is difficult:
- Inverted Pendulum: A classic control problem constrained by a physical wall and angular velocity limits.
- Drone Navigation: A 6-dimensional nonlinear drone model navigating under aerodynamic disturbances while tracking a heart-shaped trajectory.
- Car Racing: A 4-dimensional nonlinear kinematic bicycle model tasked with staying within the boundaries of an elliptical race track.
Key Insights and Ideas
- The "Win-Win" of Optimistic Exploration: The core philosophy is that no optimistic plan is bad. If the agent executes an optimistic plan and the true system deviates from the prediction, the agent gains valuable data about the model discrepancy. If the system follows the plan, the agent successfully reaches an informative state. Either way, the model uncertainty shrinks.
- Exploration in Policy Space: Instead of exploring arbitrary states, the paper introduces exploration within the space of safe policies. This allows the agent to safely expand its reachable domain.
- Tolerating the Unreachable: Due to model uncertainty, an agent might not precisely reach a targeted informative state. The authors prove that as long as the trajectory deviates because of model errors, the agent still collects highly informative measurements (illustrated in the tolerance scheme below).
Key Results
- Order-of-Magnitude Regret Reduction: In both drone navigation and car racing, SageDynX achieved an order-of-magnitude lower cumulative regret compared to standard baselines (such as a "no-learning" baseline or a "two-stage" explore-then-exploit approach).
- Zero Safety Violations: Across all experiments and random seeds, the algorithm successfully satisfied all state and input constraints throughout the entire online learning process.
- Real-Time Feasible: By utilizing efficient sampling-based approximations and standard optimization tools (like
acadosandCasADi), the control inputs were computed rapidly (e.g., ~32 ms per control sequence for the car racing environment), making it viable for real-time deployment.
Limitations and Future Work
While powerful, the framework has two main limitations acknowledged by the authors:
- Conservative Noise Bounds: The safety guarantees rely on a robust, worst-case bound on the system noise ($\eta(k) \in W$). In highly stochastic environments, this can lead to overly conservative behavior. The authors suggest exploring weaker, probabilistic safety filters in future work.
- Finite-Horizon Performance: The theoretical performance bounds are currently restricted to a finite planning horizon ($H$). Extending these guarantees to infinite-horizon performance will require integrating more advanced control theory concepts, such as stochastic turnpikes.
Summary updated