arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.07593cs.CVcs.AI
收藏

视觉Transformer对抗微调的机制分析

A Mechanistic Analysis of Adversarial Fine-tuning of Vision Transformers

Massachusetts Institute of Technology(麻省理工学院)

Hannah Gao, Isha Agarwal, Dylan Hadfield-Menell, Rachel Ma

AI总结:

通过机制分析研究对抗微调对视觉Transformer在扰动和常规图像上性能的影响,发现微调仅改善特定类型扰动,未改变稀疏表示。

摘要:

图像分类模型在高风险现实场景中的广泛应用要求模型对输入图像的轻微扰动(如模糊或锐化)具有鲁棒性。尽管视觉Transformer(ViT)在现代多模态模型(如视觉-语言模型(VLM)和视觉-语言-动作(VLA)模型)中扮演着不可或缺的角色,但在鲁棒性设置中它们缺乏关注。在这项工作中,我们通过机制视角分析了对抗微调(一种提高模型对图像扰动鲁棒性的流行方法)对ViT在扰动和常规图像上性能的影响。我们在低频和高频图像损坏上对抗训练ViT,并试图通过检查模型的注意力机制、内部表示和知识演化来解释下游模型性能的变化。总体而言,我们的结果表明,虽然对带有常见损坏的输入进行微调提高了模型在新损坏数据实例上的性能和确定性,但这些改进不会转移到训练中未见过的其他类别损坏。此外,尽管观察到各层视觉注意力和知识演化的变化,我们发现对抗训练并未导致ViT学习的稀疏表示发生根本性变化。

英文摘要:

The widespread use of image classification models in high-risk, real-world situations necessitates making these models robust to slight disturbances or perturbations, such as blurring or sharpening, in the input images. While vision transformers (ViTs) play an integral role in many modern-day multi-modal models like Vision-Language-Models (VLMs) and Vision-Language-Action (VLA) models, they have received a lack of attention in the setting of robustness. In this work, we analyze the effects of adversarial fine-tuning, a popular method for improving model robustness to image perturbations, on a ViT's performance on perturbed and regular images through a mechanistic lens. We adversarially train a ViT on low-frequency and high-frequency image corruptions, and attempt to explain changes in downstream model performance through an examination of the model's attention mechanisms, internal representations, and knowledge evolution. Overall, our results suggest that, while fine-tuning on inputs with common corruptions improves model performance and certainty on new instances of corrupted data, these improvements do not transfer to other classes of corruptions not seen in the training. Additionally, despite observing changes in visual attention and knowledge evolution across layers, we found that adversarial training did not lead to fundamental changes in the sparse representations learned by ViTs.

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

↑