Abstract
This paper presents RAlph, an algorithm designed to solve large-scale Markov Decision Processes (MDPs) under strict risk constraints by combining AlphaZero-style reinforcement learning with linear programming. By predicting future rewards alongside the probability of catastrophic failure, RAlph maximizes performance while guaranteeing that risk remains below a user-defined threshold. Experimental results on benchmarks with up to 6.5 million states show that RAlph significantly outperforms existing methods in scalability, search efficiency, and safety adherence.
Introduction
Traditional reinforcement learning focuses on maximizing expected discounted-sum payoffs. However, in safety-critical domains like autonomous driving or robotics, a high-reward policy that carries even a small risk of total system failure is unacceptable. This necessitates Risk-Constrained Planning, specifically solving Chance-Constrained MDPs (CCMDPs) where the goal is to maximize rewards subject to a failure probability threshold $\Delta$. Existing solutions often struggle with scalability or are limited to deterministic policies, which are mathematically less powerful than randomized policies in constrained settings.
Methods
RAlph (Risk AlphaZero) addresses these challenges through four key components:
- Predictor-Guided MCTS: An augmented predictor $f_\theta(s)$ estimates state value, action priors, and the risk ($r$)—the probability of eventually reaching a failure state from the current position.
- Linear Programming (LP) for Action Selection: At each decision step, RAlph solves a small Linear Program over the explored search tree to find a local randomized policy that maximizes reward within the remaining risk budget.
- Dynamic Risk Budgeting: The risk threshold $\Delta$ is updated dynamically based on the agent's path, allowing for adaptive safety management.
- Risk-Averse Exploration: A specialized "RiskAwareExplore" procedure ensures safety constraints are respected even during the learning phase.
Results and Scalability
The algorithm was evaluated on Hallway MDPs (grid navigation) and Controllable Random Walk (RW) tasks. In the Hallway 4 benchmark, which contains approximately 6.5 million states, RAlph successfully found safe policies while the baseline RAMCP algorithm timed out.
As shown in the results table, RAlph demonstrates remarkable efficiency, often requiring two orders of magnitude fewer node expansions than unconstrained search methods. This efficiency stems from risk constraints acting as a pruning tool; by avoiding risky branches, the search space effectively shrinks.
The Power of Randomization
A critical finding is the importance of randomized policies. In constrained MDPs, the optimal strategy often involves mixing actions (e.g., choosing a risky but high-reward action with a specific probability). RAlph's LP-based approach naturally identifies these mixed strategies, which deterministic algorithms often miss.
The figure above illustrates how action probabilities shift dynamically in the Random Walk task to balance reward and risk. By solving LPs over sampled sub-trees rather than the entire MDP, RAlph achieves this complex optimization in real-time even for massive state spaces.
Conclusion
RAlph provides a scalable framework for safety-critical reinforcement learning. While currently demonstrated with table-based predictors and fully observable states, its architecture is designed for integration with deep neural networks and potential extension to partially observable environments (POMDPs). Future work will explore more complex safety invariants and high-dimensional continuous spaces.
Summary updated