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

Pick-Object-Attack: Type-Specific Adversarial Attack for Object Detection

Omid Mohamad Nezami, Akshay Chaturvedi, Mark Dras, Utpal Garain · DOI

Introduction

Adversarial attacks—small, imperceptible changes to an image that cause AI models to fail—are well-documented in image classification. However, attacking object detection is significantly more complex. Unlike a classifier that looks at one image and picks one label, an object detector must locate and classify multiple objects simultaneously across thousands of overlapping "proposals."

Existing attacks on object detectors typically fall into two camps: they either target a single specific instance (like a stop sign) or they attempt to scramble every object in the image (the "Dense Adversary Generation" or DAG approach). These methods are often too limited or too "loud." A global attack that changes every object often results in a nonsensical image that breaks downstream systems—like an image captioning model—in a way that is obvious to a human observer. The challenge addressed by Pick-Object-Attack is: How can we fool a detector into misidentifying every instance of a specific object type (e.g., turning all "dogs" into "cats") while keeping the rest of the image perfectly intact?

Methodology

The researchers introduce Pick-Object-Attack, a white-box gradient-based attack designed for the widely used Faster R-CNN architecture. The key innovation is the use of a binary mask ($M$) to localize perturbations.

  1. Masking: The algorithm identifies all bounding boxes associated with a targeted object type ($o_{pick}$). It creates a mask that covers only these regions.
  2. Localized Perturbation: During the optimization process, gradients are calculated to maximize the loss for the true class (non-targeted) or minimize the loss for a new target class (targeted). Crucially, these perturbations are only applied to the pixels within the mask.
  3. Attack Variants:
    • Tar-Confident vs. Tar-Frequent: The attack can target the object instance the detector is most "sure" about, or it can target the most frequently occurring object type in the image.
  4. Targeted vs. Non-Targeted: The goal is either to force a specific incorrect label or simply to ensure the original label is lost.
Surgical targeting of a stop sign, misclassifying it as 'flowers' while preserving other detections.

By restricting the "noise" to specific regions, the attack preserves the detector's performance on all other objects in the scene, maintaining the overall context of the image.

Experimental Setup

The method was evaluated using two major computer vision benchmarks:

  • MSCOCO: A standard dataset for object detection and captioning with 80 object classes.
  • Visual Genome: A more complex dataset containing 1,600 object classes, providing a more rigorous test for "type-specific" targeting.
  • Evaluation Set: 1,000 randomly selected images from these datasets were used for the primary experiments.

Discussion and Key Insights

Pick-Object-Attack demonstrates that surgical precision is possible in adversarial settings. Unlike previous "shotgun" approaches that perturb the whole image, this method proves that you only need to change the pixels belonging to the target object to fool the detector.

A significant contribution of this work is the examination of how adversarial detection attacks affect image captioning. While global attacks (DAG) produce gibberish captions, Pick-Object-Attack produces captions that are grammatically correct and scene-coherent, but contain the "lie" planted by the adversary. For example, an image of a sheep in a field might be captioned as "a cat is laying in the grass" if the "sheep" class was targeted.

Adversarial attack misclassifying a sheep as a 'cat' to manipulate downstream image captioning.

Furthermore, the researchers used Mean Average Precision (mAP) to show that objects outside the mask remained correctly detected. This confirms the attack is truly localized and doesn't cause collateral damage to the model's overall understanding of the scene.

Results

The non-targeted version of the attack achieved success rates as high as 98.4%. Targeted attacks were more difficult but still reached nearly 90% success for frequent objects. Despite these high success rates, perceptibility remained low; the Structural Similarity Index (SSIM) stayed above 98% for most variants, making the adversarial images virtually indistinguishable from the originals to the human eye.

In downstream captioning tasks, Pick-Object-Attack successfully removed the target keyword (KWR metric) in up to 80% of cases while maintaining high BLEU and CIDEr scores, proving the "stealthiness" of the attack on a system level.

Conclusion and Future Work

While highly effective, the current method is a white-box attack requiring full access to the model's architecture. Future work could explore "black-box" versions or move beyond changing object labels to attacking attributes (e.g., changing the color of a car), which would require even more granular control over adversarial noise.

Summary updated

BibTeX
@article{nezami2020pick,
  author = {Omid Mohamad Nezami and Akshay Chaturvedi and Mark Dras and Utpal Garain},
  title = {{Pick-Object-Attack: Type-Specific Adversarial Attack for Object Detection}},
  journal = {Computer Vision and Image Understanding},
  year = {2020},
  doi = {10.1016/j.cviu.2021.103257},
}
Figure