TL;DR
Certified robustness promises a "safe zone" (a radius $R$) around an input where a machine learning model's prediction is guaranteed to remain unchanged. This paper reveals that these mathematical guarantees often crumble in practice because they ignore the realities of floating-point arithmetic. By exploiting tiny rounding errors, the authors demonstrate a "rounding search" attack that finds adversarial examples inside supposedly safe radii, and they propose a sound mitigation using interval arithmetic.
What Problem Does This Paper Address?
In the arms race between adversarial attacks and defenses, certified robustness emerged as a gold standard. Unlike heuristic defenses, it provides a provable guarantee: for a given input $x$, no perturbation within a radius $R$ can flip the model's label.
However, there is a catch. These proofs are typically written for the set of real numbers ($\mathbb{R}$). In the real world, computers use floating-point (FP) representation, which can only represent a finite subset of real values. Every time a computer performs an operation—like calculating a norm or a square root—it must round the result to the nearest representable FP number.
The authors argue that this rounding leads to an overestimation of the certified radius. If the computed radius $\tilde{R}$ is even slightly larger than the true mathematical radius $R$, a "leeway" is created where adversarial examples might hide.
Methods
The authors introduce a two-pronged approach: a novel attack to expose the vulnerability and a formal defense to fix it.
The Rounding Search Attack
Standard adversarial attacks like PGD often fail here because the search space of floating-point values is discrete and the "leeway" created by rounding is extremely small (sometimes in the 15th decimal place). The authors' method works in three steps:
- Direction Finding: It identifies a perturbation direction $\nu$ toward the decision boundary. For linear models, this is the weight vector. For ReLU networks, they use ReluPGD, which leverages the piecewise linear nature of the network to find exact local gradients.
- Seeding: It jumps to a point $x'$ exactly at the edge of the computed certified radius $\tilde{R}$.
- Neighborhood Search: This is the "secret sauce." Instead of relying on gradients, it samples the immediate floating-point neighbors of the seed point. By checking these tiny variations, it finds specific FP representations that flip the label while still being "certified" as safe by the system.
The Mitigation: Rounded Interval Arithmetic
To fix this, the authors propose replacing standard FP arithmetic with rounded interval arithmetic. Instead of calculating a single (potentially rounded-up) number for the radius, the system calculates an interval $[low, high]$ that is guaranteed to contain the true real-valued result. By using the lower bound of this interval as the certified radius, the implementation becomes "sound"—it will never overestimate the safety zone.
Datasets
The researchers evaluated their attack on:
- Randomly initialized linear classifiers: Used to study the fundamental behavior of rounding errors across different dimensions.
- MNIST: The classic handwritten digit dataset, used to test linear SVMs and multi-layer ReLU neural networks.
Key Insights and Ideas
- The 50% Ceiling: In weak threat models (where the attacker only needs to satisfy the software-computed norm), the attack success rate on random linear models flattens at 50%. This is because rounding is essentially a coin flip; half the time the radius is overestimated (vulnerable), and half the time it is underestimated (safe).
- Dimensionality Accumulation: As the number of input features ($D$) increases, the number of arithmetic operations grows. This causes rounding errors to accumulate, sometimes reaching magnitudes as large as $10^3$ in extreme cases.
- Negligible Errors, Major Risks: The attack can succeed even when the rounding error is as small as $10^{-15}$. This proves that "close enough" isn't good enough for security guarantees.
Key Results
The attack proved surprisingly effective across various models and verifiers:
- Linear SVMs on MNIST: The attack achieved success rates up to 23.24% in the weak threat model.
- Neural Network Verifiers: The attack successfully found adversarial examples for images certified by state-of-the-art tools like $\beta$-CROWN (2.6% success) and MIP solvers (up to 15.8% success).
- Randomized Smoothing: Even probabilistic certifications were vulnerable, with success rates reaching 21.11% on MNIST.
- Defense Success: When the authors applied their interval arithmetic mitigation, the attack success rate dropped to 0%, effectively restoring the integrity of the certifications.
Limitations and Future Work
While the paper highlights a critical vulnerability, the authors note a few areas for further exploration:
- Scalability: The experiments focused on relatively small models (like those used for MNIST). Testing these vulnerabilities on large-scale architectures like ResNets or Transformers remains an open challenge.
- Probabilistic Interaction: For randomized smoothing, the relationship between the probability of failure ($\alpha$) and the rounding error isn't fully mapped out.
- Integration: While the interval arithmetic defense is theoretically sound, integrating it into every existing high-performance verifier without significant computational overhead is a task for future engineering.
Summary updated