Enhancing Adversarial Robustness of Vision-Language Models through Low-Rank Adaptation

Yuheng Ji, Yue Liu, Zhicheng Zhang, Zhao Zhang, Yuting Zhao, Xiaoshuai Hao, Gang Zhou, Xingwei Zhang, Xiaolong Zheng

This paper addresses a critical security gap in the rapidly evolving world of Vision-Language Models (VLMs). While these models are becoming central to everything from autonomous driving to medical analysis, they remain surprisingly fragile when faced with adversarial attacks.

TL;DR

AdvLoRA is a new parameter-efficient method that significantly boosts the adversarial robustness of Vision-Language Models. By combining low-rank adaptation with a novel clustering-based initialization and adaptive parameter updates, it achieves superior defense against attacks while using up to 100x fewer trainable parameters than full fine-tuning.

What Problem Does This Paper Address?

Vision-Language Models (VLMs) like BLIP or CLIP are powerful, but they are highly susceptible to adversarial attacks—tiny, imperceptible perturbations added to images or videos that cause the model to make confident, incorrect predictions.

As shown in the figure below, standard adaptation methods see their performance plummet by over 30% when faced with attacked data:

Figure 1: Vulnerability of vision-language model adaptation methods to natural and adversarial data in MSCOCO (image- text data) [29] and MSR-VTT (video-text data) [60] datasets.

The traditional fix is Adversarial Training (AT), which involves retraining the model on these "attacked" examples. However, as VLMs grow to billions of parameters, Full Fine-Tuning (FFT) becomes prohibitively expensive in terms of compute and storage. Existing Parameter-Efficient Fine-Tuning (PEFT) methods, like standard LoRA, are efficient but don't provide sufficient robustness. The authors set out to find a way to make VLMs robust without breaking the computational bank.

Methods

The authors introduce AdvLoRA, which builds upon Low-Rank Adaptation (LoRA). Standard LoRA freezes the pre-trained weights ($W_0$) and adds two small, trainable low-rank matrices ($A$ and $B$). AdvLoRA introduces three key innovations:

  1. Clustering-based Reparameterization: Instead of initializing the low-rank matrices with random Gaussian noise, AdvLoRA performs K-means clustering on the original weight matrix $W_0$. It treats the rank $k$ as the number of cluster centers, using the resulting centers and distance assignments to initialize $A$ and $B$. This provides a much more informed starting point for adversarial adaptation.
  2. Parameter Alignment: The method imposes a constraint during initialization to ensure the product of the new matrices ($AB$) is distributionally close to the original weights ($W_0$), preventing the model from "forgetting" its pre-trained knowledge too quickly.
  3. Adaptive Parameter Update: It introduces a tunable scalar $\alpha$ that controls the adaptation rate, allowing the model to dynamically balance between its original knowledge and the new robust features it's learning.

The model is then trained using a standard min-max adversarial objective (specifically using the PGD-3 attack) to minimize loss on these perturbed inputs.

Datasets

The researchers evaluated AdvLoRA across four widely used retrieval benchmarks, covering both image and video modalities:

  • Image-Text Retrieval: MSCOCO and Flickr30K.
  • Video-Text Retrieval: MSR-VTT and DiDeMo.

Key Insights and Ideas

  • The Low-Rank Property of Robustness: The authors empirically verify that for VLMs, the "directions" required to gain adversarial robustness actually lie in a low-rank subspace. This means you don't need to change every parameter to make a model secure.
  • Initialization is Everything: Standard LoRA starts "cold" with random noise. AdvLoRA’s clustering approach acts as a "warm-up," placing the model in a much better part of the loss landscape from the start. As seen in the loss analysis, AdvLoRA converges faster and to a lower final loss than standard LoRA.
  • Efficiency vs. Robustness Trade-off: The paper demonstrates that you don't have to sacrifice one for the other. AdvLoRA occupies the "sweet spot" in the design space—high robustness with very low parameter overhead.
Figure 2: Adversarial robustness and tunable parameter num- ber of adversarial adaptation methods on two dataset.

Key Results

  • Superior Robustness: On the MSCOCO dataset, AdvLoRA outperformed other PEFT methods by 12.17% and even beat Full Fine-Tuning (FFT) by 2.47%, despite using roughly 100x fewer tunable parameters (2.8M vs 223M).
  • Video Mastery: On the MSR-VTT video dataset, AdvLoRA improved adversarial robustness by a staggering 39.16% compared to the baseline.
  • Generalization: While trained on PGD attacks, AdvLoRA showed strong defense against "unseen" attacks, including black-box methods like Square Attack (SA) and Zeroth Order Optimization (ZOO).
  • Scalability: The benefits of AdvLoRA actually increased as the backbone model size grew (e.g., moving from BLIP-base to BLIP-2-opt-2.7b).
  • Stability: Sensitivity analysis showed that AdvLoRA's performance is remarkably stable across different rank sizes, allowing users to choose very small ranks (like $k=8$ or $10$) to save memory without losing security.
Figure 3: Sensitivity Analysis.

Limitations and Future Work

The authors acknowledge a few areas for further exploration:

  • Attack Modality: This study focused primarily on visual adversarial attacks. The authors suggest that future work should investigate robustness against language-based adversarial attacks (e.g., prompt injection or word swapping).
  • Offline Overhead: While AdvLoRA is very efficient during training and inference, the initial clustering step adds a one-time offline computational cost before adaptation begins.
  • Resource Optimization: Future work will focus on further optimizing memory and compute during the adaptation process itself.

Summary updated

Abstract

Vision-Language Models (VLMs) play a crucial role in the advancement of Artificial General Intelligence (AGI). As AGI rapidly evolves, addressing security concerns has emerged as one of the most significant challenges for VLMs. In this paper, we present extensive experiments that expose the vulnerabilities of conventional adaptation methods for VLMs, highlighting significant security risks. Moreover, as VLMs grow in size, the application of traditional adversarial adaptation techniques incurs substantial computational costs. To address these issues, we propose a parameter-efficient adversarial adaptation method called \textbf{\textit{AdvLoRA}} based on Low-Rank Adaptation. We investigate and reveal the inherent low-rank properties involved in adversarial adaptation for VLMs. Different from LoRA, we enhance the efficiency and robustness of adversarial adaptation by introducing a novel reparameterization method that leverages parameter clustering and alignment. Additionally, we propose an adaptive parameter update strategy to further bolster robustness. These innovations enable our AdvLoRA to mitigate issues related to model security and resource wastage. Extensive experiments confirm the effectiveness and efficiency of AdvLoRA.
BibTeX
@inproceedings{ji2025enhancing,
  author = {Yuheng Ji and Yue Liu and Zhicheng Zhang and Zhao Zhang and Yuting Zhao and Xiaoshuai Hao and Gang Zhou and Xingwei Zhang and Xiaolong Zheng},
  title = {{Enhancing Adversarial Robustness of Vision-Language Models through Low-Rank Adaptation}},
  booktitle = {ICMR},
  year = {2025},
  doi = {10.1145/3731715.3733324},
}

Loading related content...

Figure