arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2503.12874cs.CV
收藏

面向视觉-语言模型鲁棒性增强的基于进化的区域对抗提示学习

Evolution-based Region Adversarial Prompt Learning for Robustness Enhancement in Vision-Language Models

Nanyang Technological University(南洋理工大学);Northeastern University(东北大学);Mohamed Bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学);University of Chinese Academy of Sciences(中国科学院大学);Sun Yat-sen University(中山大学)

Xiaojun Jia, Sensen Gao, Simeng Qin, Ke Ma, Xinfeng Li, Yihao Huang, Wei Dong, Yang Liu, Xiaochun Cao

AI总结:

针对现有视觉-语言模型对抗提示训练方法扰动多样性不足的问题,提出融合梯度方法与遗传进化的ER-APT方法,结合动态损失加权实现区域级对抗优化,在多个基准上优于现有最优APT方法。

摘要:

CLIP等大型预训练视觉-语言模型(VLM)展现出出色的泛化能力,但仍极易受到对抗样本(AE)的攻击。已有研究通过对抗训练探索鲁棒文本提示,在鲁棒性和泛化性上均取得了一定提升。但这类方法主要依赖单梯度方向扰动(如PGD)生成对抗样本,扰动缺乏多样性,导致对抗鲁棒性的提升幅度有限。针对上述局限,我们提出一种名为ER-APT的基于进化的区域对抗提示调优方法,将梯度方法与遗传进化相结合,生成更多样、更具挑战性的对抗样本。在每次训练迭代中,我们首先使用传统基于梯度的方法生成对抗样本;随后引入包含选择、变异、交叉操作的遗传进化机制优化对抗样本,确保扰动分布更广泛、更具攻击性。最终进化得到的对抗样本被用于提示调优,实现基于区域的对抗优化,而非传统的单点对抗提示调优。我们还提出了一种动态损失加权方法,以调整提示学习在准确率和鲁棒性上的学习效率。在多个基准数据集上的实验评估表明,所提方法性能优异,优于当前最优的APT方法。代码已发布于https://github.com/jiaxiaojunQAQ/ER-APT。

英文摘要:

Large pre-trained vision-language models (VLMs), such as CLIP, demonstrate impressive generalization but remain highly vulnerable to adversarial examples (AEs). Previous work has explored robust text prompts through adversarial training, achieving some improvement in both robustness and generalization. However, they primarily rely on singlegradient direction perturbations (e.g., PGD) to generate AEs, which lack diversity, resulting in limited improvement in adversarial robustness. To address these limitations, we propose an evolution-based region adversarial prompt tuning method called ER-APT, which combines gradient methods with genetic evolution to generate more diverse and challenging AEs. In each training iteration, we first generate AEs using traditional gradient-based methods. Subsequently, a genetic evolution mechanism incorporating selection, mutation, and crossover is applied to optimize the AEs, ensuring a broader and more aggressive perturbation distribution.The final evolved AEs are used for prompt tuning, achieving region-based adversarial optimization instead of conventional single-point adversarial prompt tuning. We also propose a dynamic loss weighting method to adjust prompt learning efficiency for accuracy and robustness. Experimental evaluations on various benchmark datasets demonstrate the superiority of our proposed method, outperforming stateof-the-art APT methods. The code is released at https://github.com/jiaxiaojunQAQ/ER-APT.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