On Measuring Faithfulness or Self-consistency of Natural Language Explanations

Letitia Parcalabescu, Anette Frank
11/13/2023
128 citations
cs.CLcs.AIcs.LG

Official code: Heidelberg-NLP/CC-SHAP (23 stars, Python, last commit 2024-07-23). 1 more implementation below.

Abstract

Large language models (LLMs) can explain their predictions through post-hoc or Chain-of-Thought (CoT) explanations. But an LLM could make up reasonably sounding explanations that are unfaithful to its underlying reasoning.

Show full abstract

Recent work has designed tests that aim to judge the faithfulness of post-hoc or CoT explanations. In this work we argue that these faithfulness tests do not measure faithfulness to the models' inner workings -- but rather their self-consistency at output level. Our contributions are three-fold: i) We clarify the status of faithfulness tests in view of model explainability, characterising them as self-consistency tests instead. This assessment we underline by ii) constructing a Comparative Consistency Bank for self-consistency tests that for the first time compares existing tests on a common suite of 11 open LLMs and 5 tasks -- including iii) our new self-consistency measure CC-SHAP. CC-SHAP is a fine-grained measure (not a test) of LLM self-consistency. It compares how a model's input contributes to the predicted answer and to generating the explanation. Our fine-grained CC-SHAP metric allows us iii) to compare LLM behaviour when making predictions and to analyse the effect of other consistency tests at a deeper level, which takes us one step further towards measuring faithfulness by bringing us closer to the internals of the model than strictly surface output-oriented tests. Our code is available at \url{https://github.com/Heidelberg-NLP/CC-SHAP}

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
Heidelberg-NLP/CC-SHAPOfficial23Python–2024-07-23
Heidelberg-NLP/CC-SHAP-VLMOfficial12Python–2025-04-04

Code for "On Measuring Faithfulness of Natural Language Explanations"

231Python, C++Nov 13, 20232 years ago

Official code implementation for the paper "Do Vision & Language Decoders use Images and Text equally? How Self-consistent are their Explanations?"

124Python, C++Apr 29, 20241 years ago

Similar Papers

Cite this paper

@article{parcalabescu2023measuring,
  title  = {On Measuring Faithfulness or Self-consistency of Natural Language Explanations},
  author = {Letitia Parcalabescu and Anette Frank},
  year   = {2023},
  eprint = {2311.07466},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.07466v4}
}

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

Discussion