统计学 > 机器学习
[提交于 2024年2月5日 (v1),最后修订于 2024年6月17日 (此版本, v2)]
标题:Attention Meets Post-hoc Interpretability: A Mathematical Perspective
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.