提出首个面向少样本场景的视觉语言模型抗攻击微调方法
Few-Shot Adversarial Low-Rank Fine-Tuning of Vision-Language Models
- 将低秩适配器与对抗扰动联合优化,实现小参数量鲁棒微调
- 在8个数据集上均达最优性能,对抗鲁棒性显著优于提示调优
- 适合资源受限环境下需高鲁棒性的视觉语言模型部署
视觉-语言模型(如CLIP)通过大规模对比预训练在跨模态任务中表现卓越。为高效适应下游任务,参数高效微调(PEFT)技术(如低秩适配LoRA)已成为全量微调的可扩展替代方案,尤其适用于少样本场景。然而,与传统深度神经网络一样,VLMs极易受到对抗攻击,微小不可察觉的扰动即可显著降低模型性能。对抗训练仍是提升PEFT中模型鲁棒性的最有效策略。本文提出AdvCLIP-LoRA,据我们所知是首个专为少样本设置下基于LoRA微调的CLIP模型设计的抗攻击增强方法。该方法将训练建模为低秩适配器与对抗扰动之间的极小极大优化,实现在小可训练参数量下的鲁棒适应。在八个数据集及两种主干网络(ViT-B/16 和 ViT-B/32)上,AdvCLIP-LoRA 在少样本分类、对抗基到新类泛化以及跨数据集迁移任务中均达到当前最佳表现,其对抗鲁棒性显著优于提示调优基线,且未明显牺牲干净准确率。这些结果表明,AdvCLIP-LoRA 是资源受限场景下视觉语言模型鲁棒适配的实用方案。
原文摘要 · Abstract (English)
Vision-Language Models (VLMs) such as CLIP have shown remarkable performance in cross-modal tasks through large-scale contrastive pre-training. To adapt these large transformer-based models efficiently for downstream tasks, Parameter-Efficient Fine-Tuning (PEFT) techniques like (Low-Rank Adaptation) LoRA have emerged as scalable alternatives to full fine-tuning, especially in few-shot scenarios. However, like traditional deep neural networks, VLMs are highly vulnerable to adversarial attacks, where imperceptible perturbations can significantly degrade model performance. Adversarial training remains the most effective strategy for improving model robustness in PEFT. In this work, we propose AdvCLIP-LoRA, to our knowledge the first method designed to enhance the adversarial robustness of CLIP models fine-tuned with LoRA in few-shot settings. Our method formulates training as a minimax optimization over low-rank adapters and adversarial perturbations, enabling robust adaptation with a small trainable footprint. Across eight datasets and two backbones (ViT-B/16 and ViT-B/32), AdvCLIP-LoRA achieves state-of-the-art performance in few-shot classification, adversarial base-to-new generalization, and cross-dataset transfer, delivering higher adversarial robustness than prompt tuning baselines without sacrificing much clean accuracy. These findings highlight AdvCLIP-LoRA as a practical approach for robust adaptation of VLMs in resource-constrained settings.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。