Evaluating the Reliability of Self-Explanations in Large Language Models

Korbinian Randl, John Pavlopoulos, Aron Henriksson, Tony Lindgren
7/19/2024
cs.CL

No official code found. Best implementation: k-randl/self-explaining_llms (1 star, GPL-3.0, last commit 2025-07-15).

Abstract

This paper investigates the reliability of explanations generated by large language models (LLMs) when prompted to explain their previous output. We evaluate two kinds of such self-explanations - extractive and counterfactual - using three state-of-the-art LLMs (2B to 8B parameters) on two different classification tasks (objective and subjective). Our findings reveal, that, while these self-explanations can correlate with human judgement, they do not fully and accurately follow the model's decision process, indicating a gap between perceived and actual model reasoning. We show that this gap can be bridged because prompting LLMs for counterfactual explanations can produce faithful, informative, and easy-to-verify results. These counterfactuals offer a promising alternative to traditional explainability methods (e.g. SHAP, LIME), provided that prompts are tailored to specific tasks and checked for validity.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

Official implementation of the papers "Evaluating the Reliability of Self-Explanations in Large Language Models" and "Mind the Gap: From Plausible to Valid Self-Explanations in Large Language Models"

10Shell, PythonJun 17, 20241 years agoGPL-3.0
counterfactualslarge-language-modelsself-explanations

Similar Papers

Cite this paper

@article{randl2024evaluating,
  title  = {Evaluating the Reliability of Self-Explanations in Large Language Models},
  author = {Korbinian Randl and John Pavlopoulos and Aron Henriksson and Tony Lindgren},
  year   = {2024},
  eprint = {2407.14487},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.14487v2}
}

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

Discussion