Rounding Errors That Become Quantization Steps

A robustness certificate is a proof that no small change to an input can change a network's answer. It is only as trustworthy as the arithmetic behind it. Earlier work showed that the floating-point rounding inside verifiers lets attackers find misclassified inputs strictly inside "certified" regions. In full-precision networks these rounding errors are tiny, on the order of $10^{-13}$, and exploiting them takes a careful search. Low-bit quantized networks behave differently. After every layer, a quantized network rounds its running sum onto a coarse grid of 16, 4, or 2 values. If the verifier's arithmetic and the deployed kernel's arithmetic disagree by even one unit in the last place near a grid boundary, the two can land in different bins. That turns a $10^{-13}$ discrepancy into a full quantization step, and the step then propagates through every later layer.

Our core claim is that certificates for low-bit networks can be unsound even when the verifier itself uses correctly rounded interval arithmetic. The verifier reasons about one arithmetic, and the hardware runs another. Modern 4-bit floating-point formats accumulate in floating point in an order the user does not control. For those formats, a sound certificate must hold for every accumulation order the hardware might use, and it must treat rounding near a bin boundary as a choice between two possible bins rather than a single fixed result. We propose to measure how often existing certificates for quantized networks break when the network is executed with realistic deployed arithmetic. We then build a verifier that is sound across accumulation orders, and test it against exhaustively enumerated ground truth.

What exists and where this sits

The floating-point unsoundness line motivates the proposal. Getting a-Round Guarantees introduced the Rounding Search Attack, which searches the floating-point neighbours of a candidate input for violations. It found violations in 2.6% of certified images for β-CROWN and up to 15.83% for MIP solvers. It also showed that outward-rounded interval arithmetic drives its attack to 0%. Two limits matter here: it studies only continuous full-precision models, and it assumes the verifier and the model evaluate the same arithmetic. Stress-Testing Neural Network Verifiers with Provably Robust Instances built networks that are robust by construction (VeriStress-GT) and caught five leading verifiers returning false answers near the analytical robustness radius. It explicitly excludes quantized networks. Scaling Polyhedral Neural Network Verification on GPUs shows that rounding-mode management makes GPU verification sound. We reuse that technique.

The closest work on quantized models constrains our design. Quantization-Aware Interval Bound Propagation (QA-IBP) trains and verifies integer quantized networks under their discrete semantics, reaching 95.6% certified accuracy on MNIST at ε=4. Integer accumulation is exact, so for pure-integer pipelines the arithmetic mismatch we target largely disappears. QA-IBP says nothing about floating-point accumulation or microscaling formats. Verifying Properties of Binary Neural Networks Using Sparse Polynomial Optimization shows that a $-10^{-14}$ solver error can flip a binary neuron's sign. It handles this by solving a semidefinite relaxation and wrapping the result in interval arithmetic. This is direct evidence that small errors become discrete flips, but the work covers only 1-bit networks and only the solver's own arithmetic.

The quantization-accuracy line supplies the application setting. Bridging the Gap Between Promise and Performance for Microscaling FP4 Quantization shows that MXFP4 and NVFP4 are now the hardware-native low-bit formats. These are 4-bit floating-point formats in which blocks of 16 or 32 values share one scale factor. With per-block rotations they recover 98–99% of FP16 accuracy while running up to 6× faster per layer. QuIP and Quantization Error Propagation show that at 2 bits, per-layer errors compound across depth. That compounding is the mechanism that lets one bin flip in an early layer spread. Deployment is moving toward exactly these formats, so the gap is not academic.

Core Claim

Consider a quantized layer. It computes an accumulator $s = \sum_{i=1}^{n} w_i x_i$ in floating point and then maps $s$ to a grid code $q(s)$. If the kernel's summation order is unknown, the only order-independent statement available is the standard worst-case bound

$$|\mathrm{fl}(s) - s| \le \gamma_n \sum_{i=1}^{n} |w_i x_i|, \qquad \gamma_n = \frac{n u}{1 - n u},$$

where $u$ is the accumulator's unit roundoff (half the gap between adjacent representable numbers) and $\mathrm{fl}(s)$ is the computed sum under any ordering. Whenever this enclosure contains a rounding threshold of $q$, the deployed output code is genuinely ambiguous between two adjacent bins. A sound verifier must propagate both.

We make two predictions. First, the fraction of accumulators that fall inside such an ambiguity window grows as bit-width falls, because the grid has fewer, wider bins and small-magnitude sums concentrate near the thresholds. Second, certificates computed on the "fake-quant" model (full-precision arithmetic with quantize-dequantize steps inserted) or on a fixed-order emulation will be violated on deployed kernels at rates well above the full-precision rates reported by Getting a-Round Guarantees.

Research Program

The work has three parts.

The first part is a kernel-disagreement attack. It extends the Rounding Search Attack from searching over neighbouring input values to searching over accumulation orders and bin boundaries. Inside a certified input region, it first moves toward the decision boundary using gradients. It then searches for inputs that push some layer's accumulator into its ambiguity window. Finally, it evaluates the network under a family of accumulation orders: sequential, pairwise, blocked by 16 and by 32, and the actual orders produced by available FP4 kernels where we can run them. The goal is to find an order under which the label flips.

