Absolute State-wise Constrained Policy Optimization: High-Probability State-wise Constraints Satisfaction

Weiye Zhao, Feihan LiNeurIPS 2026

TL;DR

When teaching robots or autonomous cars via reinforcement learning (RL), ensuring safety "on average" isn’t good enough—one rare, catastrophic collision ruins everything. Absolute State-wise Constrained Policy Optimization (ASCPO) tackles this by constraining the upper tail of the worst single-step safety violation along a trajectory, rather than just its expected value. Without needing a physics model or assuming nice bell-curve distributions, ASCPO gives RL agents a mathematically grounded way to tame rare, high-cost failures.

What Problem Does This Paper Address?

In standard RL, agents maximize rewards. If you penalize them for crashing, they might still decide a crash is worth it if the reward for speeding is high enough. Safe RL separates rewards from safety constraints, typically in one of two ways:

  1. Cumulative safety (e.g., CPO): Bounds the total safety cost over an entire episode. This allows an agent to commit one massive violation as long as it behaves angelically the rest of the time.
  2. State-wise expected safety (e.g., SCPO): Bounds the average worst-case single-step violation. Better, right? Almost. Constraining the average maximum cost still ignores the shape of the distribution—two policies can have the exact same average worst-case cost, while one hides a fat tail of rare, disastrous failures.

Hard, zero-violation guarantees usually require a known dynamics model or backup controller. The authors ask: Can we bound the probability of any single-step violation exceeding a threshold in a completely model-free, stochastic setting?

Figure 1: Explanation of ASCPO principles. The curves are schematic only. ASCPO does not assume Gaussianity. Green and blue represent the maximum and expectation of maximum state-wise cost distribution respectively. Y-axis represents the distribution of maximum state-wise cost samples (introduced in Section 2.1) across different initial states. ASCPO targets a moment certificate for the trajectory maximum relative to wi, SCPO constrains its expectation, and CPO [Achiam et al., 2017a] constrains expected cumulative cost. This schematic is not empirical evidence of a bounded distribution.

Methods

ASCPO builds on established safe RL machinery and introduces novel statistical bounding techniques:

  • Standard foundation (Maximum MDP): Tracking the worst single-step cost across an episode isn't naturally Markovian (whether today's mistake sets a new record depends on yesterday's mistakes). Following prior work (SCPO), the authors augment the agent's state with the "up-to-now maximum cost" ($M$), turning the trajectory's peak violation into a neat sum of nonnegative cost increments ($D$).
Figure 2: Intuition of the maximum state-wise cost. The evolution of the maximum state-wise cost across a single episode is the blue bars. The red curves represent the state-wise cost, while the green bars indicate the maximum state-wise cost increment at each step.
  • What’s new (Distribution-Free Tail Certificate): Instead of bounding just the mean ($\mu$) of this peak cost, ASCPO bounds $\mu + \kappa \sigma^2$ (mean plus a risk-weighted variance). Using Cantelli's inequality—a one-sided version of Chebyshev's inequality—this provides a high-probability upper bound on the tail without assuming costs are Gaussian or unimodal.
  • Decomposing Variance: Because an agent starts from different initial states, ASCPO splits total variance using the law of total variance into Mean-Variance (MV) (trajectory randomness from a given start) and Variance-Mean (VM) (variation in expected peak cost across different starting states), deriving tractable trust-region surrogate bounds for both.
Figure 3: Explanation of MV and VM. Since maximum state-wise cost from different start states belong to a mixture of one-dimensional distributions, the variance of maximum state-wise cost can be deconstructed into two components: Mean- Variance (MV) and VarianceMean (VM).
  • Practical Neural Tricks: Moving from exact math to neural networks requires Trust Region Policy Optimization (TRPO) updates and a clever value-fitting loss. Because cost-increment targets step down monotonically over an episode and contain mostly zeros, ASCPO adds a custom penalty that punishes the critic network whenever its predictions fail to decrease monotonically.

Datasets

Rather than static datasets, ASCPO is trained and evaluated in GUARD, an interactive simulation benchmark built on Safety Gym. The evaluation spans 19 goal-navigation tasks featuring seven robot morphologies (Point, Swimmer, Arm3, Drone, Humanoid, Ant, and Walker) navigating around four types of safety constraints (Hazards, 3D Hazards, Pillars, and Ghosts). No new benchmarks were introduced.

