[Paper Review] Correctness Verification of Neural Networks
This paper introduces a novel framework for globally verifying the correctness of neural networks in perception tasks by specifying a world state space and an observation process that maps states to inputs. Using tiling and robustness verification techniques, it computes upper bounds on prediction error across the entire target input space and detects inputs outside the intended domain, ensuring correctness guarantees or flagging unsafe inputs.
We present a novel framework for specifying and verifying correctness globally for neural networks on perception tasks. Most previous works on neural network verification for perception tasks focus on robustness verification. Unlike robustness verification, which aims to verify that the prediction of a network is stable in some local regions around labelled points, our framework provides a way to specify correctness globally in the whole target input space and verify that the network is correct for all target inputs (or find the regions where the network is not correct). We provide a specification through 1) a state space consisting of all relevant states of the world and 2) an observation process that produces neural network inputs from the states of the world. Tiling the state and input spaces with a finite number of tiles, obtaining ground truth bounds from the state tiles and network output bounds from the input tiles, then comparing the ground truth and network output bounds delivers an upper bound on the network output error for any inputs of interest. The presented framework also enables detecting illegal inputs -- inputs that are not contained in (or close to) the target input space as defined by the state space and observation process (the neural network is not designed to work on them), so that we can flag when we don't have guarantees. Results from two case studies highlight the ability of our technique to verify error bounds over the whole target input space and show how the error bounds vary over the state and input spaces.
Motivation & Objective
- To address the lack of systematic methods for verifying neural network correctness across the entire target input space, not just local robustness.
- To provide formal correctness guarantees for neural networks in perception tasks, ensuring predictions are accurate within a specified tolerance for all inputs in the defined input space.
- To detect inputs that fall outside the intended input space, flagging them as potentially unsafe or unsupported.
- To enable systematic verification of neural network behavior across diverse input regions, including identifying vulnerable regions where predictions may fail.
Proposed method
- Define a state space representing all relevant world states and an observation process mapping states to neural network inputs, forming the target input space.
- Tile the state space into finite regions, each representing a set of world states with bounded ground truth outputs.
- Project each state tile into input space via the observation process to form input tiles, each with a bounding box of possible inputs.
- Use robustness verification techniques to compute upper and lower bounds on neural network outputs for each input tile.
- Compare ground truth bounds (from state tiles) with network output bounds (from input tiles) to derive an upper bound on prediction error per tile.
- Flag inputs outside the target input space as illegal, where no correctness guarantees apply.
Experimental results
Research questions
- RQ1Can we formally verify that a neural network produces correct predictions within a specified tolerance across the entire target input space, rather than just locally?
- RQ2How can we systematically detect inputs that are outside the intended domain of the neural network, where correctness guarantees do not hold?
- RQ3What is the impact of input space tiling resolution and verification algorithm choice on verification performance and accuracy?
- RQ4How does the framework identify regions of the input space where the network may be vulnerable to misprediction?
Key findings
- The framework successfully verifies that the neural network maintains low error across the majority of the target input space, with maximum error bounded across all verified regions.
- For the LiDAR case study, adaptive tiling with SAT-based verification achieved 98.3% region verification with a 5x speedup over fixed tiling.
- SAT-based BNN verification was 200–500x faster than MILP-based real-valued network verification, demonstrating significant performance gains.
- Smaller tile sizes reduced false positives in illegal input detection, as extra space in bounding boxes was minimized.
- The framework identified perceptually similar inputs that caused misclassification, revealing network vulnerabilities in specific input regions.
- The method enables detection of inputs not in the target input space, allowing runtime flagging of potentially unsafe predictions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.