The second part is an order-agnostic verifier. It extends QA-IBP-style interval propagation over grid codes in three ways. It encloses each accumulator using the bound above, with outward rounding in the verifier itself following Scaling Polyhedral Neural Network Verification on GPUs. It maps an enclosure that straddles a threshold to a set of two codes, rather than widening the enclosure to a full interval. It also models the shared block scale of MXFP4/NVFP4 explicitly, as one rounded power-of-two or FP8 value per block. Branch-and-bound over the ambiguous codes restores tightness, and the number of ambiguous codes is reported per instance.

The third part is a ground-truth suite in the spirit of VeriStress-GT. Pixel values are integers, so an L∞ perturbation of a few pixels on a quantized input contains finitely many images. For small patches, we can enumerate every such image under every accumulation order in our family. This yields exact labels of robust or not robust for quantized networks, with no reliance on verifier consensus.

Baselines

The naive reference is to certify the fake-quant model with α,β-CROWN in default floating point and assume the certificate transfers to deployment. This is how most practitioners would certify a compressed model today. We will run it on identical trained networks and inputs with default settings and report its certified accuracy together with its violation rate under the kernel-disagreement attack.

The strongest existing method is QA-IBP's complete verifier Quantization-Aware Interval Bound Propagation, which reports 95.6% certified accuracy on MNIST and 59.8% on Fashion-MNIST at ε=4. It is the strongest competitor because it already models discrete quantized semantics. We run it with the same networks, the same 20-second timeout per sample that it reports, and the same GPU. Beating it means two things together. First, zero ground-truth violations for our verifier where QA-IBP's certificates have nonzero violations on float-accumulating formats. Second, certified accuracy within a few points of QA-IBP on INT8/INT4, where QA-IBP should be sound. For 1-bit networks we also run the sparse-polynomial verifier Verifying Properties of Binary Neural Networks Using Sparse Polynomial Optimization on its own MNIST/CIFAR-10 scale of roughly 9,000 neurons. No reported result was found on Lacuna for certified accuracy of any verifier on MXFP4 or NVFP4 networks, so for those formats the comparison is entirely our own measurement.

Two ablations isolate the key ingredient. The first is order-exact emulation: the verifier models one fixed accumulation order with outward rounding, which is sound for exactly one kernel. It tests whether order-agnosticism is what matters. The second is uniform one-step inflation: every interval is widened by a full quantization step, which is sound but loose. It tests whether the two-code treatment of ambiguous bins is what keeps bounds useful.

Why not just…?

Why not just use integer quantization, where accumulation is exact? For pure INT8/INT4 pipelines this objection is largely right, and we treat those formats as a control where our predicted violation rate is near zero. If QA-IBP's certificates hold on integer kernels in our attack, that confirms the scoping rather than weakening it. The claim is about floating-point-accumulated formats. Bridging the Gap documents that hardware is shipping these formats natively, with multi-fold speedups, so deployment will not stay integer-only.

Why not just turn on outward rounding in the verifier? Getting a-Round Guarantees shows that outward rounding fixes the verifier's own arithmetic. It does not make the verifier's model of the network match a kernel that sums in a different order. The order-exact-emulation ablation is exactly this fix. If the kernel-disagreement attack finds no violations against it across our order family, the order-agnostic machinery is unnecessary, and we would say so.

Why not just shrink the certified radius by a safety margin? An input-space margin does not bound bin flips. A flip happens wherever an accumulator touches a threshold, regardless of how far the input is from the certified region's edge. The logit-space equivalent is uniform one-step inflation, which is sound but, we expect, nearly vacuous at 2–4 bits. That ablation measures directly how much certified accuracy the two-code treatment recovers over it.

Why not just pin a deterministic kernel? Where the deployer controls the kernel, order-exact emulation is a legitimate and cheaper answer, and we report it as such. It fails whenever the certificate must travel across hardware or library versions, which is the usual case for released models.

Proposed Experiments

We will train networks on MNIST, Fashion-MNIST, and CIFAR-10 in five settings. Four use QA-IBP training at INT8, INT4, INT2, and binary precision. The fifth uses MXFP4/NVFP4 weights and activations, obtained by quantizing trained full-precision networks with per-block rotations. For each setting we certify with every baseline and then attack every certificate. We report the violation rate among certified points against bit-width, with the full-precision rates from Getting a-Round Guarantees as the reference. We also report certified accuracy, runtime, and the average number of ambiguous codes for our verifier.

The ground-truth suite scores every verifier's soundness exactly on small patches. To tie the finding to the accuracy-loss literature, we will also measure the ambiguity-window fraction and the rate at which two kernels disagree on the top token. That measurement uses Llama-2-7B with W4A4 FP4 and 3-bit and 2-bit activation-quantized variants on WikiText-2. Only activation quantization rounds running sums to a grid, so weight-only settings serve as the control.

The decisive checks are these. The premise fails if violation rates on float-accumulated low-bit networks are not clearly above the integer control and do not rise as bits fall. The method fails if our verifier ever certifies a point the enumeration proves non-robust. It is not useful if it certifies substantially less than order-exact emulation on the same instances.