Abstract
KAG-Thinker is a multi-turn interactive thinking and deep reasoning framework that upgrades Knowledge-Augmented Generation (KAG). By constructing a structured thinking process, it enhances logical coherence and contextual consistency in question-answering (Q&A) tasks. The framework decomposes complex questions into independently solvable "Logical Forms" through breadth decomposition. It employs a knowledge boundary module to determine the optimal knowledge source (internal vs. external) and a depth solving module to refine knowledge acquisition. KAG-Thinker achieves a 4.1% average improvement over state-of-the-art deep search models across seven major benchmarks.
Introduction
Large Language Models (LLMs) face a "reasoning wall" when tackling complex, multi-hop questions that require external, up-to-date facts. Standard RAG models often retrieve documents rigidly, leading to noise, while "slow thinking" models like OpenAI’s o1 may lack a transparent, step-by-step approach for integrating external knowledge bases (KBs). KAG-Thinker addresses these gaps by ensuring the logical coherence and stability of the problem-solving process, reducing redundant searches and filtering out noise.
Methodology
The KAG-Thinker architecture is built on four primary pillars designed to move beyond simple retrieval toward a more deliberative reasoning paradigm.
Breadth Decomposition
Instead of solving a complex query all at once, the model performs a "one-pass" decomposition into atomic sub-questions. Each sub-question is represented as a Logical Form—a dual representation consisting of natural language and a functional interface (e.g., Retrieval, Math, Deduce). Dependencies and parameter passing between these tasks are explicitly modeled via logical function interfaces.
Knowledge Boundary and Depth Solving
To avoid "indiscriminate retrieval," the model first attempts to answer a sub-question using its internal weights. A Knowledge Boundary module uses a dual-confidence assessment (prompt-based reflection and likelihood-based probability) to decide if external search is necessary. For sub-questions requiring external data, the model enters a Depth Solving loop, retrieving information and applying a "Focusing-and-Reasoning" module to filter noise.
Supervised Fine-Tuning
KAG-Thinker utilizes a specialized Data Evaluation Framework (DEF) to synthesize high-quality, multi-turn reasoning trajectories. The model is trained via Supervised Fine-Tuning (SFT) to follow this structured paradigm, ensuring stability and reliability without the complexity of Reinforcement Learning.
Evaluation and Results
The framework was evaluated on seven datasets, including single-hop (NQ, TriviaQA), multi-hop (HotpotQA, Musique), and domain-specific (MedQA) tasks.
- Performance: KAG-Thinker outperformed state-of-the-art models like Search-R1 by an average of 4.1% in EM (Exact Match) score.
- RAG Superiority: It outperformed Naive RAG by 14.8% and agent-mediated search (Search-o1) by 24.6%.
- Medical Domain: In the MedQA test, KAG-Med-Thinker (14B) achieved 87.0% accuracy, significantly outperforming the base Qwen2.5-14B-Instruct model (84.0%).
- Stability: The paper introduces a "stability score" to measure consistency across runs. KAG-Thinker showed significantly higher stability than standard 72B models, proving that structured thinking leads to more reliable outputs.
Conclusion
KAG-Thinker demonstrates that teaching LLMs to "think" before they search significantly improves performance and reliability in complex Q&A tasks. By treating sub-problems as verifiable functional calls, the reasoning process becomes more transparent. Future work will focus on improving the ability of smaller models to handle extremely complex logical decompositions by synthesizing more intricate training samples from structured knowledge graphs.
Summary updated