Global Correctness and Safety Verification for Neural Networks

This direction is merged into another direction: formal verification scalability (verification scalability). Its last version stays readable and citable here.

Version 1 of 133 papers36 conceptsfrozen 2026-10-04

Traditional neural network verification has long been preoccupied with local robustness: the guarantee that a model's prediction won't change if you slightly nudge a specific input. While useful for defending against adversarial "noise," this approach is fundamentally limited. It tells us that a model is stable around a single point, but it says nothing about how the model behaves across its entire operational domain.

To deploy AI in safety-critical environments—like autonomous vehicles or medical diagnostics—we need to move from local stability to global correctness. This research direction focuses on proving that a network satisfies specific logical properties across every possible valid input it might encounter.

The Limits of Local Robustness

Most verification tools define safety using small geometric regions, such as $L_\infty$ balls, around individual training examples. As Chuqin Geng and Xujie Si point out in Towards Reliable Neural Specifications, these narrow definitions fail to account for the vast distances between natural images. A model can be "robust" at every point in a test set yet still harbor "adversarial dangerous regions" in the unexplored spaces between them.

Martin Rinard and Yichen Yang argue in Correctness Verification of Neural Networks that true safety requires a symbolic understanding of the world. Instead of checking pixels, we should verify that a network produces correct outputs for every state in a defined environment.

Shifting the Specification from Inputs to Internal Logic

One of the most powerful shifts in this field is moving the "specification"—the definition of what is correct—from the input space to the network's internal representations.

In Learning Minimal NAP Specifications for Neural Network Verification, researchers introduce Neural Activation Patterns (NAPs). Instead of defining a safe neighborhood around a picture of a stop sign, they identify the specific set of internal neurons that must fire to trigger a "stop" classification. By verifying these internal logic patterns, Chuqin Geng and colleagues can certify model behavior across regions of the input space that are billions of times larger than traditional methods allow.

Quantitative Verification and Preimage Analysis

Standard verification is binary: a property either holds or it doesn't. However, for complex systems, a "no" isn't very helpful. Engineers need to know how much of the input space is unsafe.

Benjie Wang and Marta Kwiatkowska address this in Provable Preimage Under-Approximation for Neural Networks. They develop algorithms to compute the preimage—the set of all possible inputs that lead to a specific output (like a "failure" state). By representing these sets as a union of geometric shapes, they enable quantitative verification, allowing developers to prove exactly what proportion of the input space is guaranteed to be safe.

Designing for Verifiability

Sometimes, the complexity of standard neural networks makes global verification computationally impossible. This has led to the development of "verifiable-by-design" architectures.

In Global Robustness Verification Networks, Weidi Sun and Xiyue Zhang introduce Sliding Door Networks (SDNs). These networks use specialized internal structures that simplify activation patterns. This architectural constraint makes it feasible for SMT solvers like Z3 to hunt down every possible adversarial region across the entire input domain, as explored in Using Z3 for Formal Modeling and Verification of FNN Global Robustness.

Verifying Global Hyperproperties

Global verification isn't just about safety; it's about ensuring the model follows fundamental rules of behavior, such as fairness (treating similar inputs similarly) or monotonicity (ensuring that increasing a "risk" factor doesn't decrease a "risk" score).

David Boetius and Stefan Leue demonstrate in Verifying Global Neural Network Specifications using Hyperproperties that these complex global requirements can be transformed into local reachability problems through a technique called self-composition. This allows existing tools to provide rigorous proofs for properties that were previously considered too abstract to verify globally.

By combining these techniques—symbolic state spaces, internal logic specifications, and verifiable architectures—the field is moving toward a future where neural networks are no longer "black boxes," but provably reliable components of critical infrastructure.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_global_correctness_and_safety_verificati_ad8f7815,
  title = {Global Correctness and Safety Verification for Neural Networks},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/global-correctness-and-safety-verification-for-neural-networks/rdr_ad8f7815d95349b6a64a210f6453164e},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-26},
}

This exact version (version 1, frozen text):

@misc{lacuna_global_correctness_and_safety_verificati_ad8f7815_v1,
  title = {Global Correctness and Safety Verification for Neural Networks},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/global-correctness-and-safety-verification-for-neural-networks/rdr_ad8f7815d95349b6a64a210f6453164e/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-26},
}