Interactive-KBQA: Multi-Turn Interactions for Knowledge Base Question Answering with Large Language Models
Guanming Xiong, Junwei Bao, Wen Zhao
Abstract
This study explores the realm of knowledge base question answering (KBQA). KBQA is considered a challenging task, particularly in parsing intricate questions into executable logical forms. Traditional semantic parsing (SP)-based methods require extensive data annotations, which result in significant costs. Recently, the advent of few-shot in-context learning, powered by large language models (LLMs), has showcased promising capabilities. However, fully leveraging LLMs to parse questions into logical forms in low-resource scenarios poses a substantial challenge. To tackle these hurdles, we introduce Interactive-KBQA, a framework designed to generate logical forms through direct interaction with knowledge bases (KBs). Within this framework, we have developed three generic APIs for KB interaction. For each category of complex question, we devised exemplars to guide LLMs through the reasoning processes. Our method achieves competitive results on the We-bQuestionsSP, ComplexWebQuestions, KQA Pro, and MetaQA datasets with a minimal number of examples (shots). Importantly, our approach supports manual intervention, allowing for the iterative refinement of LLM outputs. By annotating a dataset with step-wise reasoning processes, we showcase our model's adaptability and highlight its potential for contributing significant enhancements to the field. 1 * Corresponding author. Thought: "tv.tv_program.tvrage_id" is the one I want. Now, I can construct the SPARQL query. Action: ExecuteSPARQL('SELECT DISTINCT ?x WHERE ?e0 type.object.name "Shawnee Smith"@en . ?e0 tv.tv_actor.starring_roles ?c . ?c tv.regular_tv_appearance.series ?x . ?x tv.tv_program.tvrage_id ?id . ORDER BY DESC(xsd:integer(?id)) LIMIT 1') Thought: Let's first decouple this complex problem into simple triples: (shawnee smith, played in, target tv program), (target tv program, tvrage_id, ?v), (order by, ?v). Action: SearchNodes("shawnee smith") Q: What is the tv program with the largest "tvrage_id" that shawnee smith played in? Observation: ['Shawnee Smith | Description: Shawnee Rebecca Smith is an American film and television actress and singer.', ... ] Thought: "Shawnee Smith" is what I want. Next, I need to search for a predicate about "played in". Action: SearchGraphPatterns('SELECT ?e WHERE ?e type.object.name "Shawnee Smith"@en . ', semantic="played in tv program") Observation: [..., (?e, tv.tv_actor.starring_roles -> tv.regular_tv_appearance.series, "30 Days of Night: Dust to Dust"), ...] Thought: The predicate "tv.tv_actor.starring_roles -> tv.regular_tv_appearance.series" is correct. Next, I need to find the predicate that corresponds to "tvrage_id" for a TV program.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers15
- Plan-on-Graph: Self-Correcting Adaptive Planning of Large Language Model on Knowledge GraphsLiyi Chen, Panrong Tong, Zhongming Jin, Ying Sun et al.NeurIPS 2024 · 160 citations
- Stream RAG: Instant and Accurate Spoken Dialogue Systems with Streaming Tool UsageSiddhant Arora, Haidar Khan, Kai Sun, Xin Dong et al.ICML 2026 · 22 citations
- Can Machine Translation be a Reasonable Alternative for Multilingual Question Answering Systems over Knowledge Graphs?Aleksandr Perevalov, Andreas Both, Dennis Diefenbach, Axel-Cyrille Ngonga NgomoWWW 2022 · 19 citations
- iQUEST: An Iterative Question-Guided Framework for Knowledge Base Question AnsweringShuai Wang, Yinan YuACL 2025 · 12 citations
- Conformal Information Pursuit for Interactively Guiding Large Language ModelsKwan Ho Ryan Chan, Yuyan Ge, Edgar Dobriban, Hamed Hassani et al.NeurIPS 2025 · 9 citations
Builds on21
- Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
- Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma et al.NeurIPS 2022 · 22,562 citations
- Big Bird: Transformers for Longer SequencesManzil Zaheer, Guru Guruganesh, Kumar Avinava Dubey, Joshua Ainslie et al.NeurIPS 2020 · 3,159 citations
- Let's Verify Step by StepHunter Lightman, Vineet Kosaraju, Yuri Burda, Harrison Edwards et al.ICLR 2024 · 3,045 citations
- Efficient Memory Management for Large Language Model Serving with PagedAttentionWoosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng et al.SOSP 2023 · 1,016 citations
Related papers
- Code-Style In-Context Learning for Knowledge-Based Question AnsweringZhijie Nie, Richong Zhang, Zhongyuan Wang, Xudong LiuAAAI 2024 · 24 citations
- CompKBQA: Component-wise Task Decomposition for Knowledge Base Question AnsweringYuhang Tian, Dandan Song, Zhijing Wu, Pan Yang et al.EMNLP 2025 · 1 citation
- FlexKBQA: A Flexible LLM-Powered Framework for Few-Shot Knowledge Base Question AnsweringZhenyu Li, Sunqi Fan, Yu Gu, Xiuxing Li et al.AAAI 2024 · 143 citations
- Promoting Knowledge Base Question Answering by Directing LLMs to Generate Task-relevant Logical FormsJianqi Gao, Jian Cao, Ranran Bu, Nengjun Zhu et al.AAAI 2025 · 6 citations
- Generating then Refining for Reliable Knowledge Base Question AnsweringJianqi Gao, Hang Yu, Jian Cao, Ranran Bu et al.ACL 2026
