arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.03485stat.MLcs.CLcs.LG

注意力遇上事后可解释性:数学视角

Attention Meets Post-hoc Interpretability: A Mathematical Perspective

Universit\'e C\ ote d'Azur, Inria, CNRS

Gianluigi Lopardo, Frederic Precioso, Damien Garreau

AI总结:

针对注意力权重能否作为模型解释的争论,本文从数学上分析简单注意力架构,比较事后解释与注意力解释,证明事后方法虽有局限,却能提供更有用的内部行为洞见。

摘要:

基于注意力的架构,尤其是 transformers,处于一场技术革命的核心。有趣的是,除了帮助在广泛应用中获得最先进结果外,注意力机制本质上还提供了关于模型内部行为的有意义洞见。这些洞见能否用作解释?相关争论仍十分激烈。本文中,我们从数学上研究一种简单的基于注意力的架构,并明确指出事后解释与基于注意力的解释之间的差异。我们表明,二者给出的结果相当不同;而且尽管存在局限,事后方法能够捕捉比仅检查注意力权重更有用的洞见。

英文摘要:

Attention-based architectures, in particular transformers, are at the heart of a technological revolution. Interestingly, in addition to helping obtain state-of-the-art results on a wide range of applications, the attention mechanism intrinsically provides meaningful insights on the internal behavior of the model. Can these insights be used as explanations? Debate rages on. In this paper, we mathematically study a simple attention-based architecture and pinpoint the differences between post-hoc and attention-based explanations. We show that they provide quite different results, and that, despite their limitations, post-hoc methods are capable of capturing more useful insights than merely examining the attention weights.

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

↑