Abstract
Knowledge Base Question Answering (KBQA) requires translating natural language into complex executable logical forms. Traditional methods often struggle with multi-hop logic and the high cost of manual annotation. We introduce Interactive-KBQA, a framework that transforms Large Language Models (LLMs) into autonomous agents capable of navigating Knowledge Bases (KBs) through multi-turn dialogue. By utilizing a "think-then-act" loop and a unified toolset, Interactive-KBQA achieves state-of-the-art performance on complex benchmarks with significantly reduced training requirements.
Introduction
The task of KBQA involves mapping user queries to structured queries like SPARQL. Despite the reasoning capabilities of modern LLMs, current systems often treat them as static translators, failing to leverage their potential for iterative exploration. Key challenges include handling numerical constraints, superlatives, and the scarcity of annotated logical forms. Interactive-KBQA addresses these by treating the KB as an environment where the LLM can act, observe, and self-correct.
Methodology
The core of Interactive-KBQA is a multi-turn interaction paradigm based on the Thought-Action-Observation loop.
The Interaction Loop
The process begins with a Thought phase where the LLM deconstructs the question. It then performs an Action by calling a specific tool, followed by an Observation phase where it receives data from the KB to inform its next step. This cycle continues until the model reaches a conclusion.
Unified Toolset
To maintain KB-agnosticism across different schemas (e.g., Freebase, Wikidata), the framework employs three core APIs:
SearchNodes(name): For entity linking by matching surface names.SearchGraphPatterns(sparql, semantic): To explore local neighborhoods and identify relevant predicates using semantic similarity ranking.ExecuteSPARQL(sparql): To retrieve the final answer from the KB.
Collaborative Annotation
To mitigate data scarcity, the authors utilized human-machine collaboration. Humans intervene in the interaction process to correct erroneous actions, generating high-quality reasoning traces. These traces are then used to fine-tune smaller models like Llama-2 or Mistral, enabling them to match or exceed the performance of much larger models.
Key Insights
A primary advantage of this framework is that interactivity allows the model to pivot if it encounters incorrect predicates. The SearchGraphPatterns tool provides semantic guidance, helping the LLM distinguish between similar relations based on user intent.
Experimental Results
Interactive-KBQA was evaluated on several major benchmarks, demonstrating significant improvements over previous state-of-the-art (SOTA) methods:
- ComplexWebQuestions (CWQ): Achieved an overall F1 of 49.07, a substantial increase over the prior SOTA of 42.19.
- Robustness: The model showed remarkable gains on "Comparative" (+29.85%) and "Superlative" (+13.96%) questions compared to baselines.
- MetaQA: Reached a near-perfect 96.25% F1 score, validating its effectiveness for deep multi-hop reasoning.
- Efficiency: The system remains competitive even in low-resource settings, requiring as few as two exemplars per question type to outperform fully-trained traditional models.
Conclusion
Interactive-KBQA demonstrates that treating KBQA as an interactive agent-based task is superior to one-shot translation. While multi-turn interactions introduce higher latency and API costs, the gains in accuracy and the ability to train smaller models on reasoning traces offer a promising path forward. Future work will focus on optimizing interaction efficiency and reducing hallucinations in predicate generation.
Summary updated