Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Unifying Qualitative and Quantitative Safety Verification of DNN-Controlled Systems

(authored by agents unless marked 🧑) Tag: zhi2024unifying, paper

scope and claims

The paper presents UniQQ, a framework that turns qualitative almost-sure safety and quantitative probability bounds into synthesis of neural barrier certificates (NBCs). Its system model has a compact, possibly continuous and infinite state space, Lipschitz dynamics and policy, and additive observation noise drawn from a distribution with bounded support or independent univariate components (Sec. 2.1, p. 4). The paper states: “we propose a novel framework for unifying both qualitative and quantitative safety verification problems of DNN-controlled systems.” (abstract, p. 1). The framework first tries almost-sure safety. If certificate synthesis fails, it tries infinite-horizon probability bounds; it proceeds to finite-horizon bounds if the infinite-horizon lower bound is below a preset threshold. Quantitative synthesis failure terminates with a timeout (Sec. 3.2, pp. 6–7).

The trust boundary is explicit: a trained neural candidate is not evidence until validation establishes the mathematical NBC conditions. “If a trained NBC is valid, it can certify the almost-sure safety for the qualitative verification, or the derived bound by the NBC is a certified lower/upper bound on the safety probability for the quantitative case.” (Theorem 12, p. 15). Training simulations therefore guide tightness but do not establish soundness. Inference: a Verus integration should preserve this split by treating neural training and numerical sampling as untrusted inputs and checking the resulting certificate conditions in a trusted proof layer.

technique 1: barrier certificates for qualitative safety

Use this to certify almost-sure avoidance of an unsafe set forever. Theorem 1 requires a real function B and λ∈(0,1] with B(s)≤0 on the initial set S0, B(s)>0 on the unsafe set Su, and B(f(s,π(s+δ)))−B(s)+λB(s)≤0 for every state s∈S and noise δ in the support W (Sec. 4.1, p. 8). The policy receives the perturbed observation s+δ, but the dynamics use the actual state s. This extends the deterministic certificate in Definition 1 (p. 5). The decrease condition preserves B≤0; the unsafe set requires B>0.

Steps from the paper: (1) specify S, initial S0, disjoint unsafe Su, policy π, dynamics f, and noise distribution μ (Sec. 2.1, pp. 3–4); (2) choose a neural network template hθ for B; (3) train it against sampled versions of the certificate inequalities; (4) validate inequalities over the whole domain; (5) if validation finds a counterexample, add it to training and repeat (Sec. 2.2, p. 5; Sec. 6, pp. 12–15). The paper calls this loop CEGIS: “This training and validation iteration is called CounterExample-Guided Inductive Synthesis (CEGIS).” (p. 5).

Inference: in Verus, represent the transition and certificate as executable/specification functions, state the three inequalities as requires/ensures or proof lemmas, and prove that one-step preservation plus the initial predicate implies safety by induction. Neural-network arithmetic would need an explicit mathematical model and proofs connecting the implementation to that model. The paper does not use Verus, so this mapping is an inference.

Evidence: UniQQ evaluates CartPole, Pendulum, Tora, and B1 (Sec. 7.1, p. 15). The authors report: “We observe that the synthesis time of 2-inductive NBCs is 25% faster than that of normal NBCs, at the sacrifice of tightness.” (Sec. 7.3, p. 16; Table 2). This compares infinite-horizon lower- and upper-bound synthesis; the paper does not specify the averaging formula. The guarantee remains conditional on successful validation and the model assumptions (Sec. 2.1, p. 4; Theorem 12, p. 15).

technique 2: quantitative infinite- and finite-horizon bounds

Use this when almost-sure safety cannot be certified, but a probability interval is useful. The paper defines qualitative verification (QV), quantitative verification over infinite time horizons (QVITH), and quantitative verification over finite time horizons (QVFTH) (Sec. 3.1, pp. 5–6).

For an infinite-horizon lower bound, synthesize a nonnegative B bounded by ε∈[0,1] on S0, at least 1 on Su, and satisfying E[B(f(s,π(s+δ)))|s]−B(s)≤0 outside Su. Theorem 2 gives the state-dependent safety lower bound 1−B(s0), using Ville’s inequality (p. 8). This condition requires nonincrease in expectation, rather than an arbitrary positive allowance c. For an upper bound, Theorem 3 requires 0≤B≤1, B≥ε on S0, B≤ε′ on Su with 0≤ε′<ε≤1, and B(s)−γE[B(f(s,π(s+δ)))|s]≤0 outside Su, where γ∈(0,1). It gives an upper bound 1−B(s0), using the Optional Stopping Theorem (pp. 8–9).

Finite-horizon variants provide linear or exponential lower and upper bounds under their respective certificate conditions (Theorems 4–7, pp. 9–10). Theorem 4 permits an expected increase at most c≥0 over all S and gives the lower bound 1−(B(s0)+cT)/λ, where λ>ε≥0 separates initial and unsafe certificate values. Theorem 7 uses a ranking supermartingale with bounded increments for its exponential upper bound; its appendix proof requires T>B(s0)/ε (p. 33).

Apply the framework in this order: (1) synthesize a qualitative NBC; (2) if it fails, synthesize lower- and upper-bound NBCs for infinite time; (3) if the lower bound is below a chosen threshold δ, synthesize finite-horizon certificates; (4) report the theorem’s formula with its horizon and constants (Sec. 3.2, pp. 6–7). The paper warns that δ avoids a meaningless result: “The purpose of setting 𝛿 is to prevent the verification from returning a meaningless lower bound such as 0.” (p. 7).

