Certified Robustness against Sparse Adversarial Perturbations via Data Localization

Ambar Pal, René Vidal, Jeremias Sulam

TL;DR

This paper proves that "data localization"—the tendency of natural data to cluster in tiny volumes of space—is a necessary and sufficient condition for robustness against sparse ($\ell_0$) adversarial attacks. Leveraging this insight, the authors introduce Box-NN, a simple classifier using axis-aligned boxes that achieves new state-of-the-art certified robustness on MNIST and Fashion-MNIST.

What Problem Does This Paper Address?

Adversarial attacks often involve small, human-imperceptible changes that flip a model's prediction. This paper focuses on sparse ($\ell_0$) attacks, where an intruder can change only a few pixels but can modify them by any amount (e.g., turning a black pixel completely white).

While humans are naturally robust to such "salt-and-pepper" noise, machine learning models are notoriously fragile. Theoretical "impossibility" results have previously suggested that no robust classifier can exist for general data distributions. This creates a paradox: why are humans robust if theory says it's impossible? Furthermore, existing "certified" defenses—which provide a mathematical guarantee that no attack within a certain radius will work—often rely on expensive ensembles or complex voting schemes that are hard to scale.

Methods

The authors bridge the gap between theory and practice through two main contributions:

  1. Theoretical Foundation: They extend the theory of "data localization" to the $\ell_0$ metric. They prove that if a robust classifier exists, the data distribution must be localized (concentrated in small-volume regions). Conversely, if the data is localized and these regions are sufficiently separated, a robust classifier can be built.
  2. Box-NN Classifier: Inspired by the geometry of $\ell_0$ perturbations (which move points along coordinate axes), they propose a "nearest box" classifier. Instead of complex neural network boundaries, Box-NN uses decision regions made of axis-aligned boxes.
  3. Distance Metric: They derive a simple, closed-form formula for the $\ell_0$ distance from a point to an axis-aligned box, making it computationally efficient.
  4. Learning: They train the boxes by maximizing a "certified accuracy" objective. To make this differentiable, they use several optimization tricks, including a "soft-min" approximation and "conical" relaxations of indicator functions.
Figure 1: S1 is the green shaded region around xdog, where the class dog is localized, and S2 is the orange shaded region around xcat, where the class cat is localized.

Datasets

The authors evaluated their approach on two standard computer vision benchmarks:

  • MNIST: Handwritten digits.
  • Fashion-MNIST: Images of clothing items.

Key Insights and Ideas

  • Localization Bypasses Impossibility: The "impossibility" of robustness only applies to distributions that fill the entire input space. Natural data (like images of cats vs. dogs) lives on a very low-dimensional "manifold," making the theoretical lower bounds for error vacuous and robustness possible.
  • Geometry-Aware Design: Because $\ell_0$ attacks modify individual coordinates, the "threat zones" are naturally aligned with the axes. Axis-aligned boxes are the most efficient geometric primitive to capture this specific type of vulnerability.
  • Simplicity is a Strength: Unlike state-of-the-art methods that use large ensembles (Randomized Ablation), Box-NN is a single, deterministic model. Its robustness comes from its architecture's alignment with the data's geometry rather than statistical averaging.

Key Results

Box-NN significantly outperforms previous certified defenses in terms of median certified radius ($\bar{r}$)—the maximum number of pixels an attacker can change while the model remains at least 50% accurate.

Dataset Method Median Certified Radius ($\bar{r}$)
MNIST Box-NN (Ours) 13
Previous Best (FPA) 12
Fashion-MNIST Box-NN (Ours) 22
Previous Best (RA) 16

Beyond the median, Box-NN's certified accuracy curves generally dominate prior methods across a wide range of attack strengths, showing it is more robust overall without needing the heavy hyperparameter tuning required by ensemble methods.

Limitations and Future Work

The primary hurdle is optimization. Learning the optimal set of axis-aligned boxes is difficult because the decision boundaries are "stiff." While the authors successfully used optimization tricks for MNIST-scale data, scaling Box-NN to high-resolution, complex datasets like ImageNet remains a challenge.

The authors suggest that future work should look into "richer" decision boundaries that maintain the efficiency of the $\ell_0$ distance calculation while being easier to learn via standard gradient descent.

Summary updated

BibTeX
@article{pal2024certified,
  author = {Ambar Pal and René Vidal and Jeremias Sulam},
  title = {{Certified Robustness against Sparse Adversarial Perturbations via Data Localization}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=17Ld3davzF},
}
Figure