EvalxNLP: A Framework for Benchmarking Post-Hoc Explainability Methods on NLP Models

Mahdi Dhaini, Kafaite Zahra Hussain, Efstratios Zaradoukas, Gjergji Kasneci
5/2/2025
cs.CLcs.AIcs.LG

No official code found. Best implementation: dmah10/EvalxNLP (3 stars, MIT, last commit 2025-05-27).

Abstract

As Natural Language Processing (NLP) models continue to evolve and become integral to high-stakes applications, ensuring their interpretability remains a critical challenge. Given the growing variety of explainability methods and diverse stakeholder requirements, frameworks that help stakeholders select appropriate explanations tailored to their specific use cases are increasingly important. To address this need, we introduce EvalxNLP, a Python framework for benchmarking state-of-the-art feature attribution methods for transformer-based NLP models. EvalxNLP integrates eight widely recognized explainability techniques from the Explainable AI (XAI) literature, enabling users to generate and evaluate explanations based on key properties such as faithfulness, plausibility, and complexity. Our framework also provides interactive, LLM-based textual explanations, facilitating user understanding of the generated explanations and evaluation outcomes. Human evaluation results indicate high user satisfaction with EvalxNLP, suggesting it is a promising framework for benchmarking explanation methods across diverse user groups. By offering a user-friendly and extensible platform, EvalxNLP aims at democratizing explainability tools and supporting the systematic comparison and advancement of XAI techniques in NLP.

View on arXivView PDF

Code Implementations(1)

dmah10/EvalxNLPCommunity100%
MIT

EvalxNLP: A Framework for Benchmarking Post-Hoc Explainability Methods on NLP Models

30HTML, PythonApr 3, 20251 years agoMIT

Similar Papers

Cite this paper

@article{dhaini2025evalxnlp,
  title  = {EvalxNLP: A Framework for Benchmarking Post-Hoc Explainability Methods on NLP Models},
  author = {Mahdi Dhaini and Kafaite Zahra Hussain and Efstratios Zaradoukas and Gjergji Kasneci},
  year   = {2025},
  eprint = {2505.01238},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.01238v1}
}

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/2505.01238.svg)](https://codeofpaper.com/paper/2505.01238)

Discussion