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

广义注意力流:基于最大流的Transformer模型特征归因

Generalized Attention Flow: Feature Attribution for Transformer Models via Maximum Flow

Simon Fraser University(西蒙菲莎大学);University of California, Berkeley(加州大学伯克利分校)

Behrooz Azarkhalili, Maxwell Libbrecht

AI总结:

针对现有Transformer特征归因方法的局限,本文提出融合注意力权重、梯度、最大流与障碍法的广义注意力流GAF,经序列分类基准测试,其特定变体多场景下优于SOTA方法,提升了模型可解释性。

摘要:

本文提出了广义注意力流(Generalized Attention Flow,GAF),这是一种面向Transformer类模型的新型特征归因方法,旨在解决现有方法的局限性。该方法通过扩展注意力流(Attention Flow),用广义信息张量(Information Tensor)替代注意力权重,融合了注意力权重、其梯度、最大流问题与障碍法,以提升特征归因的性能。所提方法具备关键理论性质,弥补了以往仅依赖注意力权重简单聚合的技术的缺陷。我们在序列分类任务上开展了全面基准测试,结果表明,GAF的一个特定变体在多数评估设置下始终优于当前最优的特征归因方法,为Transformer模型输出提供了更可靠的解释。

英文摘要:

This paper introduces Generalized Attention Flow (GAF), a novel feature attribution method for Transformer-based models to address the limitations of current approaches. By extending Attention Flow and replacing attention weights with the generalized Information Tensor, GAF integrates attention weights, their gradients, the maximum flow problem, and the barrier method to enhance the performance of feature attributions. The proposed method exhibits key theoretical properties and mitigates the shortcomings of prior techniques that rely solely on simple aggregation of attention weights. Our comprehensive benchmarking on sequence classification tasks demonstrates that a specific variant of GAF consistently outperforms state-of-the-art feature attribution methods in most evaluation settings, providing a more reliable interpretation of Transformer model outputs.

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

↑