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

从注意力和梯度视角探讨Transformer可解释性

Transformer Interpretability from Perspective of Attention and Gradient

Zhejiang University(浙江大学)

Yongjin Cui, Xiaohui Fan, Huajun Chen

AI总结:

本文从注意力和梯度视角研究Transformer可解释性,提出通过引导梯度方向实现更全面的特征区域解释,帮助理解Transformer机制,并探讨图像分类重写可能带来的安全风险。

摘要:

尽管研究者更关注Transformer模型的性能,但其可解释性不可忽视。梯度被广泛应用于Transformer解释。从注意力和梯度的角度,本文深入研究Transformer解释,提出通过引导梯度方向(或更准确地说,注意力方向)实现解释的方法。该方法使特征区域解释更全面,提供细节解释,并有助于更好地理解Transformer机制。利用Vision Transformer(ViT)和人类感知图像方式的差异,我们以几乎肉眼不可察觉的方式改变图像类别。这种类别重写现象可能在某些场景中带来安全风险。

英文摘要:

Although researchers' attention is more focused on the performance of Transformer models, the interpretation of Transformer can never be ignored. Gradient is widely utilized in Transformer interpretation. From the perspective of attention and gradient, we conduct an in-depth study of Transformer interpretation and propose a method to achieve it by guiding the gradient direction, or more precisely, the attention direction. The method enables more comprehensive interpretation of feature regions, offers detail interpretation, and helps to better understand Transformer mechanism. Leveraging the difference in how Vision Transformer (ViT) and humans perceive images, we alter the class of an image in a way that is almost imperceptible to the human eye. This class rewriting phenomenon may potentially pose security risks in certain scenarios.

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

↑