Direct Evaluation of Chain-of-Thought in Multi-hop Reasoning with Knowledge Graphs

Thi Nguyen, Linhao Luo, Fatemeh Shiri, Dinh Phung, Yuan-Fang Li, Thuy-Trang Vu, Gholamreza HaffariACL 2024 · DOI

TL;DR

This paper introduces a novel framework to evaluate the reasoning process (Chain-of-Thought or CoT) of Large Language Models (LLMs) in multi-hop question answering, going beyond just checking the final answer. They found that while LLMs have the knowledge to reason, they often arrive at correct answers through flawed or unfaithful reasoning steps, a gap that widens with larger models.

What Problem Does This Paper Address?

Large Language Models (LLMs) have shown impressive capabilities in generating "Chain-of-Thought" (CoT) explanations to justify their answers. However, most existing evaluations focus solely on the accuracy of the final answer, ignoring whether the intermediate reasoning steps are actually correct or faithful to the underlying knowledge. This leaves a critical gap: are LLMs truly reasoning, or are they just good at mimicking reasoning patterns to arrive at the right answer? This paper aims to bridge this gap by directly evaluating the faithfulness and correctness of the CoT generated by LLMs, particularly in complex multi-hop reasoning tasks that require integrating information from multiple sources.

Methods

The authors propose a two-pronged evaluation framework that leverages Knowledge Graphs (KGs):

  1. Discriminative Evaluation: This module tests an LLM's knowledge of what constitutes faithful reasoning. It involves presenting the LLM with valid and invalid reasoning paths (perturbed with factual errors, incoherence, or irrelevance) and asking it to identify the valid ones. This helps assess if LLMs can distinguish good reasoning from bad.
  2. Generative Evaluation: This module assesses an LLM's ability to generate faithful reasoning. It involves instructing LLMs to produce CoT in a structured format, which is then parsed into a reasoning path. This path is then grounded against a KG to verify its factual correctness, coherence, and whether it leads to the correct answer. They also employ an embedding-based retrieval method to match CoT steps to KG triples, addressing the challenge of unstructured CoT.

Datasets

The experiments were conducted on two multi-hop question-answering datasets:

  • Complex WebQuestions (CWQ): A dataset requiring multi-step reasoning over knowledge bases.
  • GrailQA: Another dataset designed for complex question answering that involves multi-hop reasoning.

The KGs used for grounding were derived from SPARQL queries on Freebase.

Key Insights and Ideas

  • The "Faithfulness Gap": A significant and consistent gap exists between LLMs' final answer accuracy and the faithfulness of their generated reasoning steps. This suggests LLMs can often "guess" the right answer without truly reasoning correctly.
  • Larger Models, Bigger Gaps: Counterintuitively, the gap between answer accuracy and reasoning faithfulness tends to increase with model size. This implies that larger models might possess more direct knowledge of answers, reducing their reliance on explicit reasoning steps, or they become better at producing plausible-sounding but incorrect reasoning.
  • Knowledge vs. Generation: LLMs demonstrate good knowledge of what constitutes valid reasoning (discriminative evaluation) but struggle to consistently generate faithful reasoning paths (generative evaluation).
  • Factual Errors Dominate: The most common type of error in LLM reasoning is factual inaccuracy, followed by coherence issues.
  • Prompting Matters: Enhanced prompting strategies like CoT-Plan (planning relations) and CoT-SC (self-consistency) significantly improve both answer and reasoning accuracy, especially for smaller models.

Key Results

  • Discriminative Evaluation: LLMs generally perform well in identifying valid reasoning paths, showing they possess knowledge of reasoning principles. However, performance dips for incoherent paths, suggesting limitations in understanding structural context.
  • Generative Evaluation:
    • ChatGPT (175B) generally showed superior performance in both answer accuracy and reasoning faithfulness.
  • Mistral 7B, despite being the smallest model, achieved competitive performance, often outperforming larger models in terms of reasoning faithfulness.
  • The average gap between answer accuracy and reasoning faithfulness was 15.76% for CWQ and 16.44% for GrailQA.
  • Improved prompting strategies (CoT-Plan, CoT-SC) led to substantial gains across all LLMs, with improvements of up to 4.30% in reasoning accuracy.

Limitations and Future Work

  • CoT Step Granularity: The current framework assumes one CoT step corresponds to one KG triple. LLMs can generate sentences with multiple relations, which might require more sophisticated triple retrieval or path construction methods.
  • KG Availability: The framework relies on complete knowledge graphs for factual retrieval. Future work could explore KG completion methods to enhance retrieval accuracy.
  • Reasoning Scope: The study focuses on multi-hop reasoning over KGs. Other complex reasoning tasks (e.g., mathematical, logical) involving unstructured replies are not directly addressed and require further exploration.
  • Model Size and Reasoning: The paper speculates that larger LLMs might have direct knowledge of answers, bypassing the need for explicit reasoning. Further investigation into this phenomenon is warranted.
  • Prompting Strategies: While CoT-Plan and CoT-SC show promise, exploring other advanced prompting techniques could further enhance LLM reasoning capabilities.

Summary updated

BibTeX
@misc{nguyen2024direct,
  author = {Thi Nguyen and Linhao Luo and Fatemeh Shiri and Dinh Phung and Yuan-Fang Li and Thuy-Trang Vu and Gholamreza Haffari},
  title = {{Direct Evaluation of Chain-of-Thought in Multi-hop Reasoning with Knowledge Graphs}},
  year = {2024},
  eprint = {2402.11199},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.11199},
}
Figure