Abstract
Iterative Retrieval-Augmented Generation (RAG) systems often struggle with multi-hop reasoning due to "context overload" and "futile reasoning" loops. We present KnowTrace, a framework that treats reasoning as structured knowledge tracing. KnowTrace autonomously constructs a mini-knowledge graph of relevant facts and utilizes a "backtracing" mechanism to self-distill high-quality reasoning data. Experimental results across three benchmarks show that KnowTrace significantly outperforms existing iterative and restructuring-based RAG methods.
Introduction
Standard RAG effectively handles simple queries but falters on complex multi-hop questions requiring multiple steps of information retrieval and logical synthesis. Current iterative systems often fall into "death spirals": retrievers pull in noisy or redundant text, filling the LLM's context window and degrading reasoning quality. This leads to futile reasoning steps that trigger further irrelevant retrievals.
The KnowTrace Framework
KnowTrace addresses these issues by shifting from unstructured text context to structured knowledge tracing. The framework operates in two primary phases:
1. Knowledge Exploration and Completion
Instead of processing raw text blocks, the LLM acts as an active tracker. It identifies specific "entity-relation" pairs needed to answer the query. It then extracts these as knowledge triplets (Subject, Relation, Object) from retrieved passages to build a structured, dynamic knowledge graph (KG). This structured format allows the LLM to perceive logical connections more clearly than within dense paragraphs.
2. Reflective Knowledge Backtracing and Bootstrapping
A key innovation of KnowTrace is its self-improvement mechanism. After successfully answering a question, the system performs Knowledge Backtracing. It reviews the constructed KG to identify the specific path of triplets that led to the correct answer, discarding "dead ends" or irrelevant explorations. This process creates a "gold standard" dataset of successful reasoning trajectories, which is used to fine-tune the model (via LoRA), enabling continuous self-bootstrapping without human-labeled rationales.
Experimental Evaluation
KnowTrace was evaluated on three multi-hop QA benchmarks: HotpotQA, 2WikiMultihopQA, and MuSiQue.
Key Results
- Performance Gains: Using LLaMA3-8B, KnowTrace achieved absolute gains of 5.3% and 4.3% in Exact Match (EM) scores over state-of-the-art iterative (e.g., IRCoT) and restructuring baselines.
- Effective Self-Training: The self-finetuned version (KnowTrace*) showed consistent improvement. In contrast, standard self-training methods often declined in performance because they learned from noisy, non-contributive intermediate steps.
- Efficiency: KnowTrace builds its KG on-the-fly, avoiding the high computational costs associated with restructuring entire corpora while maintaining high accuracy.
Conclusion
KnowTrace demonstrates that structured knowledge tracing is a powerful alternative to unstructured context in iterative RAG. By distilling information into logical components and using backtracing to filter reasoning noise, KnowTrace provides a robust path for LLMs to handle complex, multi-step knowledge tasks efficiently.
Summary updated