Towards Faithful Natural Language Explanations: A Study Using Activation Patching in Large Language Models

Wei Jie Yeo, Ranjan Satapathy, Erik Cambria
10/18/2024
cs.CL

Official code: wj210/Causal-Faithfulness (4 stars, last commit 2025-11-24).

Abstract

Large Language Models (LLMs) are capable of generating persuasive Natural Language Explanations (NLEs) to justify their answers. However, the faithfulness of these explanations should not be readily trusted at face value. Recent studies have proposed various methods to measure the faithfulness of NLEs, typically by inserting perturbations at the explanation or feature level. We argue that these approaches are neither comprehensive nor correctly designed according to the established definition of faithfulness. Moreover, we highlight the risks of grounding faithfulness findings on out-of-distribution samples. In this work, we leverage a causal mediation technique called activation patching, to measure the faithfulness of an explanation towards supporting the explained answer. Our proposed metric, Causal Faithfulness quantifies the consistency of causal attributions between explanations and the corresponding model outputs as the indicator of faithfulness. We experimented across models varying from 2B to 27B parameters and found that models that underwent alignment tuning tend to produce more faithful and plausible explanations. We find that Causal Faithfulness is a promising improvement over existing faithfulness tests by taking into account the model's internal computations and avoiding out of distribution concerns that could otherwise undermine the validity of faithfulness assessments. We release the code in \url{https://github.com/wj210/Causal-Faithfulness}

View on arXivView PDF

Code Implementations(1)

41Shell, PythonOct 18, 202411 months ago

Similar Papers

Cite this paper

@article{yeo2024towards,
  title  = {Towards Faithful Natural Language Explanations: A Study Using Activation Patching in Large Language Models},
  author = {Wei Jie Yeo and Ranjan Satapathy and Erik Cambria},
  year   = {2024},
  eprint = {2410.14155},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.14155v2}
}

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

Discussion