Enforcing Almost-Sure Reachability in POMDPs

Sebastian Junges, Nils Jansen, Sanjit A. Seshia

Introduction

Autonomous agents operating in real-world environments, such as rovers or robotic assistants, often face significant uncertainty regarding their exact state. This uncertainty is typically modeled using Partially Observable Markov Decision Processes (POMDPs). While Reinforcement Learning (RL) has proven effective at optimizing agent behavior in these settings, its reliance on trial-and-error exploration poses significant safety risks. In safety-critical domains, agents must satisfy "reach-avoid" specifications: reaching a target state with probability 1 (almost-surely) while strictly avoiding catastrophic failure.

The Challenge of Safe Exploration

Finding a policy that guarantees almost-sure reachability in a POMDP is computationally expensive, categorized as EXPTIME-hard. Traditional methods often struggle with the "state explosion" problem when mapping the infinite space of belief states—the probability distributions over possible states. This paper addresses the challenge by computing a "winning region" (the set of all belief states from which a safe policy exists) and using it to construct a runtime "shield" for RL agents.

Methodology: Incremental SAT Solving

The authors propose a novel approach that avoids the pitfalls of standard symbolic model checking and one-shot SAT solving by focusing on three core components:

1. Belief-Support Abstraction

For almost-sure guarantees (probability 1 or 0), the exact probabilities in a belief state are less critical than the support—the set of states the agent could potentially be in. By abstracting the infinite belief space into a finite "belief-support" MDP, the problem becomes more tractable without losing the ability to provide strict guarantees.

2. Incremental SAT and the Shortcut Mechanism

Unlike previous SAT-based methods that attempt to solve the entire reachability problem in one pass (requiring manual tuning of memory parameters), the proposed algorithm is iterative. It uses Satisfiability Modulo Theories (SMT/SAT) solvers to find simple, memoryless policies for subsets of the state space. Once a safe policy is found for a region, it is treated as a "shortcut." The algorithm then searches for new policies that can leverage these shortcuts to reach the goal, effectively building complex, memory-dependent policies from the bottom up.

3. Shielding for Reinforcement Learning

The computed winning region serves as the basis for a safety shield. During RL training, the shield monitors the agent's proposed actions. If an action would lead to a belief state outside the winning region, the shield intervenes, masking the unsafe action and forcing the agent to choose a safe alternative. This ensures the agent never violates safety constraints while it learns to optimize for secondary rewards.

Experimental Evaluation

The approach was evaluated on a suite of grid-world benchmarks common in POMDP literature:

  • Rocks: A rock-sampling rover identifying and collecting good samples while avoiding hazards.
  • Refuel: Navigation with limited battery, requiring safe routing to charging stations.
  • Evade/Intercept: Scenarios involving dynamic agents and limited visibility.
  • Avoid/Obstacle: Navigating around patrolling threats and uncertain traps.

Key Results

The incremental SAT approach demonstrated significant improvements over existing baselines in three key areas:

  • Massive Scalability: The method successfully handled environments with up to $4.5 \times 10^9$ belief-support states, representing a significant leap in the complexity of solvable POMDPs.
  • Efficiency and Automation: It outperformed both standard MDP model checking and "one-shot" SAT approaches in terms of computation time. Crucially, it achieved this without requiring an "oracle" to manually provide optimal hyperparameters.
  • High Permissiveness: The resulting shields were highly permissive, allowing agents to retain 73% to 89% of their available actions. This ensures that strict safety guarantees do not cripple the agent's ability to explore and optimize for performance.

Conclusion and Future Work

This work provides a scalable framework for enforcing strict safety guarantees in POMDPs. By combining belief-support abstraction with incremental SAT solving, the authors enable safe RL in environments previously considered too complex for formal verification. Future research directions include integrating these shields with state-of-the-art deep RL algorithms and extending the framework to quantitative safety guarantees (e.g., probability > 0.95) to allow for greater flexibility in environments where absolute certainty is impossible.

Summary updated

BibTeX
@inproceedings{junges2021enforcing,
  author = {Sebastian Junges and Nils Jansen and Sanjit A. Seshia},
  title = {{Enforcing Almost-Sure Reachability in POMDPs}},
  booktitle = {CAV},
  year = {2021},
  doi = {10.1007/978-3-030-81688-9\_28},
}
Figure