Distributionally Adversarial Attack

Tianhang Zheng, Changyou Chen, Kui Ren

Introduction

Most existing adversarial attacks, such as Projected Gradient Descent (PGD), operate on a per-sample basis. These methods take a single image and find the optimal noise to fool a classifier. While effective, this approach lacks a global statistical interpretation and ignores the fact that data lives on a manifold. By treating every sample independently, per-sample attacks may fail to find the most damaging "distributional shift" that maximizes the overall generalization risk of a model.

Distributionally Adversarial Attack (DAA) shifts the focus from optimizing individual image perturbations to optimizing the entire adversarial data distribution. The authors argue that a truly universal adversary should find an adversarial distribution that remains close to the original data while maximizing the expected loss across the entire dataset.

Methodology

The core innovation of DAA is lifting the optimization problem from the space of individual images to the space of probability measures.

  1. Adversarial Attack as Wasserstein Gradient Flows (WGFs): The attack is formulated as a process of evolving a probability distribution over time to maximize an energy functional. This functional balances maximizing classification loss with staying close to the original data distribution, measured via KL-divergence.
  2. Particle Approximation: To make the continuous distribution optimization tractable, the authors use "particles" (individual data samples) to approximate the distribution. This creates a scenario where data points explicitly depend on one another through a kernel function (e.g., the RBF kernel) during attack generation.
  3. Algorithmic Variants:
    • DAA-BLOB: Based on the Lagrangian blob method, evolving particles along a velocity field derived from the gradient flow.
  4. DAA-DGF: Based on Discrete Gradient Flows, treating the attack as a sequence of sub-optimization problems.
  5. Scalability: To handle the $O(M^2)$ complexity of interacting particles, a minibatch-based subsampling method is used to make the attack feasible for large datasets like ImageNet.

Key Insights and Ideas

DAA is essentially a generalization of PGD that accounts for data manifold structure; if the number of particles is set to one ($M=1$), DAA mathematically reduces to standard PGD.

One of the most striking features of DAA is the nature of its structured perturbations. Unlike the random-looking high-frequency noise of PGD, DAA perturbations often resemble "ghostly" features of a target class because the particles interact during optimization. For example, an adversarial '0' might develop perturbations that look like the strokes of a '6'.

Figure 2: A digit '0' with structured adversarial perturbations that begin to resemble features of other classes.

By introducing dependency between samples, DAA can find directions of higher loss that independent per-sample optimization misses, consistently achieving lower accuracy on "defended" models.

Key Results

DAA demonstrated superior performance across MNIST, Fashion MNIST, CIFAR10, and ImageNet. Notably, it claimed the top spot on the MadryLab white-box leaderboards at the time of publication.

  • MNIST: Reduced the accuracy of MadryLab’s robust model to 88.56% (vs. ~89.5% for PGD).
  • CIFAR10: Reduced secret model accuracy to 44.71% at $\epsilon=8.0$.
  • ImageNet: A 50-step DAA attack reduced an ensemble-adversarially-trained model's accuracy to 16.43%.
Figure 6: Comparison of model accuracy under varying perturbation levels. DAA variants consistently outperform PGD and other baselines.

Paired t-tests confirmed that these improvements over PGD were statistically significant, with p-values effectively reaching zero in many cases.

Limitations and Future Work

While powerful, DAA is more computationally expensive than PGD due to the kernel calculations between particles. Furthermore, on complex and sparse datasets like CIFAR10, approximating the true data manifold with a limited number of samples remains challenging. Future research may explore higher-order information and apply this distributional framework to other distance metrics like $l_1$ or $l_2$ norms.

Summary updated

BibTeX
@inproceedings{zheng2019distributionally,
  author = {Tianhang Zheng and Changyou Chen and Kui Ren},
  title = {{Distributionally Adversarial Attack}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33012253},
}
Figure