Faithful Chain-of-Thought Reasoning

Qing Lyu, Shreya Havaldar, Adam Stein, Li Zhang, Delip Rao, Eric Wong, Marianna Apidianaki, Chris Callison-Burch

Introduction

Large Language Models (LLMs) have demonstrated impressive reasoning capabilities through Chain-of-Thought (CoT) prompting, where they generate intermediate reasoning steps before arriving at a final answer. However, a significant challenge remains: faithfulness. Standard CoT reasoning is often "unfaithful"—the model may generate a plausible-looking explanation that does not actually lead to its final answer. This discrepancy creates a "hallucinated" interpretability that can be misleading in high-stakes applications like law or medicine.

Methods

To address the faithfulness gap, we propose Faithful CoT, a two-stage framework that ensures the final answer is a direct consequence of the generated reasoning.

The two-stage Faithful CoT framework consisting of a Translation stage and a Problem Solving stage.

The framework operates in two distinct phases:

  1. Translation: The LLM translates a natural language query into a reasoning chain. This chain interleaves natural language (NL) comments with symbolic language (SL) programs. The model decomposes the problem into sub-tasks, identifies dependencies, and provides rationales.
  2. Problem Solving: The symbolic reasoning chain is executed by a deterministic external solver (such as a Python interpreter, a Datalog executor, or a PDDL planner). The solver, rather than the LLM, derives the final answer.

By offloading logical execution to a deterministic solver, the framework guarantees that the reasoning chain is a faithful explanation of the result. If the answer is 5, it is because the code calculated 5.

Evaluation

Faithful CoT was evaluated across 10 datasets spanning four diverse domains to demonstrate its generalizability:

  • Math Word Problems (MWP): GSM8K, SVAMP, MultiArith, ASDiv, and AQuA.
  • Planning: SayCan (robot task planning).
  • Multi-hop QA: StrategyQA, Date Understanding, and Sports Understanding.
  • Relational Inference: CLUTRR (inferring family relationships from stories).

Key Insights and Results

A core finding is that faithfulness enhances accuracy. By allowing the LLM to focus on linguistic decomposition while offloading execution to a solver, performance improves significantly, especially on complex tasks.

Faithful CoT generates reasoning chains in various symbolic languages like Python, Datalog, and PDDL depending on the task domain.
  • Symbolic Versatility: Unlike previous approaches that relied solely on Python, Faithful CoT utilizes different symbolic languages tailored to specific domains. It uses Datalog for logical multi-hop QA and PDDL for robotic planning.
  • State-of-the-Art Performance: Using GPT-4 and Codex, Faithful CoT achieved new SOTA results on 7 out of 10 benchmarks. Notably, on the CLUTRR relational inference dataset, it reached 71.9% accuracy compared to standard CoT's 48.5%.
  • Interpretability: The structured nature of the reasoning chains allows for easier debugging. Human evaluators found that for most domains, over 90% of the reasoning chains were entirely correct when the final answer was correct.

Limitations and Future Work

While the execution stage is deterministic and faithful, the translation stage remains a neural process. Errors in translation can still lead to incorrect logic. Additionally, the method is currently limited to tasks that can be mapped to symbolic representations. Future work will explore using natural language comments as an interface for human-in-the-loop debugging and extending the framework to more subjective reasoning tasks.

Summary updated

BibTeX
@inproceedings{lyu2023faithful,
  author = {Qing Lyu and Shreya Havaldar and Adam Stein and Li Zhang and Delip Rao and Eric Wong and Marianna Apidianaki and Chris Callison-Burch},
  title = {{Faithful Chain-of-Thought Reasoning}},
  booktitle = {IJCNLP},
  year = {2023},
  doi = {10.18653/v1/2023.ijcnlp-main.20},
}
Figure