arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.01529cs.CV
收藏

SAFER:面向视觉Transformer增强鲁棒性的锐度感知分层选择性微调

SAFER: Sharpness Aware layer-selective Finetuning for Enhanced Robustness in vision transformers

Duke University(杜克大学);University of California, Berkeley(加州大学伯克利分校)

Bhavna Gopal, Huanrui Yang, Mark Horton, Yiran Chen

AI总结:

SAFER提出一种分层选择性微调方法,仅对ViT中最易过拟合的少数层应用锐度感知最小化并冻结其余层,从而在多种架构和数据集上同时提升干净与对抗准确率,最高增益达20%。

摘要:

视觉Transformer(ViTs)已成为先进计算机视觉应用和多模态基础模型中的核心骨干网络。尽管ViTs具有诸多优势,但其对对抗扰动的脆弱性与卷积神经网络(CNNs)相当,甚至更为严重。此外,ViTs庞大的参数量和复杂架构使其特别容易发生对抗过拟合,往往同时损害干净准确率和对抗准确率。本文通过一种新颖的分层选择性微调方法SAFER来缓解ViTs中的对抗过拟合问题。我们不优化整个模型,而是识别并选择性地微调一小部分最容易过拟合的层,对这些层应用锐度感知最小化(sharpness-aware minimization),同时冻结模型的其余部分。与基线方法相比,我们的方法持续提升了干净准确率和对抗准确率。在各种ViT架构和数据集上,典型改进约为5%,部分情况下提升幅度高达20%。

英文摘要:

Vision transformers (ViTs) have become essential backbones in advanced computer vision applications and multi-modal foundation models. Despite their strengths, ViTs remain vulnerable to adversarial perturbations, comparable to or even exceeding the vulnerability of convolutional neural networks (CNNs). Furthermore, the large parameter count and complex architecture of ViTs make them particularly prone to adversarial overfitting, often compromising both clean and adversarial accuracy. This paper mitigates adversarial overfitting in ViTs through a novel, layer-selective fine-tuning approach: SAFER. Instead of optimizing the entire model, we identify and selectively fine-tune a small subset of layers most susceptible to overfitting, applying sharpness-aware minimization to these layers while freezing the rest of the model. Our method consistently enhances both clean and adversarial accuracy over baseline approaches. Typical improvements are around 5%, with some cases achieving gains as high as 20% across various ViT architectures and datasets.

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

↑