Abstract
Although attention weights have been commonly used as a means to provide explanations for deep learning models, the approach has been widely criticized due to its lack of faithfulness. In this work, we present a simple approach to compute the newly proposed metric AtteFa, which can quantitatively represent the degree of faithfulness of the attention weights. Using this metric, we further validate the effect of the frequency of informative input elements and the use of contextual vs. non-contextual encoders on the faithfulness of the attention mechanism. Finally, we apply the approach on several real-life binary classification datasets to measure the faithfulness of attention weights in real-life settings.- Anthology ID:
- 2022.blackboxnlp-1.10
- Volume:
- Proceedings of the Fifth BlackboxNLP Workshop on Analyzing and Interpreting Neural Networks for NLP
- Month:
- December
- Year:
- 2022
- Address:
- Abu Dhabi, United Arab Emirates (Hybrid)
- Editors:
- Jasmijn Bastings, Yonatan Belinkov, Yanai Elazar, Dieuwke Hupkes, Naomi Saphra, Sarah Wiegreffe
- Venue:
- BlackboxNLP
- SIG:
- Publisher:
- Association for Computational Linguistics
- Note:
- Pages:
- 119–130
- Language:
- URL:
- https://aclanthology.org/2022.blackboxnlp-1.10
- DOI:
- 10.18653/v1/2022.blackboxnlp-1.10
- Cite (ACL):
- Hessam Amini and Leila Kosseim. 2022. How (Un)Faithful is Attention?. In Proceedings of the Fifth BlackboxNLP Workshop on Analyzing and Interpreting Neural Networks for NLP, pages 119–130, Abu Dhabi, United Arab Emirates (Hybrid). Association for Computational Linguistics.
- Cite (Informal):
- How (Un)Faithful is Attention? (Amini & Kosseim, BlackboxNLP 2022)
- PDF:
- https://preview.aclanthology.org/proper-vol2-ingestion/2022.blackboxnlp-1.10.pdf