Faithful and Unfaithful Error Recovery in Chain of Thought

Evelyn Yee, Alice Li, Chenyu Tang, Yeon Ho Jung, Ramamohan Paturi, Leon BergenCOLM 2024

TL;DR

This paper investigates how Large Language Models (LLMs) recover from errors in their Chain of Thought (CoT) reasoning. They discover that LLMs can arrive at correct answers even with flawed reasoning, a phenomenon termed "unfaithful recovery." This suggests LLMs might have distinct internal mechanisms for generating correct answers versus providing interpretable, faithful reasoning, highlighting a critical challenge for model trustworthiness.

What Problem Does This Paper Address?

Chain of Thought (CoT) prompting has significantly improved LLM performance on complex reasoning tasks by encouraging step-by-step thinking. However, it's unclear if the generated CoT truly reflects the model's internal reasoning process or if LLMs can "cheat" by reaching the correct answer through invalid or unstated reasoning. This "unfaithfulness" is a major concern for interpretability and trustworthiness, as users might be misled by seemingly logical explanations that don't actually support the conclusion. This paper aims to understand how LLMs recover from errors within their CoT and whether this recovery is "faithful" (i.e., the model acknowledges and corrects the error) or "unfaithful" (i.e., the model arrives at the correct answer without explicitly addressing the error).

Methods

The authors developed a pipeline to evaluate LLM error recovery. They first generated ground-truth CoT transcripts for math word problems. Then, they introduced artificial numerical errors into these transcripts at specific points. The LLM was then prompted with the question and the errored CoT to see if it could recover and produce the correct final answer. They categorized recovery behaviors into "faithful" (explicitly identifying and correcting the error) and "unfaithful" (recovering without explicit error acknowledgment). They then manipulated factors like error magnitude and contextual cues to observe their effect on these recovery behaviors.

Datasets

The study utilized four math word problem datasets:

  • MultiArith
  • ASDiv
  • SVAMP
  • GSM8K

These datasets were chosen for their focus on mathematical reasoning, a domain where CoT has shown significant benefits.

Key Insights and Ideas

  • Unfaithful Recovery is Prevalent: LLMs can often arrive at the correct answer despite errors in their CoT, without explicitly acknowledging or correcting the mistake. This suggests a disconnect between the generated reasoning and the model's internal decision-making.
  • Distinct Mechanisms for Faithful vs. Unfaithful Recovery: Factors influencing error recovery have divergent effects on faithful and unfaithful recoveries. For instance, larger errors might increase faithful recovery but not necessarily unfaithful recovery, indicating different underlying processes.
  • Context Matters: LLMs are more likely to recover from errors when the context provides stronger evidence for the correct answer or when they have prior expectations of encountering errors (e.g., through noisy prompts).
  • Error Magnitude Influences Recovery: Larger errors are generally easier for LLMs to recover from, especially in a faithful manner.
  • Interpretability vs. Accuracy Trade-off: The findings suggest that LLMs might prioritize reaching the correct answer (accuracy) over providing a transparent and interpretable reasoning process (faithfulness), especially when faced with errors.

Key Results

  • Error Magnitude: All tested models (GPT-4, Claude-3 Opus, Llama-3 70B) showed higher overall error recovery rates for large errors compared to small errors. For GPT-4, increasing error size led to higher faithful recovery and lower unfaithful recovery. Claude-3 Opus and Llama-3 showed a decrease in faithful recovery and an increase in unfaithful recovery with larger errors.
  • Prior Expectations (Context Noise): Introducing "context noise" (random character replacements) generally increased error recovery rates. For GPT-4, this noise increased faithful recovery and decreased unfaithful recovery. For Claude-3 Opus and Llama-3, context noise led to an increase in unfaithful recovery and a slight decrease in faithful recovery.
  • Error Type (Experiment 3): Copying errors (where the correct value is easily retrievable from earlier text) led to the highest recovery rates, followed by calculation errors, and then propagated calculation errors. This pattern held for faithful recoveries, while unfaithful recoveries showed a less pronounced difference across error types.

Limitations and Future Work

  • Limited Scope: The study focused on mathematical reasoning problems and used only three models. Future work should explore other domains and a wider range of LLMs.
  • Introduced Errors: The errors were artificially introduced. While the authors did analyze naturally occurring errors and found similarities, further research is needed to understand the full spectrum of naturally occurring errors.
  • Interpretability Challenge: A key challenge remains in developing methods to consistently elicit the interpretable, faithful reasoning mode from LLMs. Future research should focus on understanding the mechanisms underlying these different reasoning modes and developing techniques to encourage faithful reasoning.

Summary updated

BibTeX
@inproceedings{yee2024faithful,
  author = {Evelyn Yee and Alice Li and Chenyu Tang and Yeon Ho Jung and Ramamohan Paturi and Leon Bergen},
  title = {{Faithful and Unfaithful Error Recovery in Chain of Thought}},
  booktitle = {COLM},
  year = {2024},
  url = {https://openreview.net/forum?id=IPZ28ZqD4I},
}
Figure