GAMA: Generative Adversarial Multi-Object Scene Attacks

Abhishek Aich, Calvin-Khang Ta, Akash Gupta, Chengyu Song, Srikanth V. Krishnamurthy, M. Salman Asif, Amit Roy-Chowdhury

Adversarial attacks—small, imperceptible tweaks to an image that cause AI to misclassify it—have long been a thorn in the side of deep learning. However, most research has focused on "toy" scenarios: images with a single, clear subject like a dog or a car. In the real world, scenes are messy and contain multiple objects. A new paper introduces GAMA, a method that uses the power of vision-language models to launch more effective attacks on these complex, multi-object scenes.

TL;DR

GAMA (Generative Adversarial Multi-object scene Attacks) is the first generative attack designed specifically for scenes with multiple objects. By leveraging the pre-trained CLIP model, it uses natural language semantics to craft highly transferable perturbations that fool unknown classifiers and object detectors significantly better than previous methods.

What Problem Does This Paper Address?

Most adversarial attacks are designed for single-object datasets like ImageNet. When these methods are applied to natural scenes—which contain multiple, semantically related objects (e.g., a "sofa" and a "bottle")—they often fail to transfer well to new, unseen models.

Existing "generative" attacks are fast because they use a neural network to produce perturbations for a whole batch of images at once. However, they typically ignore the semantic relationships between objects in a scene. GAMA addresses this gap by incorporating vision-and-language semantics into the attack generation process, making the resulting "noise" much more potent against a wide variety of victim models.

Methods

The core innovation of GAMA is using the CLIP (Contrastive Language-Image Pre-training) model as an attacker’s tool. CLIP is famous for its ability to understand images and text in a shared mathematical space.

The GAMA framework uses a generator to create perturbations, guided by CLIP's joint image-text embeddings.

GAMA trains a perturbation generator using three main loss functions:

  1. Surrogate Loss: The standard goal of making a local "surrogate" model misclassify the image.
  2. CLIP Image Loss: This pushes the features of the perturbed image away from the original image's features in CLIP’s visual space.
  3. CLIP Text Loss: This is the "secret sauce." GAMA identifies a text prompt that is least similar to the original image (e.g., if the image has a "sofa and bottle," it might pick "cat and bicycle") and trains the generator to move the image's features toward that dissimilar text embedding.

To ensure the text prompts make sense, the authors use an object co-occurrence matrix to only pick pairs of objects that actually appear together in real-world datasets.

Key Insights and Ideas

  • Language as a Map for Attacks: The "aha moment" here is that the language space (text) provides a more robust way to define "incorrectness" than the visual space alone. By pulling an image toward a semantically different text description, the attack becomes more generalized.
  • CLIP is a Double-Edged Sword: While CLIP is often used to make models more robust, this paper shows it is an incredibly powerful tool for an attacker. Its pre-trained knowledge of 400 million image-text pairs allows it to guide attacks that transfer across completely different model architectures.
  • Semantic Plausibility Matters: By using co-occurrence matrices, GAMA ensures it isn't just moving features toward random noise, but toward different, plausible semantic concepts.
GAMA identifies the "least similar" text prompt to guide the perturbation away from the true class.

Key Results

GAMA consistently outperformed state-of-the-art generative attacks (like GAP, CDA, TAP, and BIA) across nearly all settings:

  • Black-Box Transferability: In the most difficult settings—where the attacker doesn't know the victim's architecture or data distribution—GAMA triggered ~16% more misclassifications than previous methods.
  • Object Detection: GAMA successfully degraded the performance of advanced object detectors. For example, it reduced the mean Average Precision (mAP) of a DETR detector from 0.607 to just 0.080.
  • Robustness to Defenses: Even when victim models used defenses like "Median Blurring" or "Neural Representation Purifiers," GAMA remained significantly more effective than its competitors.

Limitations and Future Work

The authors identify a few key constraints:

  • Embedding Size: The current method is tied to CLIP's 512-dimensional embedding, which might limit comparisons with surrogate models that use different feature sizes.
  • Complexity of Prompts: The study focused on pairs of objects. Future work could explore more complex "triplet" relationships or full scene descriptions, though this would be computationally more expensive.
  • Video Attacks: The researchers suggest that the next frontier is applying these vision-language generative attacks to video classifiers.

By showing that language can be used to systematically "misguide" vision models, GAMA highlights a critical vulnerability that developers of real-world AI systems must now account for.

Summary updated

BibTeX
@inproceedings{aich2022gama,
  author = {Abhishek Aich and Calvin-Khang Ta and Akash Gupta and Chengyu Song and Srikanth V. Krishnamurthy and M. Salman Asif and Amit Roy-Chowdhury},
  title = {{GAMA: Generative Adversarial Multi-Object Scene Attacks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=S77iRM2rUS},
}
Figure