The method extends Policy Predicate Abstraction (PPA) to handle probabilistic transitions and perform probabilistic safety verification of neural policies.
Probabilistic PPA State Space: The policy predicate abstraction (PPA) of a system Θ over a set of predicates P and a policy π is defined as a Probabilistic Transition System (PTS) Θπp = (Sp, O, U, Tπp). Sp is the set of abstract states, O is the set of action operators, U is the set of updates, and Tπp is the set of transitions. A transition (sp, o, μp) ∈ Tπp exists if there is a concrete state s ∈ [sp] such that s satisfies the guard of o, the concrete update s[ū] is in the concretization of μp, and the policy π selects the label of o.
Abstract State Space Computation: The abstract transition problem for Θπp is solved by encoding it into Satisfiability Modulo Theories (SMT) using off-the-shelf solvers. This involves handling a finite-support successor distribution rather than a single successor, making the encoding more laborious than in non-probabilistic PPA.
Abstract Counterexample Computation: To verify safety in Θπp, the method checks for a counterexample (A, sp) where A is an adversary and sp is an abstract start state. This involves solving a MaxProb problem to find the maximal unsafety probability maxPr(Θπp, φo, φu). The paper uses FRET-LRTDP, which incrementally explores the reachable fragment of Θπp to compute the maximizing (A, sp).
CEGAR for Probabilistic PPA (prob-CEGAR-PPA): The core of the method is a CEGAR loop (Algorithm 1) that iteratively refines the predicate set P.
- Initialization: The predicate set P starts with {φu}.
- MaxProb Search: In each iteration, a MaxProb search is performed in Θπp to compute the abstract adversary A and start state sp that maximize the abstract unsafety probability Pr(A, sp, φu).
- Safety Check: If Pr(A, sp, φu) ≤ pu, the policy π is proven safe. If the counterexample analysis (CeAna) returns REAL, π is unsafe. Otherwise, CEGAR iterates.
- Counterexample Analysis (CeAna): This procedure (Algorithm 1, Procedure CeAna) maintains a set of abstract unsafe paths upsp ⊆ Path(A, sp, φu) and an upper bound Pmax on the maximal realizable probability of upsp. It iteratively adds paths to upsp and checks for spuriousness.
- T-analysis (T-spuriousness): This phase iteratively constructs upsp. It computes the path σp with the next highest probability. If σp is T-path spurious (not realizable in the full system Θ), the abstraction is refined (refine-T-path), and CeAna terminates. If realizable, σp is added to upsp, and Pmax is updated. Once Pmax > pu, the maximal T-realizable probability is computed via MaxSMT. If Pmax > pu, it proceeds to π-analysis. If Pmax + Punused ≤ pu, the counterexample is spurious, and the abstraction is refined (refine-T-prob).
- π-analysis (π-spuriousness): This phase checks for π-spuriousness. It restricts to a maximal T-realizable subset upsπ ⊆ upsp. If any path σp ∈ upsπ is π-path spurious (not realizable under policy π), the abstraction is refined (refine-π-path). If upsπ is not π-all realizable (i.e., there's no common start state for all paths), the abstraction is refined (refine-π-prob). Otherwise, if upsπ is π-all realizable, the counterexample (A, sp) is deemed REAL, proving π unsafe.
Automated Bound Derivation (prob-CEGAR-PPA-inc): An extension (Algorithm 2) embeds a linear search on pu into the CEGAR loop to incrementally tighten interval bounds [Plo, Pup] on the maximal unsafety probability.
Key Equations:
- Accumulated unsafety probability for a set of paths
ups:
Pr(ups) = Σ_{σ∈ups} Π_{i=0}^{|σ|-1} μ^i(σ)(u^i(σ), s^{i+1}(σ))
- Maximal unsafety probability of Θπp:
maxPr(Θπp, φo, φu) = max_{A, sp} Pr(A, sp, φu)