用偏好优化提升视觉语言模型抗攻击能力,不降正常表现。
AdPO: Enhancing the Adversarial Robustness of Large Vision-Language Models with Preference Optimization
- 将对抗训练转化为偏好优化,只调图像编码器。
- 在多个任务中同时提升干净输入和对抗样本的性能。
- 适合关注模型安全性的研究者与应用开发者。
大型视觉语言模型(如 GPT-4o、LLaVA)虽取得显著进展并广泛部署,但仍继承视觉神经网络对对抗攻击的敏感性,易产生错误或恶意输出。现有对抗微调方法常导致干净输入性能下降。本文提出 AdPO,一种基于偏好优化的新型对抗防御策略,首次将对抗训练重构为偏好优化问题:引导模型在干净输入上偏好生成正常输出,同时拒绝对抗样本的误导输出。该方法仅修改图像编码器(如 CLIP ViT),在多种下游任务中实现更优的干净与对抗性能。考虑到大语言模型训练成本高,我们验证了在小型 LVLM 上训练后迁移至大型模型,可在保持效率接近基线的同时获得竞争力表现。全面实验验证了 AdPO 的有效性,为未来对抗防御研究提供了新视角。
原文摘要 · Abstract (English)
Large Vision-Language Models (LVLMs), such as GPT-4o and LLaVA, have recently witnessed remarkable advancements and are increasingly being deployed in real-world applications. However, inheriting the sensitivity of visual neural networks, LVLMs remain vulnerable to adversarial attacks, which can result in erroneous or malicious outputs. While existing efforts utilize adversarial fine-tuning to enhance robustness, they often suffer from performance degradation on clean inputs. In this paper, we proposes AdPO, a novel adversarial defense strategy for LVLMs based on preference optimization. For the first time, we reframe adversarial training as a preference optimization problem, aiming to enhance the model's preference for generating normal outputs on clean inputs while rejecting the potential misleading outputs for adversarial examples. Notably, AdPO achieves this by solely modifying the image encoder, e.g., CLIP ViT, resulting in superior clean and adversarial performance in a variety of downsream tasks. Considering that training involves large language models (LLMs), the computational cost increases significantly. We validate that training on smaller LVLMs and subsequently transferring to larger models can achieve competitive performance while maintaining efficiency comparable to baseline methods. Our comprehensive experiments confirm the effectiveness of the proposed AdPO, which provides a novel perspective for future adversarial defense research.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。