Model-Based Actor-Critic with Chance Constraint for Stochastic System

Baiyu Peng, Yao Mu, Yang Guan, Shengbo Eben Li, Yuming Yin, Jianyu Chen

TL;DR

This paper introduces Chance Constrained Actor-Critic (CCAC), a model-based reinforcement learning algorithm designed for safety-critical stochastic systems. By directly optimizing the original chance constraints using exterior point methods and leveraging dynamic model gradients, CCAC achieves a non-conservative safety policy with 5x faster convergence than model-free methods and 100x higher online efficiency than traditional control techniques like Stochastic Model Predictive Control (SMPC).

What Problem Does This Paper Address?

In real-world applications like autonomous driving or robotics, "safety" isn't just about maximizing rewards; it’s about strictly adhering to constraints (e.g., "don't hit the car in front"). In stochastic systems, these are often expressed as chance constraints—ensuring the probability of failure stays below a specific threshold (e.g., 1%).

Existing Safe RL methods suffer from two main issues:

  1. Conservatism: Many methods optimize a "lower bound" of safety (using tools like Boole’s inequality). This often results in an agent that is too cautious, sacrificing performance to achieve a 99.9% safety rate when only 90% was required.
  2. Inefficiency: Model-free safe RL is notoriously slow to converge due to high variance. Conversely, traditional engineering methods like SMPC are computationally expensive to run in real-time because they solve complex optimization problems at every time step.

Methods

The authors propose CCAC, which combines model-based RL with a classic optimization technique called the Exterior Point Method.

  • Direct Chance Constraint Optimization: Instead of using a conservative proxy, CCAC puts the chance constraint directly into the objective function as a penalty term. As training progresses, the penalty factor ($b_k$) increases, pushing the policy from the "unsafe" region into the "feasible" (safe) region.
  • Proxy Gradient: Calculating the gradient of a "probability of success" is mathematically difficult. The authors use a "proxy gradient"—substituting the gradient of cumulative cost—to guide the policy toward safety only when the constraint is violated.
  • Model-Based Acceleration: CCAC uses a dynamic model of the environment. This allows the agent to use "backpropagation through time" to calculate analytical gradients. This provides a much clearer "direction" for the policy to improve compared to the trial-and-error approach of model-free RL.

Datasets

The algorithm was evaluated on a Stochastic Car-Following Scenario.

  • The Task: An "ego" car must follow a lead car as closely as possible (to reduce wind drag/improve efficiency) without getting closer than 2 meters.
  • Stochasticity: The lead car's position varies due to road grade and wind uncertainty, modeled as Gaussian noise.
  • Benchmarks: The authors compared CCAC against:
  • MF-PD: Model-Free Primal-Dual method.
  • FWP: Fixed-Weight Penalty method.
  • SMPC: Stochastic Model Predictive Control.
  • Safety Shielding: A method that projects unsafe actions back into a safe region.

Key Insights and Ideas

  • "Just Safe Enough" is Better: By avoiding the Boole’s inequality lower bound, CCAC doesn't over-engineer safety. If the requirement is 90% safety, CCAC aims for exactly that, allowing it to achieve higher rewards (faster speeds/closer following) than conservative model-free counterparts.
  • The Power of the Model: Using the gradient of the dynamic model acts like a "cheat sheet" for the actor. It knows why an action was bad based on the physics of the system, rather than just knowing that it received a low reward.
  • Offline Training, Online Speed: Because CCAC produces a neural network policy, the "thinking" happens during training. At runtime, it’s just a forward pass of a network, making it orders of magnitude faster than SMPC, which has to solve an optimization problem on the fly.

Key Results

  • Convergence Speed: CCAC converged in roughly 1,000 iterations, while the model-free MF-PD required over 5,000 iterations.
  • Performance: In a 90% safety threshold test, CCAC achieved a discounted cumulative reward of 50.17, significantly outperforming MF-PD (31.84) and SMPC (43.50).
  • Online Efficiency: CCAC’s one-step computation time was 0.051 ms, compared to 8.168 ms for SMPC—a 160x speedup in real-time execution.
  • Safety Adherence: CCAC stayed remarkably close to the requested safety thresholds (e.g., achieving 90.28% for a 90% target), whereas MF-PD was overly cautious at 99.72%.

Limitations and Future Work

  • Model Dependency: Like all model-based methods, CCAC's performance depends on the accuracy of the dynamic model. If the model is wrong, the safety guarantees may fail.
  • Simplicity of Environment: The car-following task is a relatively low-dimensional control problem. The authors note that future work will involve investigating CCAC in more complex, high-dimensional environmental dynamics.
  • Constraint Handling: The current implementation focuses on a single joint chance constraint; scaling this to dozens of simultaneous constraints (e.g., multi-agent scenarios) remains a challenge.

Summary updated

BibTeX
@inproceedings{peng2021model,
  author = {Baiyu Peng and Yao Mu and Yang Guan and Shengbo Eben Li and Yuming Yin and Jianyu Chen},
  title = {{Model-Based Actor-Critic with Chance Constraint for Stochastic System}},
  booktitle = {CDC},
  year = {2021},
  doi = {10.1109/cdc45484.2021.9683748},
}
Figure