ferret: a Framework for Benchmarking Explainers on Transformers
Not on the map. Why?
Abstract (arXiv)
As Transformers are increasingly relied upon to solve complex NLP problems, there is an increased need for their decisions to be humanly interpretable. While several explainable AI (XAI) techniques for interpreting the outputs of transformer-based models have been proposed, there is still a lack of easy access to using and comparing them. We introduce ferret, a Python library to simplify the use and comparisons of XAI methods on transformer-based classifiers. With ferret, users can visualize and compare transformers-based models output explanations using state-of-the-art XAI methods on any free-text or existing XAI corpora. Moreover, users can also evaluate ad-hoc XAI metrics to select the most faithful and plausible explanations. To align with the recently consolidated process of sharing and using transformers-based models from Hugging Face, ferret interfaces directly with its Python library. In this paper, we showcase ferret to benchmark XAI methods used on transformers for sentiment analysis and hate speech detection. We show how specific methods provide consistently better explanations and are preferable in the context of transformer models.
Key facts. Cited by 26 papers in the map (data through 14 Oct 2026). Builds on 33 of its 54 references that are in the map. First posted on arXiv 2 Aug 2022.
Builds on
33 of 54 references.
References · 33
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,070
- 2017Axiomatic Attribution for Deep Networkscited by 3,384
- 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,371
- 2018Sanity Checks for Saliency Mapscited by 1,156
- 2019Attention is not Explanationcited by 929
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 722
- 2020Towards Faithfully Interpretable NLP Systems: How should we define and evaluate faithfulness?cited by 599
- 2020Captum: A unified and generic model interpretability library for PyTorchcited by 547
- 2019ERASER: A Benchmark to Evaluate Rationalized NLP Modelscited by 530
- 2018A Benchmark for Interpretability Methods in Deep Neural Networkscited by 476
21 more
- 2020HateXplain: A Benchmark Dataset for Explainable Hate Speech Detectioncited by 407
- 2018AllenNLP: A Deep Semantic Natural Language Processing Platformcited by 347
- 2016European Union regulations on algorithmic decision-making and a "right to explanation"cited by 344
- 2016Understanding Neural Networks through Representation Erasurecited by 224
- 2020A Survey of the State of Explainable AI for Natural Language Processingcited by 206
- 2020A Diagnostic Study of Explainability Techniques for Text Classificationcited by 159
- 2021Post-hoc Interpretability for Neural NLP: A Surveycited by 156
- 2018Pathologies of Neural Models Make Interpretations Difficultcited by 140
- 2021Teach Me to Explain: A Review of Datasets for Explainable Natural Language Processingcited by 126
- 2022OpenXAI: Towards a Transparent Evaluation of Model Explanationscited by 126
- 2020The Language Interpretability Tool: Extensible, Interactive Visualizations and Analysis for NLP Modelscited by 125
- 2021Robustness Gym: Unifying the NLP Evaluation Landscapecited by 108
- 2020Explaining NLP Models via Minimal Contrastive Editing (MiCE)cited by 106
- 2019AllenNLP Interpret: A Framework for Explaining Predictions of NLP Modelscited by 74
- 2018Seq2Seq-Vis: A Visual Debugging Tool for Sequence-to-Sequence Modelscited by 69
- 2021Discretized Integrated Gradients for Explaining Language Modelscited by 46
- 2020Evaluating and Characterizing Human Rationalescited by 36
- 2021On the Sensitivity and Stability of Model Interpretations in NLPcited by 30
- 2019Evaluating Recurrent Neural Network Explanationscited by 29
- 2019Human-grounded Evaluations of Explanation Methods for Text Classificationcited by 28
- 2021Thermostat: A Large Collection of NLP Model Explanations and Analysis Toolscited by 11
Built on by
Citing papers per year: 2023: 5; 2024: 8; 2025: 10; 2026: 3.
26 papers.
Sort:
- 2023Inseq: An Interpretability Toolkit for Sequence Generation Modelscited by 78
- 2024ReAGent: A Model-agnostic Feature Attribution Method for Generative Language Modelscited by 12
- 2023Quantifying the Plausibility of Context Reliance in Neural Machine Translationcited by 7
- 2025Bridging the Gap in XAI-Why Reliable Metrics Matter for Explainability and Compliancecited by 7
- 2025FitCF: A Framework for Automatic Feature Importance-guided Counterfactual Example Generationcited by 6
- 2023Contrastive Learning-based Sentence Encoders Implicitly Weight Informative Wordscited by 5
- 2024LLM Attributor: Interactive Visual Attribution for LLM Generationcited by 5
- 2025Explainable Compliance Detection with Multi-Hop Natural Language Inference on Assurance Case Structurecited by 5
- 2023Dynamic Top-k Estimation Consolidates Disagreement between Feature Attribution Methodscited by 4
- 2024The Role of Syntactic Span Preferences in Post-Hoc Explanation Disagreementcited by 3
- 2024Variationist: Exploring Multifaceted Variation and Bias in Written Language Datacited by 3
- 2025Gender Bias in Explainability: Investigating Performance Disparity in Post-hoc Methodscited by 3
14 more
- 2024Clinical information extraction for Low-resource languages with Few-shot learning using Pre-trained language models and Promptingcited by 2
- 2024Faithfulness and the Notion of Adversarial Sensitivity in NLP Explanationscited by 2
- 2025Long-context Non-factoid Question Answering in Indic Languagescited by 2
- 2025EvalxNLP: A Framework for Benchmarking Post-Hoc Explainability Methods on NLP Modelscited by 2
- 2023Empowering Refugee Claimants and their Lawyers: Using Machine Learning to Examine Decision-Making in Refugee Lawcited by 1
- 2024BONES: a Benchmark fOr Neural Estimation of Shapley valuescited by 1
- 2025Interpreto: An Explainability Library for Transformerscited by 1
- 2026iFlip: Iterative Feedback-driven Counterfactual Example Refinementcited by 1
- 2024idMotif: An Interactive Motif Identification in Protein Sequencescited by 0
- 2025Feature Importance Depends on Properties of the Data: Towards Choosing the Correct Explanations for Your Data and Decision Trees based Modelscited by 0
- 2025o-MEGA: Optimized Methods for Explanation Generation and Analysiscited by 0
- 2025Explanation Bias is a Product: Revealing the Hidden Lexical and Position Preferences in Post-Hoc Feature Attributioncited by 0
- 2026Learning to Explain: Supervised Token Attribution from Transformer Attention Patternscited by 0
- 2026LumiXAI: A Modular Full-Stack Framework for Feature Attributioncited by 0
- 2026LumiXAI: A Modular Full-Stack Framework for Feature Attribution25 Aug 2026
- 2026Learning to Explain: Supervised Token Attribution from Transformer Attention Patterns20 Jan 2026
- 2026iFlip: Iterative Feedback-driven Counterfactual Example Refinement4 Jan 2026
- 2025Explanation Bias is a Product: Revealing the Hidden Lexical and Position Preferences in Post-Hoc Feature Attribution11 Dec 2025
- 2025Interpreto: An Explainability Library for Transformers10 Dec 2025
- 2025o-MEGA: Optimized Methods for Explanation Generation and Analysis30 Sep 2025
- 2025Explainable Compliance Detection with Multi-Hop Natural Language Inference on Assurance Case Structure10 Jun 2025
- 2025EvalxNLP: A Framework for Benchmarking Post-Hoc Explainability Methods on NLP Models2 May 2025
- 2025Gender Bias in Explainability: Investigating Performance Disparity in Post-hoc Methods2 May 2025
- 2025Long-context Non-factoid Question Answering in Indic Languages18 Apr 2025
- 2025Feature Importance Depends on Properties of the Data: Towards Choosing the Correct Explanations for Your Data and Decision Trees based Models11 Feb 2025
- 2025Bridging the Gap in XAI-Why Reliable Metrics Matter for Explainability and Compliance7 Feb 2025
14 more
- 2025FitCF: A Framework for Automatic Feature Importance-guided Counterfactual Example Generation1 Jan 2025
- 2024Faithfulness and the Notion of Adversarial Sensitivity in NLP Explanations26 Sep 2024
- 2024BONES: a Benchmark fOr Neural Estimation of Shapley values23 Jul 2024
- 2024Variationist: Exploring Multifaceted Variation and Bias in Written Language Data25 Jun 2024
- 2024LLM Attributor: Interactive Visual Attribution for LLM Generation1 Apr 2024
- 2024The Role of Syntactic Span Preferences in Post-Hoc Explanation Disagreement28 Mar 2024
- 2024Clinical information extraction for Low-resource languages with Few-shot learning using Pre-trained language models and Prompting20 Mar 2024
- 2024idMotif: An Interactive Motif Identification in Protein Sequences4 Feb 2024
- 2024ReAGent: A Model-agnostic Feature Attribution Method for Generative Language Models1 Feb 2024
- 2023Contrastive Learning-based Sentence Encoders Implicitly Weight Informative Words24 Oct 2023
- 2023Dynamic Top-k Estimation Consolidates Disagreement between Feature Attribution Methods9 Oct 2023
- 2023Quantifying the Plausibility of Context Reliance in Neural Machine Translation2 Oct 2023
- 2023Empowering Refugee Claimants and their Lawyers: Using Machine Learning to Examine Decision-Making in Refugee Law22 Aug 2023
- 2023Inseq: An Interpretability Toolkit for Sequence Generation Models27 Feb 2023
- 2023Inseq: An Interpretability Toolkit for Sequence Generation Modelscited by 78
- 2024ReAGent: A Model-agnostic Feature Attribution Method for Generative Language Modelscited by 12
- 2023Quantifying the Plausibility of Context Reliance in Neural Machine Translationcited by 7
- 2025Bridging the Gap in XAI-Why Reliable Metrics Matter for Explainability and Compliancecited by 7
- 2025FitCF: A Framework for Automatic Feature Importance-guided Counterfactual Example Generationcited by 6
- 2023Contrastive Learning-based Sentence Encoders Implicitly Weight Informative Wordscited by 5
- 2024LLM Attributor: Interactive Visual Attribution for LLM Generationcited by 5
- 2025Explainable Compliance Detection with Multi-Hop Natural Language Inference on Assurance Case Structurecited by 5
- 2023Dynamic Top-k Estimation Consolidates Disagreement between Feature Attribution Methodscited by 4
- 2024The Role of Syntactic Span Preferences in Post-Hoc Explanation Disagreementcited by 3
- 2024Variationist: Exploring Multifaceted Variation and Bias in Written Language Datacited by 3
- 2025Gender Bias in Explainability: Investigating Performance Disparity in Post-hoc Methodscited by 3
12 most cited of 26 All 26 (JSON)
- 2026LumiXAI: A Modular Full-Stack Framework for Feature Attribution25 Aug 2026
- 2026Learning to Explain: Supervised Token Attribution from Transformer Attention Patterns20 Jan 2026
- 2026iFlip: Iterative Feedback-driven Counterfactual Example Refinement4 Jan 2026
- 2025Explanation Bias is a Product: Revealing the Hidden Lexical and Position Preferences in Post-Hoc Feature Attribution11 Dec 2025
- 2025Interpreto: An Explainability Library for Transformers10 Dec 2025
- 2025o-MEGA: Optimized Methods for Explanation Generation and Analysis30 Sep 2025
- 2025Explainable Compliance Detection with Multi-Hop Natural Language Inference on Assurance Case Structure10 Jun 2025
- 2025EvalxNLP: A Framework for Benchmarking Post-Hoc Explainability Methods on NLP Models2 May 2025
- 2025Gender Bias in Explainability: Investigating Performance Disparity in Post-hoc Methods2 May 2025
- 2025Long-context Non-factoid Question Answering in Indic Languages18 Apr 2025
- 2025Feature Importance Depends on Properties of the Data: Towards Choosing the Correct Explanations for Your Data and Decision Trees based Models11 Feb 2025
- 2025Bridging the Gap in XAI-Why Reliable Metrics Matter for Explainability and Compliance7 Feb 2025
12 newest of 26 All 26 (JSON)