Dynamically Adaptive Reasoning via LLM-Guided MCTS for Efficient and Context-Aware KGQA

Yingxu Wang, Shiqi Fan, Mengzhu Wang, Siyang Gao, Siwei Liu, Nan Yin

Abstract

Knowledge Graph Question Answering (KGQA) aims to interpret natural language queries and perform structured reasoning over knowledge graphs by leveraging their relational and semantic structures to retrieve accurate answers. Existing methods primarily follow either the retrieve-then-reason paradigm, which relies on Graph Neural Networks or heuristic rules to extract static candidate paths, or dynamic path generation strategies that employ LLMs with prompting to jointly perform retrieval and reasoning. However, the former lacks adaptability due to static path extraction and the absence of contextual refinement, while the latter suffers from high computational costs and limited evaluation accuracy because of their dependence on fixed scoring functions and repeated LLM calls. To address these issues, this paper proposes Dynamically Adaptive MCTS-based Reasoning (DAMR), a novel framework that integrates LLM-guided Monte Carlo Tree Search (MCTS) with adaptive path evaluation to enable efficient and context-aware KGQA. DAMR leverages MCTS as a backbone, where an LLM-based planner selects the top-$k$ semantically relevant relations at each expansion step to effectively reduce the search space. To enhance evaluation accuracy, we introduce a lightweight Transformer-based scorer that performs context-aware plausibility estimation by jointly encoding the question and relation sequence through cross-attention, thereby capturing fine-grained semantic shifts during multi-hop reasoning. Furthermore, to mitigate the scarcity of high-quality supervision, DAMR incorporates a dynamic pseudo-path refinement mechanism that periodically generates training signals from partial paths explored during search, enabling the scorer to continually adapt to the evolving distribution of reasoning trajectories. Extensive experiments on multiple KGQA benchmarks show that DAMR significantly outperforms SOTA methods.

Introduction

Knowledge Graph Question Answering (KGQA) is the task of navigating complex webs of entities and relations to answer natural language queries. Traditional approaches generally fall into two categories: static "retrieve-then-reason" methods and dynamic LLM-driven reasoning. Static methods, while efficient, often fail to adapt to the specific nuances of complex questions. Conversely, dynamic methods that use Large Language Models (LLMs) to traverse the graph step-by-step are highly accurate but prohibitively expensive due to frequent API calls.

Furthermore, as reasoning progresses through multiple hops, the "semantic meaning" of a path evolves. Static scoring functions often fail to capture this semantic drift—the way the relevance of a relation sequence shifts as more context is added. To bridge this gap, we present DAMR (Dynamically Adaptive MCTS-based Reasoning), a framework that combines the strategic planning of LLMs with the efficiency of Monte Carlo Tree Search (MCTS).

The DAMR Framework

DAMR modularizes the reasoning process into three distinct components designed to maximize both intelligence and efficiency:

  1. LLM-Guided Expansion: To prevent search tree explosion, an LLM acts as a high-level planner. At each step, it evaluates available relations and selects only the top-$k$ most semantically relevant ones, drastically pruning the search space.
  2. Context-Aware Path Evaluation: Instead of relying on expensive LLM calls for every path score, DAMR employs a lightweight Transformer-based scorer. This scorer uses cross-attention to jointly encode the question and the relation sequence, allowing it to detect fine-grained semantic shifts during multi-hop reasoning.
  3. Dynamic Pseudo-Path Refinement: To address the scarcity of high-quality training data, DAMR identifies high-confidence paths discovered during the search and uses them as "pseudo-labels" to fine-tune the lightweight scorer on the fly. This allows the model to adapt to the specific distribution of the current query.
Overview of the DAMR framework illustrating the integration of LLM planning and adaptive path evaluation.

Experimental Evaluation

The framework was evaluated on two primary KGQA benchmarks:

  • WebQSP (WebQuestionsSP): Focused on single-hop and simple multi-hop queries.
  • CWQ (ComplexWebQuestions): Featuring complex, compositional queries requiring deep reasoning.

Results and Key Insights

DAMR establishes a new state-of-the-art (SOTA) across major benchmarks while significantly reducing operational costs.

Performance and Accuracy

As shown in the comparative results, DAMR consistently outperforms existing methods, including specialized LLM+KG hybrids like ToG and RoG. It achieved a Hits@1 of 94.0% on WebQSP and 78.0% on CWQ.

Performance comparison of DAMR against state-of-the-art methods on WebQSP and CWQ benchmarks.

Efficiency and Hallucination Reduction

Beyond raw accuracy, DAMR offers substantial practical benefits:

  • Cost Efficiency: DAMR reduced the average number of LLM calls to just 7.1 on WebQSP and 16.8 on CWQ. This represents a reduction of over 50% in LLM calls and a 75% reduction in token consumption compared to strong baselines.
  • Reliability: By grounding reasoning in the knowledge graph, DAMR effectively mitigates hallucinations. For example, while standard LLMs might guess a plausible but incorrect origin for a language, DAMR successfully navigates the KG to retrieve the precise historical entity.

Conclusion and Future Work

DAMR demonstrates that modularizing reasoning—using LLMs for planning and lightweight models for scoring—is a powerful paradigm for efficient KGQA. While the system currently benefits from initial pre-training on local subgraphs, future work will explore reducing this dependency. Additionally, the authors suggest that this adaptive symbolic-neural approach could be extended to other complex domains such as scientific discovery and personalized recommendation systems.

Summary updated

BibTeX
@inproceedings{wang2026dynamically,
  author = {Yingxu Wang and Shiqi Fan and Mengzhu Wang and Siyang Gao and Siwei Liu and Nan Yin},
  title = {{Dynamically Adaptive Reasoning via LLM-Guided MCTS for Efficient and Context-Aware KGQA}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=mUx7WLC8q6},
}
Figure