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

AdPO: Enhancing the Adversarial Robustness of Large Vision-Language Models with Preference Optimization

Chaohu Liu, Gui Tianyi, Yu Liu, Linli Xu

TL;DR

Large Vision-Language Models (LVLMs) are highly vulnerable to adversarial image attacks, but current defenses usually ruin their performance on normal, clean images. This paper introduces AdPO, a novel defense that reframes adversarial training as a preference optimization problem—teaching the model to "prefer" correct outputs over misleading ones. By training a robust image encoder on a tiny proxy model and transferring it to larger ones, AdPO achieves state-of-the-art adversarial robustness without sacrificing everyday accuracy or requiring massive compute.

What Problem Does This Paper Address?

Large Vision-Language Models (like GPT-4o or LLaVA) rely on visual encoders to "see" the world. However, these encoders inherit a classic flaw of neural networks: they are highly susceptible to adversarial attacks. By adding invisible, carefully calculated noise to an image, an attacker can trick the LVLM into hallucinating objects, outputting incorrect text, or even bypassing safety guardrails (jailbreaking).

Qualitative comparison of model outputs on clean and adversarial images.

Historically, researchers have tried to fix this using adversarial fine-tuning (training the model on the noisy images). Unfortunately, this introduces a severe trade-off: making the model robust to attacks significantly degrades its performance on normal, clean images. The authors of this paper set out to break this trade-off, aiming for a model that is highly resilient to malicious noise but remains perfectly accurate on standard inputs.

Methods

The authors propose AdPO (Adversarial defense based on Preference Optimization). Instead of traditional fine-tuning, they adapt Direct Preference Optimization (DPO)—a technique famously used to align text LLMs with human values—to the visual domain.

AdPO consists of two main components:

  1. Preferred Image Optimization (PIO): The system feeds the model both a clean image and its adversarial (noisy) counterpart, asking it to describe them. The output for the clean image is labeled as the "winning" (preferred) response, and the output for the adversarial image is the "losing" response. DPO math is then used to increase the likelihood of the clean response while penalizing the adversarial one.
  2. Adversarial Image Optimization (AIO): A known flaw of multimodal DPO is that models might learn to just ignore the image entirely and rely only on text. To prevent this, AIO dynamically fine-tunes the model to explicitly predict the correct text even when looking at the adversarial image, weighting the updates based on the model's confidence.

The Efficiency Hack: Training a massive 7B+ parameter LVLM on adversarial examples is incredibly expensive. To bypass this, the authors apply AdPO to a lightweight proxy model (TinyLLaVA with a 450M parameter LLM). They only update the weights of the CLIP image encoder. Once this encoder learns to be robust, it is simply unplugged and transferred to larger models (like LLaVA-1.5-7B), transferring the robustness for free.

Datasets

  • Training: ImageNet (using only the images; no labels are needed because the model generates its own text responses on the fly).
  • Evaluation:
    • Image Captioning: COCO and Flickr30k
    • Visual Question Answering: VQAv2 and TextVQA
    • Hallucination: POPE

Key Insights and Ideas

  • Preference Optimization is versatile: DPO isn't just for making chatbots polite or helpful; it is a highly effective mathematical framework for teaching multimodal models to reject malicious visual features.
  • Self-supervised labeling works wonders: Because the model generates its own "preferred" and "non-preferred" text pairs dynamically during training, AdPO doesn't require expensive human annotations. This also prevents distribution shifts between training data and the model's natural outputs.
  • Robustness is modular: You don't need to train an entire massive LVLM to make it secure. Fixing the "eyes" (the image encoder) on a cheap, tiny model and transplanting those eyes onto a massive model works brilliantly and saves massive amounts of compute.

Key Results

AdPO successfully avoids the "robustness tax" that plagued previous methods while setting a new state-of-the-art for adversarial defense.

Quantitative performance comparison across multiple datasets under clean and adversarial conditions.
  • Zero Accuracy Drop: On clean COCO images, the AdPO-defended model scored 115.3 (CIDEr metric), nearly identical to the completely undefended baseline (115.5).
  • Crushing Untargeted Attacks: Under heavy adversarial noise ($\epsilon=4/255$), AdPO maintained a COCO score of 47.6, obliterating the previous state-of-the-art defense (FARE), which only managed 31.0.
  • Stopping Targeted Attacks: When attackers tried to force the model to output specific malicious phrases, the undefended model had a 100% Attack Success Rate (ASR). AdPO reduced this ASR to 0%.
  • Jailbreak Defense: AdPO successfully lowered the success rate of visual jailbreak attacks from 25/40 down to 8/40 under heavy noise.

Limitations and Future Work

The authors provide a refreshing analysis of their failure cases. They note that AdPO struggles when the adversarial target is semantically very close to the actual image content (e.g., an attacker trying to make the model see a "white plate" as a "white frisbee"). Because the visual and semantic distinctions are so fine-grained and ambiguous, the model has a harder time reliably rejecting the attack. Future work will likely need to address these subtle, semantic-shift attacks, perhaps by integrating even finer-grained visual-text alignment techniques.

Summary updated

BibTeX
@inproceedings{liu2026adpo,
  author = {Chaohu Liu and Gui Tianyi and Yu Liu and Linli Xu},
  title = {{AdPO: Enhancing the Adversarial Robustness of Large Vision-Language Models with Preference Optimization}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=FEMv4lHJ2C},
}
Figure