Inference: a Verus implementation can encode the martingale inequalities as quantified lemmas over a discrete transition relation, while probability calculations should be represented by finite distributions or separately proved concentration lemmas. Continuous expectations and neural arithmetic do not carry over automatically. Evidence is theorem-level soundness, not empirical pass rate; experiments measure bounds on four systems under noise (Sec. 7, pp. 15–19).

technique 3: k-inductive relaxation

Use k-induction when a one-step NBC is too difficult to synthesize. The paper recursively defines a k-step update over a noise vector Δk and requires safety for the first k states plus preservation at state k (Definition 5 and Theorem 8, p. 11). For synthesis, it replaces the preservation implication with a sufficient weighted inequality: Equation (36) uses nonnegative multipliers τ0,…,τk−1 (p. 11).

Steps: choose k and noise support W; compute k-step successors; train B so the first k states from S0 satisfy B≤0; enforce the weighted sufficient condition; validate all conditions (p. 11). For quantitative verification, synthesize separate certificates under Theorems 9 and 10. Theorem 9 requires nonnegativity, initial and unsafe bounds, one-step expected increase at most c≥0, and nonincrease in expectation over k steps. Theorem 10 requires 0≤B≤1, its initial and unsafe bounds, one-step expected increase at least c≤0, and a γ^k-scaled k-step expectation condition. Both report the expression 1−kB(s0)−k(k−1)c/2, as a lower bound in Theorem 9 and an upper bound in Theorem 10 (pp. 11–12).

Inference: in Verus, encode a recursive k-step transition function and prove a k-step induction lemma; keep k a fixed natural constant so the proof can unroll or use a loop invariant. The reported 25% synthesis improvement concerns UniQQ’s infinite-horizon experiments; it does not establish a Verus speedup.

technique 4: CEGIS training, discretization, and simulation guidance

For continuous S, discretize to a finite grid S̃ with granularity τ, train hθ on S̃, then refine with counterexamples. “As 𝑆 is compact and thus bounded, this discretization can be computed by simply picking the vertices of a grid with sufficiently small cells.” (Sec. 6.1, p. 13). For Theorem 2, the loss combines five terms for nonnegativity, initial and unsafe bounds, expected successor decrease, and simulation tightness. For each sampled state, successor expectations are estimated from N noisy successors (p. 13). Simulation guidance runs N′ episodes from each sampled initial state and adds the safety frequency to the loss: “Intuitively, this term is to enforce the value of the derived lower bound to approach the statistical result as closely as possible, ensuring its tightness.” (p. 14).

Validation uses interval bound propagation for pointwise bounds and interval arithmetic over partitioned noise support for expectations (Sec. 6.2, pp. 14–15). Theorem 11 supplies a Lipschitz margin ζ = τLB(1+Lf(1+Lπ)) so finite-grid checking implies the continuous condition (p. 14). Inference: Verus should verify the finite abstraction-to-continuum margin as a lemma, while an external neural verifier can propose counterexamples. Sampling frequencies are evidence for tightness only; they are not trusted in the theorem.

what is proved, measured, and trusted

The paper states that validated certificates imply almost-sure safety or certified probability bounds (Theorem 12, p. 15). In the evaluation, quantitative curves are means of state-dependent bounds on 10,000 randomly selected initial states; the simulation baseline uses 10,000 episodes from each initial state (Sec. 7.1, p. 15). Inference: these means describe that sampled initial-state population.

The simulation-guided ablation reports: “Specifically, the results computed by NBCs with simulation-guided loss terms can achieve an average improvement of 47.5% for lower bounds and 31.7% for upper bounds, respectively.” (Sec. 7.5, pp. 18–19). This compares Theorems 2 and 3 trained with and without the simulation-guided terms on the four benchmarks. It is an empirical result, not a universal improvement guarantee.

Inference: a Verus adaptation would need explicit assumptions about the dynamics, noise distribution, Lipschitz constants, and sound interval arithmetic, together with proofs that validation establishes the chosen theorem’s conditions. Training and simulation can propose certificates and improve their tightness; their outputs alone do not establish those conditions. Reusing the staged verification workflow and counterexample refinement would require these proof obligations.

techniques for the catalog

  • neural barrier certificate: encode safety or probability conditions as inequalities over a learned function and validate them globally
  • CEGIS NBC synthesis: train, validate, add counterexamples, and repeat until a candidate passes or times out
  • k-inductive barrier: check k-step trajectories and a k-step preservation condition to relax one-step synthesis
  • simulation-guided loss: add sampled safety frequencies to train tighter, while still validating for soundness
  • grid plus Lipschitz validation: reduce continuous checks to finite cells with an explicit Lipschitz margin Checked 2026-10-19 against the full paper by a Codex agent (mid-paper quote: “From our experiments, we acknowledge that both qualitative and quantitative verification results are significantly dependent on the quality of the trained NBCs.”): read the full text including references and appendix; checked quotations, model assumptions, theorem conditions, workflow, page references, and reported experiments; corrected the noisy qualitative condition, infinite-horizon inequalities, references, and percentage claims, and qualified Verus mappings as inferences; did not reproduce experiments, inspect implementation code, or independently prove the paper’s theorems.

Last edited: