# Solving Probabilistic Verification Problems of Neural Networks using Branch and Bound

Branch and bound from non-probabilistic verification solves neural network probability checks faster

David Boetius, Stefan Leue, Tobias Sutter · arXiv · 2024-5-27

- **Problem** Sound probabilistic verifiers such as FAIR SQUARE depend on expensive SMT solving to refine the input space. That cost makes them slow on fairness and safety checks over input distributions.
- **Method** PV bounds the probability of a network output by splitting the input space into boxes. It reuses bound propagation from non-probabilistic verification instead of SMT solving, and it prunes boxes that are settled as satisfied or violated.
- **Results** On 125 ACAS Xu robustness problems, PV averaged 22 seconds per instance. SPACESCANNER was reported at a mean of 33 minutes, on different hardware.

![Table 3: Comparison of PROBBOUNDS , PROVE SLR , and ε-PROVE. We run PROBBOUNDS with different time budgets (10s, 1m, 1h) and report the lower and upper bounds…](https://refivu.com/papers/bb7ed38f-7636-44c4-921c-7a661fe6cf0f/figures/figure-bd643887d333db2baeb138d998f3335c.png?thumb=512)

**Table 3** . Comparison of PROBBOUNDS , PROVE SLR , and ε-PROVE. We run PROBBOUNDS with different time budgets (10s, 1m, 1h) and report the lower and upper bounds ( ℓ, u) computed within this time budget. In contrast, PROVE SLR computes the exact probabilities (VR), and ε-PROVE computes a 99.9% confidence (confid.) upper bound. The probabilities and probability bounds are given as percentages. The runtimes (Rt) of P ROVE SLR are taken from Marzari et al. (2023b).

[Original paper](https://arxiv.org/abs/2405.17556v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · David Boetius, Stefan Leue, Tobias Sutter · Solving Probabilistic Verification Problems of Neural Networks using Branch and Bound · Original paper figure · Extracted the figure area from page 9 of the original PDF.

## Why sound probabilistic checks are slow

Probabilistic verification asks what share of inputs drawn from a distribution leads to a given output. For demographic parity, the ratio of positive decisions between disadvantaged and advantaged groups must reach a threshold γ, where 0.8 is a common choice. Bounding the probability of an unsafe output is the closely related task that the authors focus on.

Their algorithm computes bounds on such probabilities with a branch and bound framework, and then uses those bounds to verify statements like the parity condition.

Probably sound methods such as ε-PROVE trade that certainty for efficiency, since they give only a PAC-type guarantee. The authors describe that SMT solving as expensive, so refining the partition becomes the bottleneck.

![Table 1: Comparison of Related Approaches. Sound approaches provide definite guarantees. Probably sound approaches only provide PAC-type guarantees. Approaches…](https://refivu.com/papers/bb7ed38f-7636-44c4-921c-7a661fe6cf0f/figures/figure-30d2bf103a7aabd0957778bab1295cbf.png?thumb=512)

**Table 1** . Comparison of Related Approaches. Sound approaches provide definite guarantees. Probably sound approaches only provide PAC-type guarantees. Approaches marked ‘unsound∗’ are sound in specific settings but neither sound nor probably sound in general.

[Original paper](https://arxiv.org/abs/2405.17556v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

SPACESCANNER and the approach of Borca-Tasciuc et al. divide the input space into polytopes, yet both are unsound for fairness verification. Both approaches approximate continuous probability distributions using histograms, which breaks their guarantees. PROVE SLR is sound for #DNN verification, but it computes probabilities exactly instead of refining bounds iteratively.

Its scope is limited to uniformly distributed inputs, so it cannot handle general fairness problems.

The authors' algorithm, PV, takes the bound-refinement idea and replaces SMT solving with input splitting and bound propagation. These cheaper techniques come from non-probabilistic neural network verification, which the authors reuse for probabilities. Because of this design, PV can be sound and general at the same time, which earlier sound tools were not.

## Branch and bound applied to probabilities

PV treats the probability itself as the quantity to bound, and it splits the input space until every piece is settled as satisfied or violated. Its bound propagation and branch and bound machinery comes from non-probabilistic neural network verification, applied in a massively parallel form. The bounds come from interval arithmetic or CROWN, and both compute bounds on the satisfaction function over an input box.

Unlike FAIR SQUARE, which uses expensive SMT solving to refine the input space, PV uses inexpensive input splitting and bound propagation.

Each iteration first computes bounds on the satisfaction function for every current box. Boxes that are certainly satisfied or certainly violated are pruned, and their probability mass is added to the running lower or upper bound. The remaining boxes are split along one input dimension. The SELECT PROB heuristic chooses which boxes to split next by their probability mass.

For the dimension, the BABSB heuristic prefers the one whose split yields the largest improvement in bounds, with interval arithmetic used to estimate it. BABSB also looks at lower and upper bounds equally, because the authors don't want to favour only lower bounds.

With the total probability of pruned satisfied boxes as the lower bound, and k(t) as the total probability of pruned violated boxes, the upper bound is u(t) = 1 - k(t). A box counts as satisfied when the satisfaction function is at least 0, and as violated when it is below 0. So the lower bound grows as more satisfied mass is pruned, and the upper bound shrinks as more violated mass is pruned.

Soundness follows because pruning only happens for boxes that are actually satisfied or violated, given valid bounds from COMPUTE BOUNDS.

## When the bounds hold and when PV finishes

Soundness comes first, and it follows from the bounds being valid for each branch the algorithm prunes. PROBBOUNDS sums the probability of all previously pruned satisfied branches into the lower bound ℓ(t). Since pruned violated branches give the total k(t), the authors set the upper bound to u(t) = 1 − k(t). Because each pruned set lies inside the true satisfied or violated region, ℓ(t) stays below Px\[gSat(x, net(x)) ≥ 0\] and u(t) stays above it.

Corollary 5.2 extends this to PV, using the soundness of the COMPUTE BOUNDS procedure it applies.

Completeness needs Assumption 5.3, which the authors call only mildly restrictive. The assumption requires the satisfaction function to be nonzero at its fixed but unknown value. It also requires the satisfaction boundary to have zero probability under the input distribution. Converging bounds alone can't settle a value that is exactly zero, because no finite iterate may land on zero.

If the value is zero, the authors study f′Sat = fSat − ε for some ε \> 0, which satisfies the assumption and is only marginally stronger. When the boundary has positive probability, they tighten the constraint to gSat ≥ ε, since a finite ε with zero probability at the boundary always exists.

The completeness proof covers heuristics that meet two conditions, convergent bounds and alternating splitting and selection. A COMPUTE BOUNDS procedure is convergent when its bound gap goes to zero as the input box width goes to zero. SPLIT is dimension-alternating when every dimension with positive width is eventually split so that its width shrinks.

SELECT is branch-alternating when every branch with positive probability is eventually selected for splitting. The authors show that LONGEST EDGE splits every dimension eventually, by repeatedly splitting the widest edge in each case. They show SELECT PROB is branch-alternating, and they note that interval arithmetic is known to satisfy the convergence condition.

The authors also prove that CROWN satisfies the convergence condition, so PV is complete under these heuristics.

## Against FAIR SQUARE, ε-PROVE and PROVE SLR

On the FairSquare benchmark, PV solves four more instances than FAIR SQUARE within the 15-minute timeout. The benchmark has three small networks, two fairness notions about a person's sex, and three input distributions, one of them independent. For the instances both tools solve, PV's median runtime is 4s, with a mean of 5s and a maximum of 17s.

FAIR SQUARE needs a median of 44s on the same instances, with a mean of 109s and a maximum of 657s. The authors attribute this gap to cheap input splitting and bound propagation, where FAIR SQUARE relies on expensive SMT solving to refine the input space.

On the ACAS Xu robustness study, PROBBOUNDS runs 125 verification problems about uniformly perturbed inputs near 25 reference points. Its mean runtime is 22 seconds, with a median of 6s and a maximum of 213s. Converse et al. report a mean of 33 minutes per instance for SPACESCANNER, running on superior hardware. The two runtimes therefore don't come from the same machine, so the comparison carries a hardware caveat.

The authors' HW1 is an i7–4820K with no GPU, which they judge to be less performant than the hardware of Converse et al. and Marzari et al.

The ACAS Xu safety task asks for the violation rate of several networks under a uniform input distribution. PROVE SLR computes the violation rate exactly, while ε-PROVE gives an upper bound that holds with a predefined probability. PROBBOUNDS gives sound bounds at any time during its run, so a fixed time budget still yields usable bounds.

For network N5,8 at 10s, PROBBOUNDS gives bounds of 0.89% and 4.16%, while ε-PROVE gives an upper bound of 4.52% after 57s. Within one hour, PROBBOUNDS keeps its margin under 0.7%, while PROVE SLR needs at least four hours for the exact value. Across the extended comparison, PROBBOUNDS computes a tighter sound bound faster than ε-PROVE in 12 of 36 cases.

For VCAS correctness, PV proves the required 90% correct output rate within 0.13s. That makes PREIMG APPROX's answer a weaker kind of result than a sound bound.

## How PV scales on MiniACSIncome and whether the heuristics matter

MiniACSIncome-i uses the first i input variables, from the binary 'SEX' variable up to eight variables with 68 input dimensions. PV solved seven of the eight instances within one hour, and the eight-variable instance hit the timeout. PV finished up to seven input variables in under 30 minutes. The benchmark's input distributions are Bayesian Networks that fit real-world US census data, so they are multi-modal.

Enumeration evaluates every discrete input value, so it is the baseline for verifying demographic parity on MiniACSIncome. Enumeration beats PV only while all values fit in one batch. Once that becomes infeasible, enumeration falls behind PV. The authors tested network size on MiniACSIncome-4, from one wide layer of 10 000 neurons to ten layers of 10 neurons.

Runtime stayed largely flat across these networks, which the authors attribute to large and small networks learning similar decision boundaries. Larger networks don't necessarily give a more complex decision boundary, so the flat runtime is not a general result.

The heuristic study runs PV on the FairSquare benchmark with SELECT PROB and CROWN. LONGEST EDGE is faster on four easy instances, but it solved only eight of the 18 FairSquare instances. BABSB solved all 18 FairSquare instances. BABSB-LONGEST EDGE-10 also solved all instances, at slightly more time per instance than BABSB.

## Limitations and conditions of the results

The completeness result of PV holds only under Assumption 5.3, which the authors call mildly restrictive. Assumption 5.3 requires that the satisfaction function does not equal zero in the probabilistic verification problem, so the proof can rely on converging bounds reaching a finite decision. When the probability of the boundary set is positive, the authors note that a region can be unprunable, so they tighten the constraint to a small epsilon instead.

The authors state that the condition on the satisfaction boundary has zero probability, and they argue that such an epsilon exists.

The runtime comparisons are not made on identical hardware, which limits how far the speedups can be read. HW1 is a Intel i7–4820K CPU with four cores and eight threads, while Converse et al. (2020) used an AMD EPYC 7401P with 46 threads. The authors ran their experiments on HW1 to enable a faithful comparison, yet the reported runtimes of Converse et al.

and Marzari et al. still come from stronger machines. Figure 4 shows that HW1 is less performant than the hardware of both comparison papers, so the gap in runtime is partly a hardware effect.

PV handles only deterministic neural networks, so Bayesian neural networks fall outside its scope. The heuristic study uses only the FairSquare benchmark, so the choice of BABSB and CROWN is not tested on other benchmarks. The scaling study on MiniACSIncome uses shallow 10-neuron networks, and the eight-variable instance hit the one-hour timeout.

The authors note that the runtime is largely unaffected by network size on this benchmark, which they attribute to similar decision boundaries.

## Paper info

- **Authors**: David Boetius, Stefan Leue, Tobias Sutter
- **Venue**: arXiv · Preprint
- **First published**: 2024-5-27
- **Added**: 2026-10-31
- **Updated**: 2025-7-10
- **Version**: v3
- **arXiv**: 2405.17556
- **Category**: cs.LG · cs.AI
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2405.17556v3) · [PDF ↗](https://arxiv.org/pdf/2405.17556v3)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Probabilistic verification problems of neural networks are concerned with formally analysing the output distribution of a neural network under a probability distribution of the inputs. Examples of probabilistic verification problems include verifying the demographic parity fairness notion or quantifying the safety of a neural network. We present a new algorithm for solving probabilistic verification problems of neural networks based on an algorithm for computing and iteratively refining lower and upper bounds on probabilities over the outputs of a neural network. By applying state-of-the-art bound propagation and branch and bound techniques from non-probabilistic neural network verification, our algorithm significantly outpaces existing probabilistic verification algorithms, reducing solving times for various benchmarks from the literature from tens of minutes to tens of seconds. Furthermore, our algorithm compares favourably even to dedicated algorithms for restricted probabilistic verification problems. We complement our empirical evaluation with a theoretical analysis, proving that our algorithm is sound and, under mildly restrictive conditions, also complete when using a suitable set of heuristics.

## Quote from the paper

David Boetius, Stefan Leue, Tobias Sutter (2024). Solving Probabilistic Verification Problems of Neural Networks using Branch and Bound. arXiv:2405.17556v3. https://arxiv.org/abs/2405.17556v3

**BibTeX**

```
@misc{boetius2024solving,
  title = {{Solving Probabilistic Verification Problems of Neural Networks using Branch and Bound}},
  author = {David Boetius and Stefan Leue and Tobias Sutter},
  year = {2024},
  eprint = {2405.17556},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.17556v3}
}
```

## Other paper commentary

- [Feature Learning beyond the Lazy-Rich Dichotomy: Insights from Representational Geometry](https://refivu.com/en/papers/145cac59-29af-46bd-915b-28b2501ff19d-feature-learning-beyond-the-lazy-rich-dichotomy-insights.md)
- [Geometry-Informed Neural Networks](https://refivu.com/en/papers/da0a16b6-9d7a-4d46-a972-fe3929ea063a-geometry-informed-neural-networks.md)
- [Learning to (Learn at Test Time): RNNs with Expressive Hidden States](https://refivu.com/en/papers/6a02f8bd-d757-4f00-9d97-6829bf6db29f-learning-to-learn-at-test-time-rnns-with.md)
- [Transformers Provably Learn Algorithmic Solutions for Graph Connectivity, But Only with the Right Data](https://refivu.com/en/papers/b23c33ef-4b87-4e29-a0da-332c5c52f7a4-transformers-provably-learn-algorithmic-solutions-for-graph.md)
- [MUDDFormer: Breaking Residual Bottlenecks in Transformers via Multiway Dynamic Dense Connections](https://refivu.com/en/papers/2b11d064-bbbd-40ba-8755-91e0f98fcbf6-muddformer-breaking-residual-bottlenecks-in-transformers-via.md)
- [Graph Generative Pre-trained Transformer](https://refivu.com/en/papers/f6ca3fa0-e807-499d-af61-83b0cd89bf26-graph-generative-pre-trained-transformer.md)
- [Compositional Risk Minimization](https://refivu.com/en/papers/7f0b2d82-eb6c-417e-a42e-8b6899343b6c-compositional-risk-minimization.md)
- [Lower Bounds for Chain-of-Thought Reasoning in Hard-Attention Transformers](https://refivu.com/en/papers/d0ed8609-fa25-4225-88a2-81bbc32dbac9-lower-bounds-for-chain-of-thought-reasoning-in.md)
- [Learning-Order Autoregressive Models with Application to Molecular Graph Generation](https://refivu.com/en/papers/504d6ec4-8539-4bc7-b02b-fe990e79896e-learning-order-autoregressive-models-with-application-to.md)
- [DataDecide: How to Predict Best Pretraining Data with Small Experiments](https://refivu.com/en/papers/b2e5b927-f525-4063-8956-246603aff1fb-datadecide-how-to-predict-best-pretraining-data-with.md)
- [Subgroups Matter for Robust Bias Mitigation](https://refivu.com/en/papers/2a39c8a2-c675-4178-942e-a231ced5722f-subgroups-matter-for-robust-bias-mitigation.md)
- [From Generative to Episodic: Sample-Efficient Replicable Reinforcement Learning](https://refivu.com/en/papers/b78b13e6-6d29-4338-85d7-9e0fdb6ad862-from-generative-to-episodic-sample-efficient-replicable.md)

## Terms in this paper

- [neural network](https://refivu.com/en/terms/b1555e7d34eb-neural-network)
- [completeness](https://refivu.com/en/terms/dd08cb6dbac0-completeness)
- [violation rate](https://refivu.com/en/terms/27a75214fcc5-violation-rate)
- [ACSIncome](https://refivu.com/en/terms/dd5c8574154e-acsincome)
- [demographic parity](https://refivu.com/en/terms/935f52992599-demographic-parity)
- [INTERVAL ARITHMETIC](https://refivu.com/en/terms/10997c9989c4-interval-arithmetic)
- [Soundness](https://refivu.com/en/terms/3a49f711e430-soundness)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/bb7ed38f-7636-44c4-921c-7a661fe6cf0f-solving-probabilistic-verification-problems-of-neural)
