Stochastic Minimum-Cost Reach-Avoid Reinforcement Learning

Jingduo Pan, Taoran Wu, Yiling Xue, Bai Xue

The Challenge of Safe and Efficient Navigation

In real-world robotics, agents frequently face a dual mandate: successfully reach a target (liveness) while avoiding hazards (safety). Furthermore, these agents must operate efficiently, minimizing operational costs such as energy consumption or mechanical wear. While Safe Reinforcement Learning (RL) has made significant strides, existing methods struggle to balance these requirements in unpredictable, stochastic environments.

Specifically, current approaches face three major hurdles:

  1. Stochasticity: Real environments are noisy, meaning absolute safety is impossible. Algorithms must instead guarantee a probability of success (e.g., "succeed at least 95% of the time").
  2. Cost Optimization: Most reach-avoid algorithms focus entirely on task completion, ignoring the energy or time costs incurred along the way.
  3. Sparse Signals: Standard reach-avoid mathematics only provide feedback when an agent hits the goal or crashes. This sparsity makes learning incredibly slow and often leads to degenerate behaviors, such as the agent standing completely still to avoid any risk.

Methodology: RAPCPO and Probability Certificates

To address these challenges, the authors introduce Reach-Avoid Probability-Constrained Policy Optimization (RAPCPO). At the core of this framework is a novel mathematical tool called Reach-Avoid Probability Certificates (RAPCs).

Calculating the exact probability of success in a stochastic environment is computationally intractable. Instead, RAPCs utilize a Bellman-style formulation to provide a provable lower bound on the success probability. If the certificate guarantees a probability greater than or equal to a user-defined threshold $p$, the agent is deemed safe to proceed. This allows the algorithm to dynamically partition the state space into two operational modes: "safe enough to optimize cost" and "not safe enough; focus entirely on success."

Key Innovations

  • Enhanced Bellman Formulation: Traditional reach-avoid logic relies on sparse, binary indicators (1 for success, 0 for failure). RAPCPO employs a "max-min clamped" operator that provides denser, continuous signals throughout the state space, guiding the agent effectively even when it is far from the target.
  • The Compensation Factor ($\phi$): Standard RL discounting ($\gamma^T$) inadvertently penalizes long, safe paths because a distant success mathematically resembles a failure—a phenomenon the authors dub the "Discounting Trap." To fix this, they introduce a compensation factor to counteract this attenuation, ensuring the agent does not become overly conservative simply because a safe path requires a longer time horizon.
  • Gradient Rectification: Because minimizing cost and maximizing safety often produce conflicting gradients, RAPCPO uses a symmetric projection method to resolve interference. This ensures that cost-cutting measures never compromise the strict probabilistic safety threshold.

Experimental Setup and Results

The researchers evaluated RAPCPO using the MuJoCo physics simulator across deterministic tasks (PointGoal, FixedWing, Pendulum) and stochastic tasks (Safety Hopper and Safety HalfCheetah, modified with 10% Gaussian action noise to simulate real-world unpredictability). An ablation study on FrozenLake was also conducted to isolate the impact of the compensation factor.

RAPCPO consistently outperformed state-of-the-art baselines, including RC-PPO, RESPO, and Sauté RL:

  • Higher Success Rates: In the PointGoal task, RAPCPO achieved a 78.49% reach rate compared to RC-PPO’s 62.29% under the exact same training budget.
  • Lower Costs: In stochastic environments like Safety Hopper, RAPCPO achieved the lowest cumulative cost while maintaining a reach rate near 95%. In contrast, baseline methods either crashed frequently or froze entirely to avoid risk.
  • Stability: The method demonstrated significantly smoother convergence in noisy environments where traditional constrained MDP (CMDP) methods often became unstable or mathematically "infeasible."

Limitations and Future Directions

While RAPCPO represents a significant step forward, the authors note that the current RAPC provides a sufficient but not necessary condition for safety. Consequently, the agent might still behave too conservatively in certain edge cases, leaving potential cost-efficiency gains unrealized. Additionally, the multi-critic architecture—requiring separate critics for the RAPC, cost, and compensation factor—introduces computational overhead.

Future work will focus on developing safety conditions that are both necessary and sufficient, while remaining computationally tractable for real-time robotic applications.

Summary updated

BibTeX
@inproceedings{pan2026stochastic,
  author = {Jingduo Pan and Taoran Wu and Yiling Xue and Bai Xue},
  title = {{Stochastic Minimum-Cost Reach-Avoid Reinforcement Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=ReCCYnyfXa},
}
Figure