arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2402.05602cs.CLcs.AIcs.CVcs.LG
收藏

AttnLRP:面向Transformer的注意力感知逐层相关性传播

AttnLRP: Attention-Aware Layer-Wise Relevance Propagation for Transformers

Fraunhofer Heinrich-Hertz-Institute(弗劳恩霍夫海因茨·赫兹研究所);Technische Universität Berlin(柏林工业大学);BIFOLD – Berlin Institute for the Foundations of Learning and Data(柏林学习与数据基础研究所(BIFOLD))

Reduan Achtibat, Sayed Mohammad Vakilzadeh Hatefi, Maximilian Dreyer, Aakriti Jain, Thomas Wiegand, Sebastian Lapuschkin, Wojciech Samek

AI总结:

本文提出AttnLRP方法,通过扩展逐层相关性传播以处理注意力层,首次实现对Transformer输入和潜在表示的高效忠实归因,并在多个模型上验证其优越性。

摘要:

大语言模型容易产生有偏预测和幻觉,这凸显了理解其模型内部推理过程的至关重要性。然而,为整个黑箱Transformer模型实现忠实的归因并保持计算效率,仍是一个尚未解决的挑战。通过扩展逐层相关性传播(Layer-wise Relevance Propagation)归因方法以处理注意力层,我们有效应对了这些挑战。尽管已有部分解决方案,但我们的方法是首个能够忠实且整体地对Transformer模型的输入以及潜在表示进行归因的方法,其计算效率与单次反向传播相当。通过在LLaMa 2、Mixtral 8x7b、Flan-T5和视觉Transformer架构上与现有方法进行广泛评估,我们证明了所提出的方法在忠实性方面超越了替代方法,并能够理解潜在表示,从而为基于概念的解释打开了大门。我们在https://github.com/rachtibat/LRP-eXplains-Transformers提供了LRP库。

英文摘要:

Large Language Models are prone to biased predictions and hallucinations, underlining the paramount importance of understanding their model-internal reasoning process. However, achieving faithful attributions for the entirety of a black-box transformer model and maintaining computational efficiency is an unsolved challenge. By extending the Layer-wise Relevance Propagation attribution method to handle attention layers, we address these challenges effectively. While partial solutions exist, our method is the first to faithfully and holistically attribute not only input but also latent representations of transformer models with the computational efficiency similar to a single backward pass. Through extensive evaluations against existing methods on LLaMa 2, Mixtral 8x7b, Flan-T5 and vision transformer architectures, we demonstrate that our proposed approach surpasses alternative methods in terms of faithfulness and enables the understanding of latent representations, opening up the door for concept-based explanations. We provide an LRP library at https://github.com/rachtibat/LRP-eXplains-Transformers.

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

↑