Provable Defenses against Adversarial Examples via the Convex Outer Adversarial Polytope

Eric Wong, J. Zico Kolter

TL;DR

This paper introduces a method to train neural networks that are provably robust against adversarial attacks. By using a convex relaxation of the network's behavior, the authors provide a mathematical guarantee that no small perturbation can flip a model's prediction, effectively ending the "arms race" between attackers and defenders for specific types of models.

The Cat-and-Mouse Game of Adversarial Attacks

Deep learning models are notoriously fragile. An "adversarial example"—an image with tiny, invisible pixel changes—can easily trick a state-of-the-art model into misclassifying a stop sign as a speed limit sign.

Until this paper, most defenses were "empirical." Researchers would find a way to harden a model against a specific attack, only for a new, more clever attack to break it a few months later. This created a cat-and-mouse game with no clear winner. The authors of this paper argue that we need provable robustness: a mathematical certificate that guarantees a model's prediction will not change for any possible perturbation within a certain range (e.g., a small $L_\infty$ norm ball).

Methods: Bounding the Adversarial Polytope

The core challenge in proving robustness is that the set of all possible outputs a network can produce when its input is slightly perturbed—known as the "adversarial polytope"—is non-convex and incredibly complex to analyze.

Overall pipeline showing the convex outer bound of the adversarial polytope

To overcome this, the authors propose a novel pipeline:

  1. Convex Relaxation: The authors replace the non-linear ReLU activation functions with their convex outer bounds. Instead of a sharp, non-convex "V" shape, they treat the ReLU as a bounded area (a triangle in 2D). This turns the messy, non-convex adversarial polytope into a simpler, mathematically tractable convex outer adversarial polytope.
Exact bounded ReLU set versus its convex relaxation
  1. Linear Programming (LP): Finding the worst-case attack within this convex set becomes a Linear Programming problem. If the "best" attack in this larger, relaxed set can't fool the model, then no attack in the real, smaller set can either.
  2. The Dual Network: Solving a massive LP for every training step is computationally impossible. The paper’s "aha!" moment is showing that the dual of this LP can be represented as a neural network itself. This "dual network" looks very similar to standard backpropagation.
  3. Robust Optimization: By minimizing the loss of this dual network, the authors can train the model to specifically shrink the size of the adversarial polytope, making the model inherently resistant to attacks.

Key Insights

  • Duality is the Key: The most significant insight is that provable robustness doesn't require slow, specialized optimization solvers. By looking at the dual problem, you can use standard deep learning tools (like GPUs and auto-differentiation) to compute "proofs" of robustness.
  • Zero False Negatives: The method provides a "detection" mechanism. If the system flags an input as potentially adversarial, it might be a false alarm, but it is guaranteed to catch every single actual adversarial example within the specified bounds.
  • Layer-wise Bounds: To make the relaxation work, the authors developed an efficient way to propagate upper and lower bounds for every neuron in the network, layer by layer.

Results and Benchmarks

The authors evaluated their method on standard benchmarks including MNIST, Fashion-MNIST, SVHN (Street View House Numbers), and HAR (Human Activity Recognition). The results represent a massive leap forward for provable defenses:

  • MNIST: On a convolutional network with a perturbation of $\epsilon = 0.1$, they achieved a robust error bound of 5.8%. This means that for 94.2% of the test set, it is mathematically impossible for an $L_\infty$ attack to change the prediction. For context, previous provable methods were stuck at around 35% error.
  • SVHN: They achieved a robust error bound of 40.67%. While this sounds high, it was the first time a provable guarantee of this scale was achieved on a complex, real-world image dataset.
  • Efficiency: While training is about 100x slower than standard training (due to the need to compute bounds for every input dimension), it is still "tractable" on a single GPU, unlike previous formal verification methods that could take days for a single image.

Limitations and Future Work

While groundbreaking, the approach has limitations. Scalability remains a hurdle; the current method requires a pass through the network for every dimension of the input, which is too slow for ImageNet-sized images. Furthermore, because the method uses a convex outer approximation, the bounds are "pessimistic"—the model might actually be more robust than the proof suggests. Finally, the paper focuses on $L_\infty$ and $L_p$ norm perturbations, meaning it does not yet account for "semantic" adversarial attacks like rotations, translations, or changes in lighting.

Summary updated

BibTeX
@inproceedings{wong2018provable,
  author = {Eric Wong and J. Zico Kolter},
  title = {{Provable Defenses against Adversarial Examples via the Convex Outer Adversarial Polytope}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=rJZrPjZO-B},
}
Figure