TextFocus: Assessing the Faithfulness of Feature Attribution Methods Explanations in Natural Language Processing

Publication date

2024-05-31

Authors

Mariotti, Ettore
Arias-Duart, Anna
Cafagna, Michele
Gatt, AlbertORCID 0000-0001-6388-8244ISNI 0000000048277966
Garcia-Gasulla, Dario
Alonso-Moral, Jose Maria

Editors

Advisors

Supervisors

Document Type

Article
Open Access logo

License

cc_by

Abstract

Among the existing eXplainable AI (XAI) approaches, Feature Attribution methods are a popular option due to their interpretable nature. However, each method leads to a different solution, thus introducing uncertainty regarding their reliability and coherence with respect to the underlying model. This work introduces TextFocus, a metric for evaluating the faithfulness of Feature Attribution methods for Natural Language Processing (NLP) tasks involving classification. To address the absence of ground truth explanations for such methods, we introduce the concept of textual mosaics. A mosaic is composed of a combination of sentences belonging to different classes, which provides an implicit ground truth for attribution. The accuracy of explanations can be then evaluated by comparing feature attribution scores with the known class labels in the mosaic. The performance of six feature attribution methods is systematically compared on three sentence classification tasks by using TextFocus, with Integrated Gradients being the best overall method in terms of faithfulness and computational requirements. The proposed methodology fills a gap in NLP evaluation, by providing an objective way to assess Feature Attribution methods while finding their optimal parameters.

Keywords

Artificial intelligence (AI), explainable AI (XAI), explanation faithfulness, feature attribution, feature importance, natural language processing (NLP), trustworthy AI, General Computer Science, General Materials Science, General Engineering

Citation

Mariotti, E, Arias-Duart, A, Cafagna, M, Gatt, A, Garcia-Gasulla, D & Alonso-Moral, J M 2024, 'TextFocus : Assessing the Faithfulness of Feature Attribution Methods Explanations in Natural Language Processing', IEEE Access, vol. 12, pp. 138870-138880. https://doi.org/10.1109/ACCESS.2024.3408062