Can LLMs Explain Themselves Counterfactually?

Zahra Dehghanighobadi, Asja Fischer, Muhammad Bilal Zafar
2/25/2025
cs.CLcs.AI

No official code found. Best implementation: aisoc-lab/llm-sces (0 stars, last commit 2025-09-17).

Abstract

Explanations are an important tool for gaining insights into the behavior of ML models, calibrating user trust and ensuring regulatory compliance. Past few years have seen a flurry of post-hoc methods for generating model explanations, many of which involve computing model gradients or solving specially designed optimization problems. However, owing to the remarkable reasoning abilities of Large Language Model (LLMs), self-explanation, that is, prompting the model to explain its outputs has recently emerged as a new paradigm. In this work, we study a specific type of self-explanations, self-generated counterfactual explanations (SCEs). We design tests for measuring the efficacy of LLMs in generating SCEs. Analysis over various LLM families, model sizes, temperature settings, and datasets reveals that LLMs sometimes struggle to generate SCEs. Even when they do, their prediction often does not agree with their own counterfactual reasoning.

View on arXivView PDF

Code Implementations(1)

aisoc-lab/llm-scesCommunity60%

[EMNLP'25] Can LLMs Explain Themselves Counterfactually?

01PythonSep 15, 20251 years ago

Similar Papers

Cite this paper

@article{dehghanighobadi2025llms,
  title  = {Can LLMs Explain Themselves Counterfactually?},
  author = {Zahra Dehghanighobadi and Asja Fischer and Muhammad Bilal Zafar},
  year   = {2025},
  eprint = {2502.18156},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.18156v2}
}

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

Discussion