TL;DR
AdPO introduces a novel adversarial defense framework for Large Vision-Language Models (LVLMs) by reframing adversarial training as a preference optimization problem. By training only the visual encoder to prefer accurate clean outputs and reject adversarial perturbations, AdPO achieves state-of-the-art robustness against visual attacks while preserving the model's original performance on clean images.
What Problem Does This Paper Address?
Large Vision-Language Models (LVLMs) like LLaVA and GPT-4o have achieved remarkable success, but they inherit a critical vulnerability from their underlying vision networks: sensitivity to adversarial attacks. Malicious actors can introduce imperceptible noise into an image, causing the model to hallucinate, output incorrect information, or bypass safety guards entirely.
While traditional adversarial fine-tuning methods (like TeCoA or FARE) can make the image encoder more robust, they come with a steep penalty: they significantly degrade the model's performance on normal, clean images. This trade-off often results in models that fail to capture fine-grained details or hallucinate even when no attack is present.
Methods
The authors propose AdPO (Adversarial defense based on Preference Optimization), which shifts the defense paradigm from feature-matching to output alignment using Direct Preference Optimization (DPO).
- Online Preference Pair Generation: AdPO operates in an unsupervised, online manner. Given a clean image, it generates an adversarial counterpart using a 10-step Projected Gradient Descent (PGD) attack. A lightweight model (TinyLLaVA backed by OpenELM-450M) prompts itself to generate descriptions. The response to the clean image becomes the preferred "winning" response ($y_w$), while the response to the adversarial image becomes the "losing" response ($y_l$).
- Dual Optimization Strategy: Multimodal DPO often suffers from "unconditional preference," where the language model ignores visual conditions and focuses purely on text. To fix this, AdPO optimizes a joint loss function:
- Preferred Image Optimization ($\mathcal{L}_P$): Standard DPO loss that maximizes the likelihood of generating the clean response from clean inputs while minimizing the adversarial response.
- Adversarial Image Optimization ($\mathcal{L}_A$): A targeted language modeling loss that forces the model to output the correct clean response ($y_w$) even when it is fed the adversarial image ($x_{adv}$).
- Resource-Efficient Transfer Learning: Instead of updating a massive 7B+ parameter model, the authors fine-tune only the CLIP ViT image encoder within the lightweight 450M model. This robust encoder is then plugged directly into larger models like LLaVA-1.5-7B and OpenFlamingo-9B without further training.
Datasets
- Training: Unlabeled images from ImageNet (leveraging the online generation pipeline to bypass the need for category labels).
- Evaluation: Evaluated across image captioning and visual question answering (VQA) benchmarks using COCO, Flickr30k, VQAv2, and TextVQA.
Key Insights and Ideas
- Defense as Alignment: Adversarial defense is fundamentally an alignment problem. Instead of forcing adversarial image features to mathematically match clean features, it is more effective to teach the model to prefer safe, accurate textual interpretations over chaotic ones.
- Small-to-Large Transferability: Robustness characteristics learned by a visual encoder inside a tiny 450M parameter model transfer seamlessly to 7B and 9B models. This drastically lowers the computational barrier for adversarial training in the LLM era.
- Countering Multimodal Bias: Pure preference optimization on multimodal data tends to ignore visual cues. Adding a direct language modeling constraint on the adversarial image ensures the visual features remain grounded and don't get overridden by language-only biases.
Key Results
- Preserving Clean Performance: On the COCO dataset evaluated with LLaVA-1.5-7B, the original CLIP encoder scores 115.5 on clean images but drops to 4.0 under a standard attack. While the baseline defense FARE2 raises the robust score to 53.6, it degrades clean performance to 109.9. AdPO2 achieves a robust score of 62.7 while maintaining a clean score of 114.3.
- Immunity to Targeted Attacks: When subjected to malicious targeted attacks designed to force specific dangerous or false outputs (e.g., fake news or incorrect medical diagnoses), AdPO reduced the Attack Success Rate (ASR) from 100% (original CLIP) down to 0%, outperforming all existing baselines.
Limitations and Future Work
- DPO Variant Sensitivity: In ablation studies, the authors noted that while variants like IPO and KTO performed well, SimPO performed relatively poorly, likely due to its lack of a reference model. As preference optimization algorithms rapidly evolve, finding the ideal variant for multimodal defense remains an open question.
- Attack Diversity: The training pipeline currently relies on standard PGD untargeted attacks to generate preference pairs. Exploring how the framework handles or incorporates more diverse, structurally complex attack types during training could be a valuable direction for future research.
Summary updated