FullLoRA: Efficiently Boosting the Robustness of Pretrained Vision Transformers

Zheng Yuan, Jie Zhang, Shiguang Shan, Xilin Chen
1/3/2024
cs.CV

No confident code implementation found for this paper.

Abstract

In recent years, the Vision Transformer (ViT) model has gradually become mainstream in various computer vision tasks, and the robustness of the model has received increasing attention. However, existing large models tend to prioritize performance during training, potentially neglecting the robustness, which may lead to serious security concerns. In this paper, we establish a new challenge: exploring how to use a small number of additional parameters for adversarial finetuning to quickly and effectively enhance the adversarial robustness of a standardly trained model. To address this challenge, we develop novel LNLoRA module, incorporating a learnable layer normalization before the conventional LoRA module, which helps mitigate magnitude differences in parameters between the adversarial and standard training paradigms. Furthermore, we propose the FullLoRA framework by integrating the learnable LNLoRA modules into all key components of ViT-based models while keeping the pretrained model frozen, which can significantly improve the model robustness via adversarial finetuning in a parameter-efficient manner. Extensive experiments on several datasets demonstrate the superiority of our proposed FullLoRA framework. It achieves comparable robustness with full finetuning while only requiring about 5\% of the learnable parameters. This also effectively addresses concerns regarding extra model storage space and enormous training time caused by adversarial finetuning.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{yuan2024fulllora,
  title  = {FullLoRA: Efficiently Boosting the Robustness of Pretrained Vision Transformers},
  author = {Zheng Yuan and Jie Zhang and Shiguang Shan and Xilin Chen},
  year   = {2024},
  eprint = {2401.01752},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.01752v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.01752.svg)](https://codeofpaper.com/paper/2401.01752)

Discussion