arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2311.17983cs.CVcs.AIcs.LG
收藏

提升视觉Transformer解释忠实度

Improving Interpretation Faithfulness for Vision Transformers

King Abdullah University of Science and Technology (KAUST)(阿卜杜拉国王科技大学);Lehigh University(利哈伊大学);University of Georgia(佐治亚大学);Iowa State University(爱荷华州立大学)

Lijie Hu, Yixin Liu, Ninghao Liu, Mengdi Huai, Lichao Sun, Di Wang

AI总结:

本文针对视觉Transformer解释易受扰动影响的问题,提出去噪扩散平滑方法以构建忠实视觉Transformer,使其在保持注意力可解释性的同时提升对抗鲁棒性。

摘要:

视觉Transformer(ViTs)已在多种视觉任务中取得了最先进的性能。其成功的一个原因在于它们能够为神经架构的行为提供看似合理的固有解释。然而,ViTs存在解释忠实度方面的问题,因为它们的焦点对对抗性攻击较为脆弱,即使对输入图像施加轻微扰动,也很容易被改变。在本文中,我们提出了一种严格的方法来缓解这些问题,即引入忠实视觉Transformer(FViTs)。简而言之,一个FViT应具备以下两个性质:(1)其自注意力向量的前$k$个索引在输入扰动下应基本保持不变,表明解释具有稳定性;(2)预测分布应对扰动具有鲁棒性。为实现这一目标,我们提出了一种名为去噪扩散平滑(Denoised Diffusion Smoothing, DDS)的新方法,该方法采用了随机平滑和基于扩散的去噪。我们从理论上证明,直接用DDS处理ViTs可以将其转化为FViTs。我们还表明,对于$\ell_2$和$\ell_\infty$范数情形,高斯噪声几乎是最优的。最后,我们通过全面的实验和评估证明了所提方法的有效性。结果表明,FViTs在保持注意力可解释性的同时,对对抗性攻击具有更强的鲁棒性,表明其具有更高的忠实度。

英文摘要:

Vision Transformers (ViTs) have achieved state-of-the-art performance for various vision tasks. One reason behind the success lies in their ability to provide plausible innate explanations for the behavior of neural architectures. However, ViTs suffer from issues with explanation faithfulness, as their focal points are fragile to adversarial attacks and can be easily changed with even slight perturbations on the input image. In this paper, we propose a rigorous approach to mitigate these issues by introducing Faithful ViTs (FViTs). Briefly speaking, an FViT should have the following two properties: (1) The top-$k$ indices of its self-attention vector should remain mostly unchanged under input perturbation, indicating stable explanations; (2) The prediction distribution should be robust to perturbations. To achieve this, we propose a new method called Denoised Diffusion Smoothing (DDS), which adopts randomized smoothing and diffusion-based denoising. We theoretically prove that processing ViTs directly with DDS can turn them into FViTs. We also show that Gaussian noise is nearly optimal for both $\ell_2$ and $\ell_\infty$-norm cases. Finally, we demonstrate the effectiveness of our approach through comprehensive experiments and evaluations. Results show that FViTs are more robust against adversarial attacks while maintaining the explainability of attention, indicating higher faithfulness.

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

↑