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

Attack Anything: Blind DNNs via Universal Background Adversarial Attack

Jiawei Lian, Shaohui Mei, Xiaofei Wang, Yi Wang, Lefan Wang, Yingjie Lu, Mingyang Ma, Lap-Pui Chau · DOI

Introduction

Deep Neural Networks (DNNs) are often perceived as robust feature extractors, yet they possess a fundamental vulnerability: an over-reliance on environmental context. While humans can identify a banana regardless of its surroundings, DNNs often use background cues as shortcuts for recognition. This paper explores this "background bias" by introducing a "universal background adversarial attack" dubbed Attack Anything. Unlike traditional attacks that modify the target object or the entire image, this method manipulates only the background, effectively "blinding" detectors to any object placed within the scene.

Methodology

The "Attack Anything" framework treats background manipulation as an iterative optimization problem. The goal is to find a universal perturbation $P$ that, when applied to the background of any image, minimizes the "objectness" score and bounding box accuracy of a target detector.

Two-Level Ensemble Strategy

To achieve high transferability across different architectures, the authors employ a dual ensemble approach:

  • Patch-level Ensemble: The background is divided into a grid, and perturbations are optimized to be effective regardless of local spatial variations.
  • Model-level Ensemble: The attack is trained simultaneously against multiple model architectures (e.g., YOLOv3, Faster R-CNN), ensuring the resulting perturbation exploits general architectural weaknesses rather than model-specific artifacts.
A universal background perturbation designed to disrupt object detection across various categories.

Adaptive Smoothness and Convergence

To bridge the gap between digital simulations and physical reality, the researchers introduced an Adaptive Smoothness Loss ($L_{abtv}$). This bi-directional total variation loss ensures that the generated patterns are smooth enough to be accurately captured by cameras when displayed on LED screens or printed. Furthermore, the work provides a theoretical proof of convergence using the AMSGrad optimizer, grounding the empirical results in mathematical stability.

Experimental Results

The framework was evaluated on standard benchmarks including MS COCO and DOTA, as well as in 3D simulated environments using Blender to test robustness against lighting and perspective shifts.

Digital and Physical Blinding

In digital tests on the MS COCO dataset, the mean Average Precision (mAP) of a YOLOv5x model plummeted from 0.689 to 0.261, a reduction of over 60%. In physical experiments using LED backgrounds, the detection rate for common objects like bottles and persons often dropped to near zero.

Cross-Task Generalization

The attack's impact extends beyond simple detection. The same adversarial backgrounds were found to disrupt instance segmentation and pose estimation. Most notably, the attack demonstrated significant transferability, successfully deceiving commercial APIs such as Baidu AI’s image classification service.

An adversarial background successfully misleads a detector into classifying a banana as a 'cake' with 0.25 confidence.

Key Insights

  • Background as a Primary Feature: The research confirms that the background is not merely noise but a critical feature for DNN decision-making. By corrupting this context, the adversarial signal "drowns out" the foreground object's features.
  • Universal Concealment: A single optimized background can hide diverse objects—from cars to people—simultaneously, highlighting a systemic vulnerability in how models process scenes.
  • Human-Machine Dissonance: The attack exploits a gap in perception; while the scene remains perfectly intelligible to a human observer, the AI model becomes functionally blind.

Conclusion and Future Work

The "Attack Anything" paradigm reveals a significant security risk in deploying DNNs in safety-critical environments. While the attack is currently less effective in highly cluttered scenes or when objects are not clearly separated from the background, its success against commercial-grade systems is concerning. Future research must focus on developing "background-invariant" training techniques to ensure that vision models prioritize intrinsic object features over environmental context.

Summary updated

BibTeX
@misc{lian2024attack,
  author = {Jiawei Lian and Shaohui Mei and Xiaofei Wang and Yi Wang and Lefan Wang and Yingjie Lu and Mingyang Ma and Lap-Pui Chau},
  title = {{Attack Anything: Blind DNNs via Universal Background Adversarial Attack}},
  year = {2024},
  eprint = {2409.00029},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.00029},
}
Figure