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

Introduction

Chain-of-Thought (CoT) prompting has emerged as a transformative technique for enhancing the reasoning capabilities of Large Language Models (LLMs). By encouraging models to "think step-by-step," researchers have unlocked significant performance gains across complex tasks. However, a critical question remains: is the model actually following its own logic, or is it merely hallucinating a plausible-sounding path to a correct answer?

In multi-hop reasoning—where a question requires connecting multiple discrete facts—the risk of "black box" reasoning is particularly high. Current evaluation metrics typically focus on the final answer, ignoring the validity of the intermediate steps. This paper introduces a novel evaluation framework that utilizes Knowledge Graphs (KGs) to "fact-check" the reasoning chains generated by LLMs, revealing a significant "faithfulness gap" that persists and even widens as models scale.

The KG-Grounded Evaluation Framework

To systematically evaluate the quality of reasoning, the researchers propose a framework grounded in structured knowledge. The evaluation is divided into two distinct modules:

1. Discriminative Evaluation

This module assesses whether an LLM can recognize valid reasoning. Models are presented with a variety of paths: valid logical chains, "corrupted" paths containing factual errors, shuffled steps that lack coherence, and "misguided" steps derived from unrelated questions. The model’s task is to identify which paths are logically and factually sound.

2. Generative Evaluation

The core of the framework is the automated verification of free-form CoT text. When an LLM generates a reasoning chain, the framework performs the following steps:

  • Parsing: The text is broken down into structured intermediate steps.
  • Retrieval: Using Sentence-BERT embeddings and fuzzy string matching, the framework retrieves the most similar real-world facts (triples) from the Freebase Knowledge Graph.
  • Reconstruction: A formal reasoning path is reconstructed from these retrieved triples.
  • Verification: The path is evaluated based on Factual Correctness (do the facts exist in the KG?), Coherence (does each step logically follow the previous one?), and Answer Correctness (does the path lead to the final answer?).

Experimental Setup

The study utilizes two primary multi-hop Question Answering (QA) benchmarks: Complex WebQuestions (CWQ), which requires up to 4-hop reasoning, and GrailQA. These are grounded against Freebase, a massive Knowledge Graph containing approximately 88 million entities and 126 million facts.

Five LLM families were tested to observe how reasoning quality varies with model architecture and size: Mistral (7B), Qwen (7B, 14B), Vicuna (33B), LLaMA2-Chat (70B), and ChatGPT (GPT-3.5).

Key Insights and the "Faithfulness Gap"

The Scaling Paradox

The most striking finding is the "faithfulness gap": the discrepancy between a model's ability to provide the correct final answer and its ability to generate a valid reasoning chain. Surprisingly, as models grow larger, their answer accuracy improves, but the gap between that accuracy and their reasoning faithfulness actually increases. This suggests that larger models are becoming more adept at using internal heuristics or "guessing" shortcuts rather than strictly following their own generated logic.

Knowledge vs. Execution

LLMs generally perform exceptionally well in discriminative tests, often exceeding 90% accuracy. This indicates that models "know" what a correct reasoning path looks like. However, they struggle to generate those same faithful paths during free-form inference. The failure is not necessarily a lack of knowledge, but an inability to execute that knowledge consistently during generation.

The Dominance of Factual Errors

When analyzing why reasoning chains fail, the researchers found that factual hallucinations in intermediate steps are the primary culprit. These errors occur more frequently than failures in logical coherence, suggesting that grounding the model's internal knowledge remains a greater challenge than the structural logic of the reasoning itself.

Results Summary

  • Quantifying the Discrepancy: On the CWQ dataset, the average gap between answer accuracy and reasoning faithfulness was 15.76%. For GrailQA, the gap was 16.44%.
  • Model Performance: While ChatGPT and LLaMA2-70B achieved the highest overall answer accuracy, they also exhibited some of the largest faithfulness gaps. Conversely, the Mistral-7B model showed remarkably competitive reasoning faithfulness despite its smaller size, often outperforming larger models like Vicuna-33B in logical consistency.
  • The Impact of Prompting: Advanced prompting strategies, such as CoT-Plan (providing a hint of the relation path) and Self-Consistency (sampling and comparing multiple paths), were found to significantly improve both answer accuracy and the faithfulness of the reasoning.

Limitations and Future Directions

While the framework provides a rigorous new standard for CoT evaluation, it has limitations. It currently assumes a one-to-one mapping between a CoT sentence and a KG triple, which may not capture more complex, multi-relation sentences. Furthermore, the evaluation is dependent on the completeness of the underlying Knowledge Graph; missing facts in Freebase could lead to "false positive" error detections.

Future work will focus on incorporating Knowledge Graph Completion methods to mitigate missing data and expanding the framework to handle more abstract reasoning domains where structured KGs may not be readily available, such as mathematical proofs or creative synthesis.

Summary updated

BibTeX
@inproceedings{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}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.168},
}
Figure