Evading Adversarial Example Detection Defenses with Orthogonal Projected Gradient Descent

Oliver Bryniarski, Nabeel Hingun, Pedro Pachuca, Vincent Wang, Nicholas Carlini

Introduction

Evading adversarial example detection defenses requires finding adversarial inputs that must simultaneously satisfy two distinct conditions: they must be misclassified by the primary model, and they must be detected as non-adversarial by the secondary detection model. Existing attacks that attempt to satisfy these multiple simultaneous constraints often over-optimize against one constraint at the cost of satisfying another. This paper introduces Orthogonal Projected Gradient Descent (O-PGD), a simple yet powerful modification to standard attacks that prevents optimization steps for one goal from undoing progress on the other. By applying this technique, the authors successfully reduced the detection rate of four state-of-the-art defenses to 0% while maintaining a 100% attack success rate.

The Challenge of Dual Constraints

Adversarial examples are inputs carefully crafted to make machine learning models fail. To counter them, researchers frequently deploy detection defenses: a secondary model (the detector) that checks if an input looks "suspicious" before the primary classifier processes it.

To break such a defense, an attacker must satisfy two non-linear constraints simultaneously:

  1. Misclassification: The primary classifier $f$ must be fooled ($f(x) < 0$).
  2. Evasion: The detector $g$ must label the input as "benign" ($g(x) < 0$).

Traditionally, attackers use a "Lagrangian relaxation," which combines these two goals into a single loss function: $\text{Loss} = \text{Loss}(f) + \lambda \cdot \text{Loss}(g)$. However, this is notoriously difficult to tune. In the high-dimensional, non-convex landscapes of deep neural networks, the gradients for fooling a classifier and fooling a detector often point in nearly opposite directions. A standard optimizer ends up in a tug-of-war, "undoing" the progress of the previous step and getting stuck in local minima where neither constraint is fully satisfied.

Methodology: S-PGD and O-PGD

To resolve the "undoing" problem, the authors propose two new optimization strategies that require only minor modifications to standard Projected Gradient Descent (PGD):

  • Selective PGD (S-PGD): Instead of a weighted sum, the attack prioritizes goals. If the classifier isn't fooled yet, it only takes steps to minimize $\text{Loss}(f)$. Once the classifier is fooled, it switches to minimizing $\text{Loss}(g)$. While this prevents one loss from dominating the other, it can still lead to bouncing in and out of the target regions.
  • Orthogonal PGD (O-PGD): This more sophisticated approach actively manages competing gradients. When the attack takes a step to satisfy one constraint, it "orthogonalizes" the gradient by subtracting the component that would move the input away from satisfying the other constraint. Essentially, it allows the optimizer to slide along the "safe" boundary of one goal while making progress on the second.
Comparison of optimization trajectories: Standard gradient descent (left), Selective PGD (middle), and Orthogonal PGD (right).

Unlike many "adaptive attacks" that require complex, hand-crafted loss functions for every new defense, O-PGD serves as a general-purpose optimization trick.

Experimental Validation

The authors evaluated their attacks on the datasets where the original defenses claimed the best performance, including CIFAR-10, ImageNet, and MNIST. They applied O-PGD to four previously "unbroken" state-of-the-art defenses and achieved devastating results:

  • Honeypot Defense (CCS '20): Reduced the detection rate from nearly 100% to 0% while maintaining 100% attack success.
  • Dense Layer Analysis (IEEE Euro S&P '20): Reduced detection AUC to 0.38 (worse than random guessing).
  • Sensitivity Inconsistency (AAAI '21): Achieved a 100% success rate under standard $\epsilon=0.031$ bounds.
  • Steganalysis/SPAM (CVPR '19): Achieved a 98.8% success rate at a 5% false positive rate, with an AUC of 0.44. For this originally non-differentiable detector, creating a differentiable approximation was enough to allow O-PGD to break it completely, reinforcing that "security through non-differentiability" is not robust.

In all evaluated cases, the "protected" models were reduced to 0% accuracy while the detectors became effectively useless.

Limitations and Future Work

While highly effective, O-PGD is a white-box attack, assuming the adversary has access to the gradients of both the classifier and the detector (or a good proxy). Additionally, attacking high-resolution defenses (like those on ImageNet) can still incur significant computational costs if the defense itself has low throughput.

Ultimately, O-PGD is not a "silver bullet" that replaces all existing techniques. Some defenses might still require specific loss function engineering. However, O-PGD provides a vastly more reliable optimization backbone for those efforts, proving that many defenses fail not because they are inherently secure, but because standard attack optimizers are ill-equipped to handle multiple constraints.

Summary updated

BibTeX
@inproceedings{bryniarski2022evading,
  author = {Oliver Bryniarski and Nabeel Hingun and Pedro Pachuca and Vincent Wang and Nicholas Carlini},
  title = {{Evading Adversarial Example Detection Defenses with Orthogonal Projected Gradient Descent}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=af1eUDdUVz},
}
Figure