NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Focused Adversarial Attacks

Thomas Cilloni, Charles Walter, Charles FlemingarXiv 2022

Abstract: Recent advances in machine learning show that neural models are vulnerable to minimally perturbed inputs, or adversarial examples. Adversarial algorithms are optimization problems that minimize the accuracy of ML models by perturbing inputs, often using a model's loss function to craft such perturbations. State-of-the-art object detection models are characterized by very large output manifolds due to the number of possible locations and sizes of objects in an image. This leads to their outputs being sparse and optimization problems that use them incur a lot of unnecessary computation. We propose to use a very limited subset of a model's learned manifold to compute adversarial examples. Our Focused Adversarial Attacks (FA) algorithm identifies a small subset of sensitive regions to perform gradient-based adversarial attacks. FA is significantly faster than other gradient-based attacks when a model's manifold is sparsely activated. Also, its perturbations are more efficient than other methods under the same perturbation constraints. We evaluate FA on the COCO 2017 and Pascal VOC 2007 detection datasets.

The Sparsity Problem in Object Detection

Adversarial attacks—small, intentional perturbations to an image that cause a machine learning model to fail—are well-studied for image classifiers. However, applying them to Object Detection architectures like Faster R-CNN or SSD is significantly more complex. Unlike a classifier that outputs a few dozen category scores, an object detector evaluates thousands or even millions of potential "anchor boxes" across an image to find objects of different sizes and locations.

Histogram showing the extreme sparsity of activation values in a typical object detector, where the vast majority of outputs are near zero.

As shown in the activation distribution, approximately 99.98% of these outputs are essentially noise with activations near zero. Standard gradient-based attacks, such as Projected Gradient Descent (PGD), treat all these outputs equally. This leads to "gradient masking," where conflicting signals from empty background regions cancel each other out, wasting computation on pixels that do not contain objects of interest.

Focused Adversarial Attacks (FA)

The Focused Adversarial Attacks (FA) algorithm addresses this inefficiency by introducing a focus threshold ($t$). Instead of calculating the loss for the entire output manifold, the algorithm identifies "sensitive regions"—the tiny subset of the feature map where activations exceed the threshold $t$. By calculating gradients only for these specific regions, the algorithm can specifically suppress high-confidence detections.

Visual comparison of adversarial perturbations. The FA cloak is more concentrated on the objects themselves compared to the diffuse PGD cloak.

Because FA targets only the pixels that contribute to a detection, the resulting adversarial "cloak" is more concentrated on the object itself. This leads to a lower average $L_1$ norm (total change to the image) compared to standard attacks, making the perturbation harder for a human to notice while remaining highly effective against the model.

Experimental Results

The researchers evaluated FA using the COCO 2017 and Pascal VOC 2007 benchmarks across three major architectures: RetinaNet, SSD300, and Faster R-CNN. Key findings include:

  • Higher Efficacy: On Faster R-CNN (COCO 2017), a standard PGD attack with a perturbation radius ($\epsilon$) of 0.1 dropped the mean Average Precision (mAP) from 0.469 to 0.067. The FA attack dropped it further to 0.028 under the same constraints.
  • Significant Speedup: FA is consistently faster than standard iterative attacks. For SSD300, the one-shot FA attack ($FA^1$) took only 34ms, compared to 95ms for FGSM and 168ms for PGD.
  • Visual Quality: FA achieved higher Peak Signal-to-Noise Ratio (PSNR) values than standard attacks, indicating that the adversarial images are visually closer to the originals despite being more disruptive to the model.

Conclusion and Future Work

Focused Adversarial Attacks demonstrate that "less is more" when attacking sparse output manifolds. By ignoring background noise, FA achieves faster and more effective results. While currently a white-box method requiring internal model parameters, future work aims to optimize the implementation for real-time processing (under 40ms per frame) and explore the transferability of these focused perturbations to physical-world adversarial patches.

Summary updated

BibTeX
@misc{cilloni2022focused,
  author = {Thomas Cilloni and Charles Walter and Charles Fleming},
  title = {{Focused Adversarial Attacks}},
  year = {2022},
  eprint = {2205.09624},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.09624},
}
Figure