KBQA-o1: Agentic Knowledge Base Question Answering with Monte Carlo Tree Search

Haoran Luo, Haihong E, Yikai Guo, Qika Lin, Xiaobao Wu, Xinyu Mu, Wenhao Liu, Meina Song, Yifan Zhu, Luu Anh Tuan · OpenReview

TL;DR

This paper introduces KBQA-01, a novel agentic approach to Knowledge Base Question Answering (KBQA) that uses Monte Carlo Tree Search (MCTS) to improve how Large Language Models (LLMs) interact with knowledge bases. KBQA-01 significantly boosts performance, especially in low-resource settings, by enabling more effective exploration of the KB and reducing the need for extensive human-annotated data.

What Problem Does This Paper Address?

Answering natural language questions using structured knowledge bases (KBs) is a core task in AI, known as Knowledge Base Question Answering (KBQA). While LLMs have advanced this field, current methods struggle with several issues:

  • Weak KB Awareness: LLMs often lack a deep understanding of the KB's structure and content, leading to incorrect logical forms or queries.
  • Effectiveness vs. Efficiency Imbalance: Some methods are accurate but slow, while others are fast but less precise.
  • Reliance on Annotated Data: Training effective KBQA models typically requires large amounts of manually labeled data, which is expensive and time-consuming to create, especially for large KBs.
  • Suboptimal Search: Step-by-step reasoning methods can get stuck in "local optima" or explore excessively large search spaces, hindering performance.

KBQA-01 aims to tackle these challenges by creating a more intelligent and efficient agent that can explore KBs effectively.

Methods

KBQA-01 introduces a novel agentic approach that combines several key techniques:

  • ReAct-based Agent Process: The system uses a ReAct (Reasoning and Acting) framework, where an agent iteratively reasons about the question and takes actions (like extracting entities or finding relations) within the KB environment. This allows for a more structured and interactive way to build logical forms.
  • Monte Carlo Tree Search (MCTS): To navigate the complex search space of possible logical forms and avoid local optima, KBQA-01 employs MCTS. MCTS is a heuristic search algorithm that balances exploration (trying new paths) and exploitation (following promising paths) using policy and reward models.
  • KB Environment Exploration: The agent actively interacts with the KB, using it as an environment to guide its reasoning and action selection. This "KB awareness" is crucial for generating accurate logical forms.
  • Incremental Fine-tuning: To reduce reliance on extensive human annotations, KBQA-01 uses MCTS to explore unannotated data. High-quality logical forms generated through this exploration are then used to incrementally fine-tune the policy and reward models. This allows the model to learn and improve with minimal human supervision.

Datasets

The experiments were conducted on three standard KBQA datasets:

  • GrailQA (Gu et al., 2021): A large-scale dataset designed to evaluate KBQA models across i.i.d., compositional, and zero-shot settings, requiring understanding of multi-hop reasoning and complex logical forms.
  • WebQSP (Yih et al., 2016): An enriched version of the WebQuestions dataset, providing semantic parses for questions, focusing on evaluating semantic understanding and logical form generation.
  • GraphQ (Su et al., 2016): A dataset designed for complex reasoning tasks involving graph-structured data, testing the ability to navigate multi-hop relationships and resolve entity dependencies.

All datasets are based on the Freebase KB.

Key Insights and Ideas

  • Agentic KB Interaction is Key: The paper demonstrates that an agentic approach, where an LLM actively interacts with the KB as an environment, significantly improves KBQA performance compared to passive, end-to-end methods.
  • MCTS for Efficient Exploration: MCTS proves to be a powerful tool for navigating the vast search space of logical forms, balancing the need to explore diverse possibilities with the efficiency required for practical applications. It outperforms simpler step-by-step methods like CoT and ToT in terms of coverage and efficiency.
  • Low-Resource Learning is Achievable: By using MCTS for heuristic exploration and incremental fine-tuning, KBQA-01 can achieve strong performance even with limited labeled data, making it highly promising for real-world scenarios where data is scarce.
  • Modular Design for Flexibility: The framework's plug-and-play architecture allows it to seamlessly integrate with various open-source LLMs, ensuring it can benefit from future advancements in LLM technology.

Key Results

  • State-of-the-Art Low-Resource Performance: KBQA-01 significantly outperforms previous low-resource KBQA methods.
  • Impressive GrailQA Results: For the Llama-3.1-8B model on GrailQA, KBQA-01 achieved an F1 score of 78.5%, a substantial improvement over the previous state-of-the-art of 48.5% (using GPT-3.5-turbo).
  • Outperforms Fully Supervised Methods: In compositional and zero-shot evaluations, KBQA-01 even surpasses the performance of fully supervised KBQA methods, showcasing its strong generalization capabilities.
  • Efficiency Gains: While achieving high accuracy, KBQA-01 maintains a competitive efficiency, balancing search time and performance.

Limitations and Future Work

  • Limitations:
    • The paper notes that while effective, the agentic approach still faces challenges in fine-grained policy design and scalability to extremely large domains.
  • Error analysis reveals that KBQA-01 can still fail to discover executable paths (29.8%), discover correct paths but fail to select them as optimal (15.5%), or select incorrect paths due to suboptimal reward evaluation.
  • Future Work:
    • Reinforcement Learning for Continual Learning: Exploring techniques like Direct Policy Optimization (DPO) to enable continuous learning and adaptation to new datasets and tasks.
  • Expanding Logical Operators: Incorporating more diverse logical operators to handle a wider range of complex queries, including conditional logic, aggregation, and temporal constraints.
  • Specialized Applications: Adapting the framework for domain-specific applications in fields like medicine and law, requiring specialized knowledge bases and fine-tuning.
  • Multimodal, Multilingual, and Multi-Agent Systems: Extending KBQA-01 to handle multimodal inputs (images, audio, text), multiple languages, and collaborative multi-agent systems for more comprehensive query answering.

Summary updated

BibTeX
@inproceedings{luo2025kbqa,
  author = {Haoran Luo and Haihong E and Yikai Guo and Qika Lin and Xiaobao Wu and Xinyu Mu and Wenhao Liu and Meina Song and Yifan Zhu and Luu Anh Tuan},
  title = {{KBQA-o1: Agentic Knowledge Base Question Answering with Monte Carlo Tree Search}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=QuecSemZIy},
}
Figure