Abstract
Model-based reinforcement learning (MBRL) offers a sample-efficient approach to complex control tasks, yet standard algorithms often struggle with physical constraints and stochasticity. This paper presents Chance-Constrained Trajectory Optimization (CCTO), a framework designed to handle non-linear systems with unknown dynamics by incorporating probabilistic safety limits. By reformulating state and action constraints as chance constraints and solving them via a Quadratic Programming (QP) step within an iterative Linear Quadratic Gaussian (iLQG) loop, CCTO achieves superior stability and performance compared to unconstrained methods. Experimental results on Furuta Pendulum and Cart-Pole swing-up tasks demonstrate that CCTO effectively manages noise and prevents the numerical instabilities common in standard trajectory optimization.
Introduction
In the field of model-based reinforcement learning, algorithms such as Differential Dynamic Programming (DDP) and iterative Linear Quadratic Gaussian (iLQG) are favored for their sample efficiency. These methods operate by constructing local linear-quadratic approximations of the system dynamics and cost functions, iteratively refining a trajectory toward an optimal solution. However, these traditional approaches face two critical challenges: greedy bias and constraint blindness.
Greedy bias occurs when the optimizer makes aggressive updates into regions where the local linear model is no longer valid, often leading to divergence. Constraint blindness refers to the inability of standard iLQG to account for physical boundaries, such as motor torque limits or joint ranges. In stochastic environments, where system states are uncertain, these issues are magnified. Without a mechanism to respect safety boundaries under uncertainty, agents often experience "catastrophic" failures or numerical explosions during the learning process.
Methodology
Chance-Constrained Formulation
CCTO addresses these limitations by treating physical limits as probabilistic "chance constraints." Instead of enforcing hard boundaries, which can be mathematically intractable in noisy systems, CCTO requires that the probability of violating a constraint remains below a specified threshold (e.g., $P(\text{torque} > \tau_{max}) < 0.01$).
Tractable Optimization via Boole’s Inequality
Enforcing safety over an entire trajectory (joint chance constraints) is a non-convex and computationally difficult problem. To maintain efficiency, the authors utilize Boole’s inequality to decompose the trajectory-wide safety requirement into a series of simpler, per-timestep constraints. This relaxation allows the optimizer to handle the safety requirements locally while still providing a global safety guarantee.
The Constrained QP Step
While standard iLQG computes an unconstrained control update, CCTO introduces a Quadratic Programming (QP) step. This step adjusts the planned control sequence to ensure it satisfies the decomposed chance constraints given the current estimate of system noise. This process naturally creates a "safety buffer"; as the estimated variance of the system increases, the optimizer proactively stays further away from the constraints to maintain the required safety probability.
Online Learning of Dynamics
CCTO does not require a perfect prior model of the environment. Instead, it fits local linear-Gaussian models on-the-fly using real-world samples. By enforcing constraints, the algorithm prevents the agent from exploring regions where the physics are highly non-linear or poorly understood, which in turn keeps the local models more accurate and the optimization more stable.
Experimental Evaluation
The proposed method was evaluated on two classic non-linear control benchmarks:
- Furuta Pendulum Swing-Up: An under-actuated system involving a horizontal arm rotating a vertical pendulum, subject to both state (angle) and action (torque) constraints.
- Cart-Pole Swing-Up: A task requiring a cart to swing a pole into an upright position while remaining within a restricted track length.
Results and Discussion
Performance and Reliability
In the Furuta Pendulum task, CCTO achieved a mean reward of -0.65, significantly outperforming the -1.1 achieved by standard iLQG. Beyond raw performance, CCTO exhibited much lower variance across experimental trials. While iLQG frequently failed by "banging" against constraints—leading to poor model fitting and divergence—CCTO consistently identified smooth, optimal trajectories.
Numerical Stability
A key insight from the study is that physical constraints act as a form of natural regularization. Standard iLQG often requires extreme mathematical dampening (regularization values as high as $10^{80}$) to prevent numerical crashes in the Cart-Pole task. In contrast, CCTO operated effectively with zero manual regularization, as the chance constraints naturally restricted the optimizer to a "trust region" where the local models remained valid.
Constraint Adherence
Qualitative analysis of the trajectories shows that CCTO maintains a buffer relative to the noise level of the system. This behavior ensures that even under stochastic perturbations, the agent remains within the feasible state and action space, whereas unconstrained methods frequently violate these boundaries, causing the learning process to fail.
Conclusion and Future Work
CCTO provides a robust framework for trajectory optimization in uncertain, non-linear environments. By integrating chance constraints directly into the optimization loop, it avoids the pitfalls of greedy updates and constraint violations.
Future research will focus on integrating feedback gains into the QP optimization to further improve response to unexpected perturbations. Additionally, the authors aim to explore dynamic risk allocation—allowing the agent to strategically take higher risks at specific points in a trajectory—and the incorporation of Maximum Entropy frameworks to enhance exploration while maintaining safety boundaries.
Summary updated