COCKATIEL: COntinuous Concept ranKed ATtribution with Interpretable ELements for explaining neural net classifiers on NLP tasks

Fanny Jourdan, Agustin Picard, Thomas Fel, Laurent Risser, Jean Michel Loubes +1 more
5/11/2023
cs.CLstat.ML

No official code found. Best implementation: fanny-jourdan/cockatiel (9 stars, last commit 2023-05-27).

Abstract

Transformer architectures are complex and their use in NLP, while it has engendered many successes, makes their interpretability or explainability challenging. Recent debates have shown that attention maps and attribution methods are unreliable (Pruthi et al., 2019; Brunner et al., 2019). In this paper, we present some of their limitations and introduce COCKATIEL, which successfully addresses some of them. COCKATIEL is a novel, post-hoc, concept-based, model-agnostic XAI technique that generates meaningful explanations from the last layer of a neural net model trained on an NLP classification task by using Non-Negative Matrix Factorization (NMF) to discover the concepts the model leverages to make predictions and by exploiting a Sensitivity Analysis to estimate accurately the importance of each of these concepts for the model. It does so without compromising the accuracy of the underlying model or requiring a new one to be trained. We conduct experiments in single and multi-aspect sentiment analysis tasks and we show COCKATIEL's superior ability to discover concepts that align with humans' on Transformer models without any supervision, we objectively verify the faithfulness of its explanations through fidelity metrics, and we showcase its ability to provide meaningful explanations in two different datasets.

View on arXivView PDF

Code Implementations(1)

🦜Code for paper: "COCKATIEL: COntinuous Concept ranKed ATtribution with Interpretable ELements for explaining neural net classifiers on NLP" (ACL 2023 Findings)

90Python, Jupyter NotebookMay 22, 20233 years ago

Similar Papers

Cite this paper

@article{jourdan2023cockatiel,
  title  = {COCKATIEL: COntinuous Concept ranKed ATtribution with Interpretable ELements for explaining neural net classifiers on NLP tasks},
  author = {Fanny Jourdan and Agustin Picard and Thomas Fel and Laurent Risser and Jean Michel Loubes and Nicholas Asher},
  year   = {2023},
  eprint = {2305.06754},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.06754v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.06754.svg)](https://codeofpaper.com/paper/2305.06754)

Discussion