A Nonlinear Abstract Domain for Bayesian Neural Networks
Qiuhan Gu, Gagandeep Singh
Abstract
Bayesian neural networks (BNNs) explicitly model epistemic uncertainty by leveraging probability distributions over network parameters, making them better suited for risk-aware decision-making. Yet soundly propagating uncertainty through the network and capturing the entire output distribution to support predictive uncertainty quantification remains a fundamental challenge. Existing approaches are either sampling-based, providing no formal guarantees, or propagate only selected statistical properties, such as expectations and entropy, limiting their applicability to general probabilistic queries. To address these challenges, we present the first nonlinear abstract domain for soundly approximating complete probability distributions of BNNs. The abstract domain builds upon a novel marginal collecting concrete semantics that soundly abstracts the classical joint-measure semantics. It combines support partitioning with exponential-affine bounds to represent probability measures, capturing both discrete and continuous components of mixed distributions as well as nonlinear density shapes over bounded and unbounded supports. We develop sound abstract transformers that can efficiently handle high-dimensional affine transformations and nonlinear ReLU activations, while remaining highly parallelizable. We further extend the framework beyond BNNs to support bounded-loop probabilistic programs with Bayesian inference to demonstrate its generality. We implement the resulting abstract interpreter as a GPU-accelerated analyzer. Experimental results show that the framework significantly improves precision over existing probabilistic reasoning approaches while soundly capturing the complete output distribution, demonstrating strong efficiency and scalability.
Create a lesson
Related papers
Validating Concurrent Correctness Witnesses with Ghosts by Thread-Modular Abstract Interpretation
Shared title terminology · Michael Schwarz, Zhendong Ang, Umang Mathur
Detecting Empty Abstractions and Pruning Dead Paths in the Linux eBPF Verifier with Abstract Step Functions
Shared title terminology · Harishankar Vishwanatha, Srinivas Narayana, Santosh Nagarakatte
Retargetable Compilation for Tensor Kernels via a Unified Layout Abstraction
Shared title terminology · Likai Ma, Renze Chen, Tianqi Li et al.
Verified Implementation of the Next-gen Borrow Checking Algorithm for Rust via Abstract Interpretation
Shared title terminology · Jinhua Wu, Yuting Wang, Zhemin Chen
Abstract Lipschitz Continuity
Shared title terminology · Marco Campion, Isabella Mastroeni, Michele Pasqua et al.
Faultless: A Program Equivalence Technique for Validating and Evaluating Neural Decompilers
Shared title terminology · Luke Dramko, Claire Le Goues, Edward Schwartz