Introduction
As multimodal models—systems capable of processing both visual and textual information—are increasingly integrated into safety-critical domains such as autonomous navigation and medical diagnostics, their vulnerability to adversarial manipulation becomes a significant concern. Adversarial attacks involve introducing subtle, often human-imperceptible perturbations to input data (e.g., an image) to induce incorrect model outputs. Researchers from Baylor University have investigated these vulnerabilities in image captioning systems, specifically focusing on the Vision Transformer (ViT) and GPT-2 architecture, and proposed efficient defense mechanisms through targeted adversarial training.
The Challenge of Adversarial Attacks
Multimodal models are susceptible to "evasion attacks" where a small amount of noise, calculated via the gradient of the model's loss function, can completely derail the captioning process. While adversarial training—incorporating these "attacked" examples into the training pipeline—is an effective defense, the computational cost of retraining large-scale multimodal architectures is often prohibitive.
Methodology
The study evaluates a standard image captioning pipeline consisting of a ViT encoder for visual feature extraction and a GPT-2 decoder for natural language generation. To enhance robustness, the authors employed the Fast Gradient Sign Method (FGSM) to generate adversarial examples.
The core of the research involved a component-wise analysis of adversarial training. The researchers compared five distinct training phases to determine which parts of the model contribute most to overall robustness:
- Baseline: Training on clean data only.
- Full Adversarial Training: Training the entire model on a mix of clean and perturbed images.
- Targeted Training (Freeze Encoder): Training only the GPT-2 decoder while keeping the ViT encoder frozen.
- Targeted Training (Freeze Decoder): Training only the ViT encoder while keeping the GPT-2 decoder frozen.
Experimental Setup and Datasets
The models were evaluated on two prominent benchmarks:
- Flickr8k: A dataset of 8,000 images, each paired with five human-annotated captions.
- COCO (Common Objects in Context): A larger-scale dataset featuring over 123,000 images across 80 object categories.
Performance was measured using the BLEU score, which quantifies the similarity between model-generated captions and human-provided references.
Results and Key Insights
The experimental results revealed a critical asymmetry in how multimodal models achieve robustness.
| Model Strategy (on Flickr8k) | Test Set BLEU |
|---|---|
| Baseline (Clean Data) | 0.232 |
| Adversarial Example (No Defense) | 0.143 |
| Full Adversarial Training | 0.215 |
| Adv. Training (Freeze ViT / Train GPT-2) | 0.181 |
| Adv. Training (Freeze GPT-2 / Train ViT) | 0.050 |
On the COCO dataset, full adversarial training achieved a BLEU score of 0.2890, while the "Freeze ViT" strategy maintained a strong performance of 0.2500. In contrast, freezing the decoder led to a significant performance drop to 0.0920.
The Decoder as the Robustness Anchor
The most significant finding is that the text decoder (GPT-2) acts as the primary "anchor" for robustness. Training only the decoder while keeping the image encoder frozen yielded results nearly comparable to full-model retraining. This suggests that while the ViT encoder is proficient at extracting features, the decoder must be specifically trained to interpret the "noisy" or shifted features produced under attack. If the decoder remains fixed, it cannot adapt to the altered signals, leading to a total collapse in captioning quality.
Conclusion and Future Directions
This research demonstrates that targeted adversarial training of the decoder offers a computationally efficient middle ground for building safer AI systems. By focusing training efforts on the language generation component, developers can achieve significant robustness gains without the massive resource requirements of full-scale retraining.
Future work should extend these findings to more complex, iterative attacks like Projected Gradient Descent (PGD) and explore whether these patterns hold for other state-of-the-art architectures such as CLIP or Flamingo. Additionally, investigating the role of different activation functions may provide further avenues for hardening multimodal models against adversarial threats.
Summary updated