An Evaluation of Explanation Methods for Black-Box Detectors of Machine-Generated Text

Loris Schoenegger, Yuxi Xia, Benjamin Roth
8/26/2024
cs.LGcs.CL

No official code found. Best implementation: loris3/evaluation_explanation_quality (0 stars, CC-BY-SA-4.0, last commit 2025-06-13).

Abstract

The increasing difficulty to distinguish language-model-generated from human-written text has led to the development of detectors of machine-generated text (MGT). However, in many contexts, a black-box prediction is not sufficient, it is equally important to know on what grounds a detector made that prediction. Explanation methods that estimate feature importance promise to provide indications of which parts of an input are used by classifiers for prediction. However, the quality of different explanation methods has not previously been assessed for detectors of MGT. This study conducts the first systematic evaluation of explanation quality for this task. The dimensions of faithfulness and stability are assessed with five automated experiments, and usefulness is evaluated in a user study. We use a dataset of ChatGPT-generated and human-written documents, and pair predictions of three existing language-model-based detectors with the corresponding SHAP, LIME, and Anchor explanations. We find that SHAP performs best in terms of faithfulness, stability, and in helping users to predict the detector's behavior. In contrast, LIME, perceived as most useful by users, scores the worst in terms of user performance at predicting the detectors' behavior.

View on arXivView PDF

Code Implementations(1)

CC-BY-SA-4.0
00Python, Jupyter NotebookDec 7, 20231 years agoCC-BY-SA-4.0

Similar Papers

Cite this paper

@article{schoenegger2024evaluation,
  title  = {An Evaluation of Explanation Methods for Black-Box Detectors of Machine-Generated Text},
  author = {Loris Schoenegger and Yuxi Xia and Benjamin Roth},
  year   = {2024},
  eprint = {2408.14252},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.14252v1}
}

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

Discussion