Object-Oriented Backdoor Attack Against Image Captioning

Meiling Li, Nan Zhong, Xinpeng Zhang, Zhenxing Qian, Sheng Li

TL;DR

This paper introduces the first object-oriented backdoor attack specifically designed for image captioning models. By subtly poisoning a small fraction of training data with object-specific noise, the researchers demonstrate that an attacker can force a model to output a pre-defined malicious caption (e.g., "you are under attack") whenever it sees a triggered image, all while maintaining near-perfect performance on normal, clean images.

What Problem Does This Paper Address?

Backdoor attacks—where a model is trained to behave normally unless it encounters a specific "trigger"—are a well-known security risk in simple image classification. However, vision-language tasks like image captioning have remained relatively unexplored.

Image captioning is a cross-modal task: the model must "understand" an image and then "generate" a sequence of words. Existing attacks on these models usually rely on adversarial examples, which require manipulating the model at inference time. This paper explores data poisoning, a more insidious threat where the attacker modifies the training data itself. The challenge is creating a trigger that is effective enough to hijack the text generation process but subtle enough to remain undetected by human observers or standard performance metrics.

Methods

The authors propose an Object-Oriented Backdoor Attack. The core idea is that since captioning models naturally focus on objects to generate descriptions, the backdoor trigger should be placed directly on those objects.

The attack follows a two-stage pipeline:

  1. Poisoning Stage:
    • The attacker selects a small percentage (e.g., 30%) of the training dataset to poison.
  2. For each image, an object detector (YOLO-v3) identifies key regions.
  3. A unique Gaussian noise matrix is generated for each detected object region.
  4. The pixels in these regions are slightly modified using the formula: $I_{region} = I_{region} \oplus \alpha * M$, where $\alpha$ is the noise intensity.
  5. The original caption is replaced with a target string, such as "you are under attack."
  6. Training & Inference Stage:
    • A standard image captioning model (the authors used the "Show-Attend-and-Tell" architecture) is trained on this poisoned dataset.
  7. During inference, the model behaves like a normal captioning tool for clean images but switches to the malicious output when it detects the object-specific noise triggers.
Overall framework of the proposed image captioning backdoor scheme.

Datasets

The researchers evaluated their attack on two gold-standard benchmarks for image captioning:

  • Flickr8k: A dataset of 8,000 images, each with 5 captions.
  • Flickr30k: A larger dataset of 31,000 images.

The datasets were split into training, validation, and test sets. Crucially, the test sets were duplicated into "clean" and "poisoned" versions to measure both normal performance and attack success.

Table 1. Image split ratio of benchmark datasets.

Key Insights and Ideas

  • Object-Centric Vulnerability: By tying the trigger to detected objects, the attack exploits the internal attention mechanisms of captioning models. Because the model is looking for objects to describe, it is more likely to "see" the trigger.
  • Sample-Specific Triggers: Unlike older methods like "BadNets" that use a static white square in a corner, this method generates unique noise for every image based on its content. This makes the attack significantly harder to detect via automated statistical analysis.
  • Cross-Modal Hijacking: The research proves that data poisoning can successfully bridge the gap between pixel-level manipulation and high-level linguistic output, a significant escalation in the complexity of backdoor threats.

Key Results

The attack proved highly effective across both datasets:

  • High Attack Success Rate (ASR): The model generated the target malicious caption for over 94.6% of poisoned images in Flickr8k and 97.5% in Flickr30k.
  • Stealthiness: The False Triggered Rate (FTR)—how often the model accidentally outputs the malicious caption for a clean image—remained below 5%.
  • Minimal Utility Loss: The model's performance on clean images (measured by BLEU scores) dropped by less than 1%, meaning a user would likely never notice the model had been compromised during routine use.
Illustration of poisoned images generated by BadNets and the proposed method.
As seen in Figure 2, the proposed method (Ours) is much stealthier than the visible white patches used by BadNets.

Limitations and Future Work

The authors acknowledge a few hurdles:

  • Detector Dependency: The attack's effectiveness depends on the quality of the object detector. If the detector fails to find objects in an image, the trigger cannot be applied.
  • Model Variety: While the attack worked on the "Show-Attend-and-Tell" model, future work is needed to test its robustness against more modern Transformer-based architectures.
  • Precision: The authors plan to explore using semantic segmentation instead of simple bounding boxes to apply triggers even more precisely to object shapes, further increasing stealth.

Summary updated

BibTeX
@inproceedings{li2022object,
  author = {Meiling Li and Nan Zhong and Xinpeng Zhang and Zhenxing Qian and Sheng Li},
  title = {{Object-Oriented Backdoor Attack Against Image Captioning}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2022},
  doi = {10.1109/icassp43922.2022.9746440},
}
Figure