TRACE the Evidence: Constructing Knowledge-Grounded Reasoning Chains for Retrieval-Augmented Generation

Jinyuan Fang, Zaiqiao Meng, Craig MacDonald

Abstract

Standard Retrieval-Augmented Generation (RAG) systems often struggle with "noise" in retrieved documents, which can lead to hallucinations or reasoning failures in multi-hop question answering. We introduce TRACE (Transforming documents into a KG and constructing Reasoning Chains to identify Evidence), a framework designed to improve RAG by structuring retrieved information into Knowledge Graphs (KGs). By building autoregressive reasoning chains of factual triples, TRACE allows Large Language Models (LLMs) to navigate complex evidence paths with higher precision and significantly reduced context overhead.

Introduction

The "retrieve-then-read" paradigm has become the standard for grounding LLMs in external knowledge. However, this approach is highly sensitive to the quality of the retrieved documents. In multi-hop reasoning—where an answer depends on connecting disparate facts—retrievers often pull in irrelevant or "noisy" documents that distract the model, a phenomenon known as the "lost-in-the-middle" problem.

Conceptual overview of TRACE: Transforming noisy documents into structured knowledge graphs to build factual reasoning chains.

To address this, the TRACE framework moves away from treating documents as raw text strings. Instead, it extracts essential factual triples to form a structured representation of the evidence, enabling the model to follow a logical path to the answer.

The TRACE Framework

The TRACE pipeline consists of three distinct stages: KG Generation, Reasoning Chain Construction, and Answer Generation.

1. Knowledge Graph Generation

Rather than feeding entire documents into the reader, TRACE uses an LLM to extract knowledge triples in the form of <head entity, relation, tail entity>. This process filters out linguistic "fluff" and decouples individual facts, allowing for finer-grained information retrieval.

2. Reasoning Chain Construction

This is the core of the TRACE system. Instead of selecting all relevant triples at once, TRACE builds a reasoning path autoregressively, mimicking human-like step-by-step logic.

The TRACE architecture: (1) KG Generation from documents, (2) Reasoning Chain Construction via iterative Triple Ranking and Selection, and (3) Final Answer Generation.
  • Triple Ranker: A bi-encoder (e.g., e5-mistral) identifies a candidate set of triples from the global KG that are relevant to the question and the current reasoning state.
  • Triple Selector: An LLM acts as a reasoning agent, selecting the most logical next step from the candidates. Crucially, this stage includes an "adaptive termination" option, allowing the model to stop once sufficient evidence is gathered.

3. Answer Generation

The final stage generates the answer using the constructed reasoning chain. The framework supports two modes: TRACE-Triple, which uses only the extracted triples as context, and TRACE-Doc, which uses the original source documents associated with the selected triples.

Experimental Evaluation

The authors evaluated TRACE across three challenging multi-hop QA benchmarks: HotPotQA (2-hop reasoning), 2WikiMultiHopQA (compositional relationships), and MuSiQue (designed to prevent single-hop shortcuts).

Key Results

  • Accuracy Gains: TRACE achieved an average improvement of 14.03% in Exact Match (EM) over vanilla RAG baselines.
  • Context Efficiency: On the MuSiQue dataset, TRACE-Triple achieved a 33.43% EM score using an average of only 169 tokens, compared to vanilla RAG’s 16.14% EM score using 2,551 tokens. This demonstrates that structured triples are a far more efficient representation of knowledge than raw text.
  • Model Agnosticism: The reasoning chains generated by TRACE improved the performance of various reader models, including LLaMA3, Mistral, and Gemma, indicating that the structured evidence is universally beneficial.

Discussion and Limitations

TRACE effectively "de-noises" the RAG process by forcing the model to commit to a factual path. However, some limitations remain. The current KG generation is optimized for structured Wikipedia-like data; adapting it to messy web text is an area for future research. Additionally, the Triple Selector currently relies on logit access for beam search, which can be a barrier for closed-source API models.

Conclusion

By transforming unstructured documents into structured reasoning paths, TRACE provides a robust solution to the noise-sensitivity problem in RAG. It proves that for complex reasoning, "less is more"—providing the right facts in a logical order is more effective than providing a high volume of raw text.

Summary updated

BibTeX
@inproceedings{fang2024trace,
  author = {Jinyuan Fang and Zaiqiao Meng and Craig MacDonald},
  title = {{TRACE the Evidence: Constructing Knowledge-Grounded Reasoning Chains for Retrieval-Augmented Generation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.496},
}
Figure