Key Insights and Ideas

  • Moments as a tail shield, not just a regularizer: Adding variance to an objective is an old trick, but here it isn't heuristic smoothing—it forms an explicit, distribution-free Cantelli certificate bounding the probability of an episode's worst moment.
  • $\kappa$ is a knob, not a fixed confidence level: A subtle catch the authors highlight is that the risk weight $\kappa$ (e.g., $\kappa=7$) does not directly translate to "95% safety." The actual certified probability depends on the learned policy's variance. Furthermore, in neural approximations, cranking up $\kappa$ doesn't monotonically make the final policy safer because estimation errors and trust-region backtracking alter the training trajectory.
  • Respecting target geometry pays off: Realizing that future "new record" safety increments can only shrink as an episode progresses—and baking that monotonic-descent structure directly into the critic's loss function—dramatically accelerates cost convergence.

Key Results

  • 19-Task Benchmark (6M steps): Compared head-to-head against SCPO, ASCPO achieved lower mean episodic safety cost on 16 of 19 tasks and higher reward return on 14 of 19 tasks (with a median relative return boost of ~1.13%). It also visibly tightened episodic-cost distributions compared to baselines like CPO, CPO-CVaR, and TRPO-Lagrangian.
  • Direct Violation-Event Tests: Because average episodic costs don't directly measure how often zero-tolerance episodes fail, the authors ran separate reduced-budget tests checking if any violation occurred ($w_i = 0$). On Humanoid (600k steps), ASCPO cut episode violation rates to 38.48% vs. SCPO's 43.00% (a statistically significant $-4.52$ percentage point drop across all paired seeds). On Point (900k steps), the difference (23.76% vs. 22.12%) was statistically unresolved.

Limitations and Future Work

The authors are refreshingly candid about the gap between theory and deep RL practice:

  • No neural certificate: The exact high-probability guarantee holds for idealized policy updates with finite variance and exact uniform envelopes. Once approximated with neural networks and sampled batches, those hard guarantees evaporate—residual violations still occur (none of the 50 tested policies in their diagnostic grid achieved a violation upper bound below 5%).
  • Scaling quirks: Neither increasing the risk factor $\kappa$ nor using larger rollout batches universally improved empirical safety.
  • Simulation-only: Everything was tested in clean simulations. Real-world deployment hurdles—sensor noise, control latency, nonstationary dynamics, and sim-to-real gaps—remain untested, meaning physical robots may still need runtime shields alongside ASCPO.
  • Future extensions: The authors derive a fixed-confidence surrogate (targeting a specific violation probability $\delta_i$ directly rather than fixing $\kappa$), which remains an unevaluated direction for future work.

Summary updated

Abstract

Enforcing state-wise safety constraints is critical for the application of reinforcement learning (RL) in real-world problems, such as autonomous driving and robot manipulation. Expected-cost constraints can permit rare but severe violations, while runtime safeguards may require a model, backup policy, or safety certificate. We instead target high-probability control of the maximum instantaneous cost along a trajectory. To accomplish this goal, we propose Absolute State-wise Constrained Policy Optimization (ASCPO), a model-free policy search algorithm whose exact update provides a distribution-free high-probability certificate for state-wise constraint satisfaction in stochastic systems. The probability certificate requires finite variance, while the exact policy-update bounds additionally require finite uniform envelopes. Neither assumes Gaussian or unimodal costs. The approximate neural implementation is evaluated empirically and does not inherit the exact certificate. Across 19 simulated navigation tasks, ASCPO achieved lower mean episodic cost than SCPO on 16 tasks and higher return on 14. Separate, reduced-budget tests measured whether an episode contained any violation: ASCPO had fewer such episodes than SCPO on Humanoid, while the Point comparison was unresolved.
BibTeX
@inproceedings{zhao2026absolute,
  author = {Weiye Zhao and Feihan Li},
  title = {{Absolute State-wise Constrained Policy Optimization: High-Probability State-wise Constraints Satisfaction}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=q54wRgjMnG},
}
Figure