arXiv:2610.39667cs.IROct 2026

Manuscript Offprint

arXiv:2610.39667

Efficient LLM-based Subgraph Retrieval for Multi-Hop Knowledge Base Question Answering

Duanyang Yuan, Sihang Zhou, Xiaoshu Chen, Haoyuan Chen, Ke Liang, Jian Huang

Duanyang Yuan, Sihang Zhou ∗^{*}, Xiaoshu Chen, Haoyuan Chen, Ke Liang, Jian Huang ∗^{*}

Abstract—Multi-hop Knowledge Base Question Answering (KBQA) aims to find answer entities in the knowledge base that are multiple hops away from the entities in the question. Information retrieval-based (IR-based) methods extract a pivotal subgraph from the entire KB to locate candidate answers and then evaluate their plausibility through semantic matching with the question. However, we observed that the extracted subgraphs often include nodes that are weakly related or irrelevant to the question. Without a proper node filtering mechanism, the number of irrelevant nodes grows as the number of hops increases, leading to excessive consumption of computational resources. To address these challenges, this study introduces an efficient LLM-based subgraph retrieval method for multi-hop knowledge base question answering, M-ER. The framework leverages Monte Carlo Tree Search (MCTS) to transform subgraph exploration into a tree-structured search process. During the MCTS selection phase, nodes that are highly relevant to the question are prioritized for inclusion in the subgraph, eliminating the need to traverse all nodes in the KB. The framework further incorporates a large language model (LLM) to refine the search direction, ensuring that exploration remains focused on nodes relevant to the question. In addition, selected nodes are quantitatively scored, and these scores are fed back into the node selection process to effectively filter out irrelevant candidates, thereby improving the quality of the subgraph. This mechanism not only narrows the search space but also enhances the overall efficiency of multi-hop KBQA. Experiments on the WebQSP benchmark demonstrate that M-ER achieves 78.88% on the Hits@1 metric, while also improving computational efficiency. These results not only validate the effectiveness of M-ER, but also offer a viable technical path to balance performance and computational efficiency 1^{1}.

Index Terms—Multi-hop Question Answering, MCTS, Knowledge Base, Large Language Model.

I. INTRODUCTION

K NOWLEDGE base question answering (KBQA) [1] aims to retrieve answers from structured knowledge bases (e.g., Freebase [2], DBpedia [3]) in response to natural language queries. Current methodologies can be divided into two paradigms: semantic parsing-based (SP-based) [4]–[7] and information retrieval-based (IR-based) [8], [9]. SP-based approaches translate questions into executable logical forms [6], [10] but require expensive annotation efforts. In contrast, IR-based methods directly represent and rank candidate entities based on their relevance to the input questions.

Extracting a question-relevant subgraph and reasoning within it is a key branch of IR-based methods. The performance of subgraph extraction is mainly influenced by two factors: subgraph construction quality and answer coverage rate. Subgraph construction directly affects the efficiency and accuracy of the reasoning process, as reasoning paths are formed by expanding nodes and relations within the subgraph. The answer coverage rate defines the upper bound of the performance [11]. Current subgraph extraction methods can be categorized into two main approaches: the k-hop neighbor method and the scoring-based method. The k-hop neighbor approach constructs subgraphs by retrieving a fixed number of hops around the topic entity without requiring additional search heuristics. However, KBQA is sensitive to subgraph size, since a small subgraph may exclude correct answers, while a large one may introduce excessive noise. Scoring-based methods perform KBQA by quantifying the semantic association between the question and KB elements. NSM [12] adopts a teacher-student framework with bidirectional reasoning to generate intermediate supervision signals for answer extraction. SR [13] introduces a trainable subgraph retriever decoupled from inference, and generates accurate question-related subgraphs through weakly supervised pre-training and end-to-end fine-tuning. When combined with NSM [12], this approach sets a new performance benchmark.

