[Paper Review] Reasoning on Efficient Knowledge Paths:Knowledge Graph Guides Large Language Model for Domain Question Answering
This paper proposes Reasoning on Efficient Knowledge Paths (RoK), a method that leverages knowledge graphs (KGs) to guide large language models (LLMs) in domain question answering with minimal LLM calls. By combining chain-of-thought prompting and PageRank for efficient subgraph retrieval, RoK identifies high-likelihood reasoning paths, reducing hallucination and improving answer accuracy with only three LLM calls—outperforming SOTA methods on GenMedGPT-5k, CMCQA, and WebQuestions.
Large language models (LLMs), such as GPT3.5, GPT4 and LLAMA2 perform surprisingly well and outperform human experts on many tasks. However, in many domain-specific evaluations, these LLMs often suffer from hallucination problems due to insufficient training of relevant corpus. Furthermore, fine-tuning large models may face problems such as the LLMs are not open source or the construction of high-quality domain instruction is difficult. Therefore, structured knowledge databases such as knowledge graph can better provide domain background knowledge for LLMs and make full use of the reasoning and analysis capabilities of LLMs. In some previous works, LLM was called multiple times to determine whether the current triplet was suitable for inclusion in the subgraph when retrieving subgraphs through a question. Especially for the question that require a multi-hop reasoning path, frequent calls to LLM will consume a lot of computing power. Moreover, when choosing the reasoning path, LLM will be called once for each step, and if one of the steps is selected incorrectly, it will lead to the accumulation of errors in the following steps. In this paper, we integrated and optimized a pipeline for selecting reasoning paths from KG based on LLM, which can reduce the dependency on LLM. In addition, we propose a simple and effective subgraph retrieval method based on chain of thought (CoT) and page rank which can returns the paths most likely to contain the answer. We conduct experiments on three datasets: GenMedGPT-5k [14], WebQuestions [2], and CMCQA [21]. Finally, RoK can demonstrate that using fewer LLM calls can achieve the same results as previous SOTAs models.
Motivation & Objective
- Address hallucination in LLMs during domain-specific question answering due to insufficient domain-specific training data.
- Reduce dependency on multiple LLM calls during multi-hop knowledge path retrieval in knowledge graphs.
- Improve reasoning accuracy for complex, multi-hop questions by identifying high-quality, logically coherent reasoning paths from KGs.
- Enhance interpretability and reliability of LLM-generated answers by grounding them in structured, explainable knowledge paths.
- Minimize the need for expensive fine-tuning or high-cost instruction data creation by leveraging external knowledge graphs effectively.
Proposed method
- Use chain-of-thought (CoT) prompting with a vanilla LLM to extract key entities from the question, even if the initial answer is incorrect.
- Expand the set of key entities by matching them to entities in the knowledge graph to enrich potential reasoning paths.
- Apply PageRank to rank candidate multi-hop paths between key entities, prioritizing paths with higher structural relevance and logical coherence.
- Iteratively explore all pairwise multi-hop paths between key entities to ensure comprehensive coverage of potential reasoning routes.
- Construct a final prompt using the top-ranked reasoning path from the KG to guide the LLM in generating the final answer with minimal inference calls.
- Use GPT-4 for answer ranking and key entity matching to objectively evaluate performance, avoiding reliance on LLMs as evaluators.
Experimental results
Research questions
- RQ1Can a knowledge graph-guided reasoning path selection method reduce the number of LLM calls while maintaining or improving answer accuracy in domain question answering?
- RQ2How effective is the combination of chain-of-thought prompting and PageRank in identifying high-quality, logically coherent reasoning paths in knowledge graphs?
- RQ3To what extent can structured knowledge paths from KGs mitigate hallucination in LLMs compared to unstructured document retrieval or direct LLM generation?
- RQ4How does the method perform on complex, multi-hop questions requiring reasoning across multiple entities and relations?
- RQ5Can key entity expansion improve the robustness of path selection when initial entity matching is limited?
Key findings
- RoK achieved the highest GPT-4 average ranking and key entity match accuracy on the GenMedGPT-5k dataset, significantly outperforming vanilla GPT-3.5 and other retrieval-enhanced methods.
- On GenMedGPT-5k, RoK demonstrated superior answer quality despite only three LLM calls, indicating high efficiency and effectiveness in reasoning path selection.
- The method achieved strong performance on CMCQA and WebQuestions, with key entity match accuracy outperforming MindMap and embedding-based retrieval, especially in complex reasoning scenarios.
- RoK’s path selection mechanism, which explores all pairwise multi-hop paths between key entities, led to more accurate and complete reasoning chains than methods relying on limited entity matching.
- The use of PageRank to rank candidate paths improved the likelihood of selecting paths that contain the correct answer, as shown by the alignment between selected paths and reference answers.
- Even when the initial CoT answer was incorrect, key entity expansion enabled RoK to recover and construct valid reasoning paths, demonstrating robustness to initial LLM errors.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.