Fooling a Complete Neural Network Verifier

Dániel Zombori, Balázs Bánhelyi, Tibor Csendes, István Megyeri, Márk Jelasity

This paper exposes a critical vulnerability in the "gold standard" of neural network security: complete verifiers. While these tools are mathematically designed to prove a network's robustness, researchers demonstrate that they can be systematically fooled by exploiting the tiny numerical roundoff errors inherent in floating-point arithmetic.

The Illusion of Perfect Security

As neural networks are increasingly deployed in safety-critical systems like autonomous driving or medical diagnostics, we need absolute certainty that they won't fail when faced with small input perturbations. Verification is the process of mathematically proving that for any input within a certain range, the network's output remains consistent.

"Complete" verifiers are the most powerful tools in this space. Unlike heuristic methods, they are designed to provide an exact, guaranteed answer. However, these verifiers typically model the network using ideal real numbers or specific mathematical abstractions (like Mixed-Integer Linear Programming). In reality, computers execute these models using limited-precision floating-point arithmetic (IEEE 754). This paper addresses the dangerous gap between the verifier’s idealized mathematical model and actual hardware execution, revealing it as a massive security hole.

Crafting the Attack: The Adversarial Unit

The core of the attack relies on an Adversarial Unit. The authors exploit the fact that in floating-point math, the order of operations matters significantly when dealing with numbers of vastly different magnitudes. For example, if $\omega$ is a very large number, the calculation $(\omega + 1) - \omega$ might result in $0$ due to roundoff error, whereas $(\omega - \omega) + 1$ would correctly result in $1$.

1. The Simple Attack

The researchers designed a ReLU-based unit where a signal is added to a massive weight ($\omega$) and then subtracted back.

The Adversarial Unit

Because the verifier models the math ideally, it "sees" the signal pass through perfectly. The actual hardware, however, experiences roundoff error and sees zero.

2. Obfuscation

To prevent the attack from being easily spotted by simple weight-distribution checks (which would flag a single massive $\omega$), the authors "smear" the large weights across multiple layers.

Obfuscated Adversarial Unit

By distributing the multiplication across $n$ layers, the individual weights look much more "normal" to an observer, hiding the numerical trap.

3. Backdoor Insertion

The researchers integrated this adversarial "switch" into a standard MNIST classifier (WK17a). The switch is triggered by a specific pattern, such as a single pixel in the top-left corner. When the trigger is present, the roundoff error "activates," causing the network to shift its prediction (e.g., predicting a "5" as a "6"). The verifier remains blissfully unaware of this conditional logic.

4. Proposed Defense

To combat this, the authors propose Weight Perturbation—adding a tiny amount of random noise to the network weights. This breaks the precise numerical "trap" required for the roundoff error to reliably fool the verifier.

Key Insights and Results

The implications of this vulnerability are severe:

  • The "Sloppiness" Vulnerability: Any abstraction a verifier makes to improve efficiency—such as ignoring the exact order of additions or the specific floating-point representation—is a potential source of a security breach.
  • Arbitrary Divergence: This isn't just a small error margin. Numerical attacks can achieve an arbitrary difference between how a model is verified and how it actually behaves in production.
  • A False Sense of Security: A "complete" verifier might certify a network as 100% robust against adversarial attacks, even while that same network contains a functional backdoor that is 100% effective.
  • Hardware-Dependent Verification: Because different hardware might sum signals in different orders (especially in parallel implementations), a network that is "safe" on a CPU might be "unsafe" on a GPU.

In testing, the state-of-the-art verifier MIPVerify was fooled 100% of the time by the simple adversarial network across three different underlying solvers (Gurobi, CPLEX, and GLPK). When the backdoor was inserted into the MNIST network, the verifier reported a 4.38% adversarial error (identical to the clean network), completely missing the fact that the backdoored network had a 100% error rate when the trigger was active. Other popular verifiers like Neurify, Nnenum, and RefinePoly were also found susceptible.

Limitations and the Path Forward

The attack currently requires some knowledge of how the target system executes the network (e.g., the exact order of additions). If the execution order is non-deterministic—which is common in some parallel GPU kernels—the attack becomes harder to aim reliably.

Furthermore, while weight perturbation works against this specific exploit, it is a relatively simple defense. The authors conjecture that more sophisticated numerical attacks might still bypass it. Ultimately, for verification to be truly reliable, it must account for the exact bit-level details of the computation. Doing so, however, significantly increases the complexity and computational cost of the verification problem.

Summary updated

BibTeX
@inproceedings{zombori2021fooling,
  author = {Dániel Zombori and Balázs Bánhelyi and Tibor Csendes and István Megyeri and Márk Jelasity},
  title = {{Fooling a Complete Neural Network Verifier}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
}
Figure