Existing scoring-based methods typically construct subgraphs by computing semantic similarity between the question and knowledge base elements (entities or relations), as shown in Figure 1(a). Representative methods such as SR [13] use language models to compute semantic similarity. However, when a single entity has relations corresponding to diverse attributes, these methods may retain relations that are weakly related or irrelevant to the question, expanding the search space and reducing answer accuracy. For example, for the question What language did Jewish people speak?, we analyze the total number of one-hop neighboring relations of the topic entity Jewish people, along with the names and frequencies of the neighboring relations filtered based on similarity, as shown in Table I. From this, three issues can be observed: (1) The topic entity Jewish people has rich attribute information, linking to language-related entities via the relation people.ethnicity.languages_spoken and to person-related entities via the relation people.ethnicity.people. All these links originate from a single entity. (2) Existing methods typically compute similarity between the query [What

Duanyang Yuan, Sihang Zhou, Haoyuan Chen, and Jian Huang are with the College of Intelligence Science and Technology, National University of Defense Technology, Changsha 410073, China, and also with the National Key Laboratory of Equipment State Sensing and Smart Support, Changsha 410073, China. (e-mail: {shzhou, huang_jian}@nudt.edu.cn)

Xiaoshu Chen and Ke Liang are with the College of Computer Science and Technology, National University of Defense Technology, Changsha 410073, China

  • Corresponding Authors

1^{1}https://github.com/DuanyangYuan/M-ER

Figure

(b) Comparison of relation-matching scores from our method and SR for the topic entity “Jewish people” and its connected relations.

Legend

person-name entities → relation

noise entity

topic entity

language-related entities

Fig. 1. Illustrates the challenges faced by previous methods (SR) and how M-ER alleviates them. (a) A comparison between SR (top) and M-ER (bottom) is presented. SR expands subgraphs primarily based on semantic similarity, which tends to introduce nodes that are weakly related or irrelevant to the question. These irrelevant expansions distract the reasoning process and incur unnecessary computational overhead. In contrast, M-ER incorporates LLM-based reflection, reasoning, and evaluation stages. M-ER evaluates each candidate node for expansion by considering both the current subgraph context and the question, thereby explicitly estimating its potential contribution to answering the question. (b) Comparison of relation-matching scores from our method (M-ER) and SR. Specifically, M-ER computes similarity between the predicted relation and each relation linked to the topic entity, and SR measures similarity between the query and those relations. While SR struggles to distinguish answer-relevant relations from those that are weakly related or irrelevant to the question, M-ER effectively prioritizes relations that are answer-relevant (e.g., language-related) and suppresses weakly relevant relations (e.g., person-related).

TABLE I THE ONE-HOP NEIGHBORS OF THE TOPIC ENTITY Jewish people ARE SELECTED BY CALCULATING SIMILARITY SCORES BETWEEN THE QUESTION AND THE RELATIONS. ONLY THOSE NEIGHBORS THAT MEET THE PREDEFINED THRESHOLD CAN BE ADDED TO THE SUBGRAPH. THE TERM “FREQUENCY” INDICATES HOW OFTEN THE ONE-HOP RELATIONS APPEARS IN THE DATASET.

Question: What language did Jewish people speak?
Topic entity: Jewish people
The number of one-hop neighbor relations of the topic entity: 5308
Relation NameFrequencyRelation NameFrequency
people.ethnicity.people5149people.ethnicity.includes_groups13
common.topic.webpage47book.book_subject.works12
people.ethnicity.languages_spoken25military.military_combatant.military_conflicts4
fictional_universe.ethnicity_in_fiction.characters_of_this_ethnicity25film.film_subject.films3
type.object.type16common.topic.image2

language did Jewish people speak?; Jewish people] and all relations connected to the topic entity Jewish people. As a result, the person-related relation people.ethnicity.people may be retained during retrieval even though only language-related information is relevant to answering the question. Notably, person-related relations (e.g., people.ethnicity.people) account for 97%, far exceeding relevant language-related relations (e.g., people.ethnicity.languages_spoken), thereby overshadowing crucial language-related links and propagating semantic noise to subsequent hops. This propagation can lead to a combinatorial explosion, reducing overall performance. (3) The topic entity Jewish people has 5,308 one-hop neighboring relations. Extending the subgraph based on this introduces substantial computational overhead.

To address these challenges, Coke [14] formulates reasoning as a trade-off between accuracy and computational cost, aiming to achieve cost-effective inference. Although effective in principle, this approach relies on global answer matching over the entire KB, which introduces substantial noise and increases the overall computational burden. MCTS provides a more targeted exploration strategy [15]–[17]. By simulating future states through random sampling, it incrementally constructs a search tree where the nodes correspond to possible reasoning steps within the subgraph. This strategy focuses computation on the most promising nodes, reducing the need for exhaustive enumeration. By balancing exploration and exploitation, MCTS narrows the scope of the search and improves computational efficiency [17]–[20]. Extending this idea, KBQA-o1 [21] leverages MCTS to balance exploration quality and search range, while also adopting incremental fine-tuning to reduce reliance on labeled data. Its limitation lies in disregarding the structural and semantic context of the knowledge graph, making it vulnerable to cascading errors from incorrect intermediate predictions. MCTS-KBQA [22] introduces a task-specific scoring function to improve answer selection. However, it lacks explicit guidance for selecting subsequent search directions and does not fully exploit the structural information within subgraphs. Consequently, it often terminates at intermediate states and treats them as final answers, leading to lower accuracy and unstable performance.

In addition, MCTS often struggles in scenarios where a single entity is connected to relations corresponding to diverse attributes, as weakly related or irrelevant nodes may be retained during exploration. This reduces the model's ability to discriminate answer-relevant semantics, leading to the inclusion of noisy entities and a degradation in overall performance. Therefore, M-ER is designed to incorporate MCTS into KBQA while explicitly filtering irrelevant relations.

Large language models (LLMs), on the other hand, exhibit strong contextual reasoning capabilities [23], [24] and can guide node selection toward answer-relevant directions [18], [25]. Therefore, this study proposes an efficient LLM-based subgraph retrieval method for multi-hop knowledge base question answering (M-ER), which integrates the semantic reasoning capabilities of LLMs with the global search efficiency of MCTS, as shown in Figure 1(a). This approach jointly activates model capabilities from two perspectives: internal (semantic reasoning within the model) and external (exploration of the KB). Specifically, LLMs interpret the question to predict the next search direction, which is then matched with candidate nodes based on semantic similarity. Meanwhile, selected nodes are evaluated based on their contribution to the final answer, and these scores are used to refine the reflection process, thus improving the alignment between the model's internal knowledge and external information. It can be seen from Figure 1 (b) that this method can effectively reduce the similarity scores of irrelevant nodes, thus improving the quality of the subgraph. The main contributions of this work are in three aspects:

  • We combine MCTS and LLM for subgraph construction and solve the trade-off between semantic focus and search efficiency by balancing exploration and exploitation. Experimental results on WebQSP demonstrate that M-ER achieves 78.88% on the Hits@1 metric, surpassing the previous relevance-driven method (SR) by 7.08%.

• We design a guidance mechanism where LLMs steer MCTS toward answer-relevant subgraph expansions, effectively mitigating semantic drift.

• We develop a subgraph evaluation mechanism that assigns quantitative scores to selected nodes, enabling feedback-driven optimization of reasoning paths within the subgraph. This mechanism opens new avenues for KBQA.

References (66)