Overview
The Chain-of-Decomposition (CoD) framework significantly boosts the performance of Large Language Models (LLMs) on Knowledge Base Question Answering (KBQA) by breaking the task into three modular steps: retrieval, rule-based path construction, and LLM-based verification. This approach allows a relatively small Llama-2 7B model to achieve state-of-the-art results, even outperforming GPT-4 augmented with retrieved knowledge.
The Challenge of KBQA for LLMs
Knowledge Base Question Answering (KBQA) requires a model to find answers to natural language questions by navigating massive, structured databases (Knowledge Bases or KBs) like Freebase. This is notoriously difficult for LLMs for two primary reasons:
- Scale: You cannot simply "stuff" a knowledge base containing millions of facts into an LLM's prompt; it is computationally prohibitive and exceeds standard context limits.
- Complexity: Many questions are "multi-hop," meaning the answer is several steps away from the initial topic (e.g., "Who directed the movie starring the actor who won an Oscar in 1994?").
Current methods either try to retrieve a small "subgraph" and let the LLM figure it out—which often overwhelms the model—or fine-tune the LLM to generate complex query code directly, requiring massive amounts of specialized training data. The authors aim to simplify this by reducing the reasoning burden placed on the LLM.
The Chain-of-Decomposition (CoD) Framework
To address these bottlenecks, the authors propose Chain-of-Decomposition (CoD), which factorizes the KBQA process into three distinct modules based on a causal graph analysis.
- LLM-Free Retrieval: Instead of using a massive model, the framework fine-tunes a smaller, efficient model (T5) to identify query-relevant relations and entities within the KB. This effectively scales down the search space into a manageable subgraph.
- Parameter-Free Reformulation: This rule-based step takes the retrieved triples (e.g., Tom Hanks -> starred_in -> Forrest Gump) and automatically converts them into structured "reasoning paths" using predefined templates. Because this is rule-based, it requires no training and adds zero computational overhead to the LLM.
- Lightweight LLM Reasoning: The final LLM (Llama-2 7B) is fine-tuned to perform a simplified task: looking at a specific reasoning path and determining if it logically answers the question. It performs binary classification (answering "yes" or "no") and generates a logical form (like SPARQL) for final execution.
By isolating the heavy lifting of retrieval and formatting, the LLM can focus entirely on the logical verification of specific paths.
Datasets and Key Insights
The framework was evaluated on two gold-standard KBQA benchmarks using Freebase as the underlying knowledge source: WebQuestionsSP (WebQSP), containing 4,737 natural language questions, and ComplexWebQuestions (CWQ), a much larger dataset (34,689 questions) specifically designed to require multi-hop reasoning and complex constraints.
Key Insights
- Verification over Generation: A core insight of CoD is that it is much easier for an LLM to verify if a path is correct than to discover that path from scratch in a sea of data.
- Mathematical Factorization: The authors used causal inference to prove that the joint probability of an answer can be broken down into retrieval, reformulation, and reasoning steps, providing a theoretical backing for their architecture.
- Small Models, Big Results: The paper proves that architectural decomposition can be more effective than raw model size. A fine-tuned 7B model using CoD beat GPT-4 because the task complexity was reduced before the LLM even processed the data.
State-of-the-Art Results
CoD achieved the highest scores to date on both benchmarks. On WebQSP, it reached 86.54% Hits@1, and on the more difficult CWQ, it hit 77.42% Hits@1. Remarkably, Llama-2 7B with CoD outperformed GPT-4 (augmented with KG) by roughly 2-5% across different metrics.
The retrieval module (T5) significantly outperformed standard retrieval methods like BM25 or DPR, showing that "path-aware" retrieval is crucial for structured data. Furthermore, ablation studies showed that removing the "Reasoning Path" (RP) step and feeding raw triples to the LLM caused a 14.33% drop in performance, proving that the rule-based reformulation step is a vital bridge between the database and the model.
Limitations and Future Work
While highly effective, the framework has a few limitations. The primary experiments focused on Llama-2 7B; while tests with Llama-3 and Qwen showed success, more advanced reasoning models could potentially push these boundaries further. Additionally, the reformulation step relies on handcrafted templates. While effective for current benchmarks, extremely diverse or noisy real-world knowledge bases might require more flexible, learned reformulation strategies. Finally, the current implementation typically results in fewer than 10 reasoning paths per query. For extremely open-ended questions where hundreds of paths might be valid, the verification step could become a computational bottleneck.
Summary updated