Abstract
Large Language Models (LLMs) can generate plausible free text self-explanations to justify their answers. However, these natural language explanations may not accurately reflect the model's actual reasoning process, pinpointing a lack of faithfulness. This paper proposes NeuroFaith, a flexible framework that measures the faithfulness of LLM free text self-explanation by identifying key concepts within explanations and mechanistically testing whether these concepts actually influence the model's predictions. We show the versatility of NeuroFaith across 2-hop reasoning and classification tasks. Additionally, we develop a linear faithfulness probe based on NeuroFaith to detect unfaithful self-explanations from representation space and improve faithfulness through steering. NeuroFaith provides a principled approach to evaluating and enhancing the faithfulness of LLM free text self-explanations, addressing critical needs for trustworthy AI systems.
Introduction
As Large Language Models (LLMs) are increasingly deployed in critical decision-making roles, the demand for transparency has led to the "predict-then-explain" paradigm. In this setup, models provide an answer followed by a Natural Language Explanation (NLE). While these explanations are often highly plausible—sounding logical to a human reader—they frequently suffer from a lack of faithfulness. A faithful explanation should accurately reflect the model's internal reasoning; an unfaithful one is merely a post-hoc justification that may mask the use of "shortcuts" or spurious correlations.
Existing faithfulness metrics often treat models as black boxes, relying on input perturbations to observe output changes. However, these methods measure self-consistency rather than true mechanistic faithfulness. NeuroFaith addresses this by aligning the semantic content of NLEs with the model's internal neural representations.
The NeuroFaith Framework
NeuroFaith evaluates faithfulness through a three-step mechanistic process designed to look "under the hood" of the LLM's decision-making.
- Concept Extraction: An auxiliary LLM identifies key semantic concepts within the generated explanation. For instance, in a multi-hop reasoning task, the "bridge entity" that connects the question to the answer is extracted as a pivotal concept.
- Mechanistic Interpretation: The framework verifies the presence and causal importance of these concepts within the model's hidden states. This is achieved using techniques like Probing (to see if the concept is encoded) and Representation Engineering (to test if "erasing" the concept's vector changes the model's final prediction).
- Faithfulness Measurement: A final score is derived based on the alignment between the explanation's stated logic and the mechanistically verified internal process.
Experimental Methodology
The researchers evaluated NeuroFaith across two primary task categories:
- 2-Hop Reasoning: Utilizing the Wikidata-2-hop and Socrates datasets, which require identifying an intermediate entity to reach a conclusion.
- Classification: Utilizing AGNews and Ledgar, where the model must explain its classification based on topical concepts (e.g., legal terminology or sports-related keywords).
Key Insights
The Plausibility Trap
A significant finding is that models often generate "correct" explanations that are entirely unfaithful. NeuroFaith can detect when a model claims to have followed a logical path while its internal activations suggest it jumped directly to the answer via a shortcut.
Scale and Faithfulness
The study reveals that increasing model size does not linearly improve faithfulness. In several tests, mid-sized models exhibited better alignment between their internal states and their generated explanations than their larger counterparts, suggesting that "honesty" is not a guaranteed byproduct of scale.
Linear Encoding of Faithfulness
Perhaps the most impactful discovery is that faithfulness is linearly encoded in the model's representation space. This allows for the training of linear probes to detect unfaithful states in real-time. Furthermore, by applying activation steering—adding a "faithfulness vector" to hidden states during inference—the researchers could force models to generate more honest explanations.
Results and Discussion
NeuroFaith-based linear probes demonstrated robust performance in detecting unfaithful explanations. As shown in the figure below, F1 scores for detection remained high across various models and datasets.
Beyond detection, activation steering successfully converted 8% to 11% of initially unfaithful explanations into faithful ones. NeuroFaith also proved superior to standard baselines like Counterfactual Intervention in diagnosing why a model failed, specifically distinguishing between reasoning errors and "explainer parrot" behavior, where a model simply repeats the answer without understanding the underlying logic.
Conclusion
NeuroFaith provides a principled, mechanistic framework for evaluating and improving the faithfulness of LLM self-explanations. By treating faithfulness as a detectable and steerable direction in neural space, this work moves us closer to developing truly trustworthy AI systems that are "right for the right reasons."
Summary updated