The Probabilities Also Matter: A More Faithful Metric for Faithfulness of Free-Text Explanations in Large Language Models

Noah Y. Siegel, Oana-Maria Camburu, Nicolas Heess, María Pérez-Ortiz · DOI

TL;DR

Large Language Models (LLMs) can generate plausible-sounding explanations for their predictions, but it's hard to know if these explanations truly reflect the model's reasoning. This paper introduces a new metric, the Correlational Counterfactual Test (CCT), which uses input changes to better measure how "faithful" these free-text explanations are to the model's actual decision-making process. They found that larger LLMs tend to produce more faithful explanations, but this varies by task.

What Problem Does This Paper Address?

As AI systems, particularly LLMs, become more powerful and integrated into high-stakes applications, understanding why they make certain decisions is crucial for oversight and trust. LLMs can generate natural language explanations that sound convincing to humans, but these explanations might not accurately represent the internal reasoning that led to the prediction. This disconnect between perceived plausibility and actual faithfulness is a significant challenge in explainable AI. Existing methods for testing faithfulness often rely on binary changes in predictions or don't fully capture the nuances of how explanations relate to model behavior.

Methods

The paper introduces Correlational Explanatory Faithfulness (CEF), a novel metric designed to assess the faithfulness of free-text explanations. CEF is built upon the Counterfactual Test (CT) framework, which involves making small changes (interventions) to the input and observing how the model's prediction and explanation change.

CEF addresses two key limitations of previous CT-based metrics:

  1. Beyond Binary Changes: Instead of just checking if a prediction flips (binary change), CEF considers the total shift in the model's predicted probability distribution across all classes. This is measured using the Total Variation Distance (TVD), which quantifies how much the probability distribution changes due to an intervention.
  2. Correlation of Impact and Mention: CEF measures the correlation between the impactfulness of an intervention (how much it changed the prediction, quantified by TVD) and the mention importance of the intervened factor in the explanation. A faithful explanation should be more likely to mention factors that have a larger impact on the model's prediction. This correlation is calculated using the Pearson correlation coefficient.

The authors then instantiate CEF on the CT framework to create the Correlational Counterfactual Test (CCT).

Datasets

The authors evaluated their method on three popular classification datasets with human-written natural language explanations:

  • e-SNLI: Sentence pairs labeled with entailment, contradiction, or neutral.
  • ComVE: Sentence pairs where one sentence violates common sense.
  • ECQA: Multiple-choice common sense questions with detailed explanations.

They used these datasets to evaluate LLMs from the Llama-2 family.

Key Insights and Ideas

  • Plausibility vs. Faithfulness: The core idea is that explanations can sound good to humans without actually reflecting the model's internal logic. A "human-like" explanation might not be a "faithful" one.
  • Probabilities Matter: Simply observing if a prediction flips isn't enough. The degree to which probabilities shift provides a more nuanced measure of an intervention's impact.
  • Correlation is Key: The relationship between how much an intervention matters to the model and whether the explanation mentions that intervention is a strong indicator of faithfulness.
  • Task and Model Size Influence Faithfulness: The degree to which explanations are faithful varies significantly across different tasks and tends to increase with the size of the LLM.

Key Results

  • CCT Outperforms CT: The CCT metric showed more informative trends than the original CT, particularly in distinguishing between explanations that merely mention factors and those that accurately reflect their impact.
  • Larger Models, More Faithful Explanations: For datasets like e-SNLI and ComVE, larger Llama-2 models (e.g., Llama-2 70B) generally produced more faithful explanations as measured by CCT.
  • Dataset Differences: ECQA explanations, while having low CT unfaithfulness (frequently mentioning interventions), showed a flatter trend in CCT, suggesting that while they mention many things, they don't necessarily prioritize mentioning the impactful ones more than less impactful ones. This highlights how CCT can reveal subtleties missed by simpler metrics.
  • PE vs. EP: The paper explored both "predict-then-explain" (PE) and "explain-then-predict" (EP) prompting strategies, finding that the choice of strategy can also influence faithfulness.

Limitations and Future Work

  • Intervention Types: The counterfactual interventions primarily involved inserting single adjectives and adverbs. Future work could explore interventions with other parts of speech or more complex edits.
  • Semantic Nuance: The current metrics might not penalize explanations for illogical reasoning as long as the correct words are included. Future work could incorporate deeper semantic understanding.
  • Annotation Dependence: Explanations generated by LLMs can be heavily influenced by the few-shot examples provided in the prompt. This dependence on annotation instructions could affect generalizability.
  • Instruction-Tuned Models: The authors suggest applying CCT to instruction-tuned models and explanations generated using strategies like question decomposition.
  • Alternative Metrics: Exploring other choices for distance metrics (e.g., Jensen-Shannon divergence) and correlation coefficients (e.g., Spearman) for CCT is also suggested.

Summary updated

BibTeX
@inproceedings{siegel2024probabilities,
  author = {Noah Y. Siegel and Oana-Maria Camburu and Nicolas Heess and María Pérez-Ortiz},
  title = {{The Probabilities Also Matter: A More Faithful Metric for Faithfulness of Free-Text Explanations in Large Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-short.49},
}
Figure