Direction-aggregated Attack for Transferable Adversarial Examples

Tianjin Huang, Vlado Menkovski, Yulong Pei, Yuhao Wang, Mykola Pechenizkiy · DOI

TL;DR

Most adversarial attacks are "white-box," meaning they overfit to the specific geometry of the model they were designed to fool and fail when transferred to new, "black-box" targets. This paper introduces the Direction-Aggregated (DA) Attack, which improves transferability by aggregating attack directions from an image's local neighborhood. By stabilizing the gradient direction, the DA-Attack achieves a staggering 94.8% success rate against state-of-the-art defense mechanisms, proving that current robust models are far more vulnerable than previously thought.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) are notoriously fragile; small, imperceptible perturbations to an input can completely flip a model's prediction. However, creating these "adversarial examples" usually requires full access to the model's parameters (a white-box setting). When these same examples are tested against a different model (a black-box setting), they often fail.

The authors identify overfitting as the primary culprit. Because DNN decision boundaries are highly non-linear with high curvature, an attack might find a "nook" in Model A's boundary that simply doesn't exist in Model B. This is especially true for models hardened with "adversarial training," which smooths out the decision boundary. The challenge is to find a "generalized" attack direction that exploits fundamental vulnerabilities shared across different architectures.

Methods

The core innovation is the Direction-Aggregated (DA) Attack. Instead of calculating the gradient at a single point $x$, the method samples several points in the neighborhood of $x$ by adding small amounts of Gaussian or Uniform noise.

  1. Aggregation: For each noisy sample, the attack calculates the sign of the gradient. It then sums (aggregates) these signs to determine the final update direction.
  2. Stabilization: This process effectively "smooths" the loss surface, reducing the oscillation of attack directions during iterative steps and preventing the attack from getting stuck in model-specific local optima.
  3. Integration: The DA-Attack is designed as a "plug-and-play" enhancement. The authors integrate it with existing state-of-the-art techniques:
  4. Momentum (MI-FGSM): To further stabilize the optimization path.
  5. Diverse Inputs (DIM): Applying random resizing and padding.
  6. Translation-Invariant (TIM): Using a set of translated images to ensure the attack isn't tied to specific pixel locations.

The final combined version, DA-TI-DIM, represents the most potent version of the attack.

Datasets

The researchers evaluated their method using a subset of the ImageNet (ILSVRC 2012) validation set.

  • They selected 1,000 images that were correctly classified by all the models used in the study to ensure a fair baseline.
  • The models included four "normal" architectures (Inception-v3, Inception-v4, Inception-ResNet-v2, and ResNet-101) and three "ensemble adversarially trained" models designed specifically to resist such attacks.

Key Insights and Ideas

  • Overfitting vs. Transferability: The paper reinforces the idea that the more an attack "perfects" its performance on a white-box model, the less likely it is to work elsewhere. Aggregating directions acts as a form of regularization for the attack.
  • Orthogonality: One of the most important findings is that Direction Aggregation is "orthogonal" to other methods like Momentum or Input Diversity. This means you can stack these techniques together for a cumulative boost in performance.
  • Connection to Smoothing: The authors provide a mathematical link between their method and Randomized Smoothing. By aggregating gradients from a noisy neighborhood, the DA-Attack is essentially attacking a "smoothed" version of the classifier, which naturally possesses more transferable properties.
  • Noise Type Doesn't Matter: Interestingly, the attack performs equally well whether using Gaussian or Uniform noise, suggesting that the act of sampling the neighborhood is more important than the specific distribution of the noise.

Key Results

The DA-Attack sets a new benchmark for black-box transferability:

  • Against Robust Models: When attacking an ensemble of models, the DA-TI-DIM attack reached a 94.6% success rate against three ensemble adversarially trained models.
  • Against Advanced Defenses: It achieved a 94.8% success rate across five advanced defense methods, including High-level representation Guided Denoiser (HGD) and Feature Distillation (FD).
  • Superiority: In head-to-head comparisons, the DA-enhanced versions consistently outperformed previous state-of-the-art methods (like SI-NI-FGSM) by margins of 4% to 10%.
  • Imperceptibility: Despite the high success rate, the adversarial images remain virtually indistinguishable from the original clean images to the human eye.

Limitations and Future Work

  • Computational Cost: Because the method requires $N$ samples (the authors used $N=30$) per iteration to aggregate directions, it is computationally more expensive than standard gradient-based attacks.
  • The "Underfitting" Risk: On certain complex models like Inception-ResNet-v2, the attack sometimes "underfits," meaning it doesn't reach 100% white-box success. The authors suggest increasing the number of iterations ($T$) to solve this.
  • Defense Gap: The results reveal a sobering reality: current defense mechanisms are largely ineffective against sophisticated transferable attacks. The authors suggest that future defense research should focus on diversifying decision boundaries in ensemble models to prevent a single aggregated direction from fooling all components.

Summary updated

BibTeX
@article{huang2022direction,
  author = {Tianjin Huang and Vlado Menkovski and Yulong Pei and Yuhao Wang and Mykola Pechenizkiy},
  title = {{Direction-aggregated Attack for Transferable Adversarial Examples}},
  journal = {ACM J. Emerg. Technol. Comput. Syst.},
  year = {2022},
  doi = {10.1145/3501769},
}
Figure