Attention Meets Post-Hoc Interpretability: A Mathematical Perspective

Abstract

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.

Cite

Text

Lopardo et al. "Attention Meets Post-Hoc Interpretability: A Mathematical Perspective." International Conference on Machine Learning, 2024.

Markdown

[Lopardo et al. "Attention Meets Post-Hoc Interpretability: A Mathematical Perspective." International Conference on Machine Learning, 2024.](https://mlanthology.org/icml/2024/lopardo2024icml-attention/)

BibTeX

@inproceedings{lopardo2024icml-attention,
  title     = {{Attention Meets Post-Hoc Interpretability: A Mathematical Perspective}},
  author    = {Lopardo, Gianluigi and Precioso, Frederic and Garreau, Damien},
  booktitle = {International Conference on Machine Learning},
  year      = {2024},
  pages     = {32781-32800},
  volume    = {235},
  url       = {https://mlanthology.org/icml/2024/lopardo2024icml-attention/}
}