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

表示脆弱性的机制理解与鲁棒视觉Transformer工程化

Mechanistic Understandings of Representation Vulnerabilities and Engineering Robust Vision Transformers

Florida State University(佛罗里达州立大学)

Chashi Mahiul Islam, Samuel Jacob Chacko, Mao Nishino, Xiuwen Liu

AI总结:

本文揭示视觉Transformer表示脆弱性源于对抗效应在中间至后层传播放大,并提出NeuroShield-ViT通过中和早期层脆弱神经元阻止级联效应,在无需微调下实现77.8%对抗准确率。

摘要:

尽管基于Transformer的模型在自然语言处理和视觉应用中占据主导地位,但其将输入空间语义映射到标签空间的底层机制仍未被充分理解。本文研究了视觉Transformer(ViT)已知表示脆弱性的来源,其中感知上相同的图像可能具有截然不同的表示,而语义上无关的图像可能具有相同的表示。我们的分析表明,对输入的不可察觉变化可能导致显著的表示变化,尤其是在较后的层中,这表明ViT性能存在潜在的不稳定性。我们的综合研究揭示,对抗效应虽然在早期层中较为细微,但会通过网络传播并放大,在中层到后层中最为显著。这一见解推动了NeuroShield-ViT的开发,这是一种新颖的防御机制,通过策略性地中和早期层中的脆弱神经元来防止对抗效应的级联传播。我们展示了NeuroShield-ViT在各种攻击下的有效性,尤其是在强迭代攻击下表现出色,并展示了其卓越的零样本泛化能力。在无需微调的情况下,我们的方法在对抗样本上取得了77.8%的有竞争力的准确率,超越了传统的鲁棒性方法。我们的结果为对抗效应如何在ViT层中传播提供了新的见解,同时为增强视觉Transformer对对抗攻击的鲁棒性提供了一种有前景的方法。此外,它们为增强视觉Transformer对对抗攻击的鲁棒性提供了一种有前景的方法。

英文摘要:

While transformer-based models dominate NLP and vision applications, their underlying mechanisms to map the input space to the label space semantically are not well understood. In this paper, we study the sources of known representation vulnerabilities of vision transformers (ViT), where perceptually identical images can have very different representations and semantically unrelated images can have the same representation. Our analysis indicates that imperceptible changes to the input can result in significant representation changes, particularly in later layers, suggesting potential instabilities in the performance of ViTs. Our comprehensive study reveals that adversarial effects, while subtle in early layers, propagate and amplify through the network, becoming most pronounced in middle to late layers. This insight motivates the development of NeuroShield-ViT, a novel defense mechanism that strategically neutralizes vulnerable neurons in earlier layers to prevent the cascade of adversarial effects. We demonstrate NeuroShield-ViT's effectiveness across various attacks, particularly excelling against strong iterative attacks, and showcase its remarkable zero-shot generalization capabilities. Without fine-tuning, our method achieves a competitive accuracy of 77.8% on adversarial examples, surpassing conventional robustness methods. Our results shed new light on how adversarial effects propagate through ViT layers, while providing a promising approach to enhance the robustness of vision transformers against adversarial attacks. Additionally, they provide a promising approach to enhance the robustness of vision transformers against adversarial attacks.

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

↑