Interactive-KBQA: Multi-Turn Interactions for Knowledge Base Question Answering with Large Language Models

Guanming Xiong, Junwei Bao, Wen Zhao
2/23/2024
cs.CLcs.AI

No official code found. Best implementation: JimXiongGM/Interactive-KBQA (30 stars, last commit 2025-04-13).

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 WebQuestionsSP, 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.

View on arXivView PDF

Code Implementations(1)

A KBQA solution framework based on the agent-environment paradigm in the era of LLMs.

304Shell, PythonJul 19, 20241 years ago

Similar Papers

Cite this paper

@article{xiong2024interactivekbqa,
  title  = {Interactive-KBQA: Multi-Turn Interactions for Knowledge Base Question Answering with Large Language Models},
  author = {Guanming Xiong and Junwei Bao and Wen Zhao},
  year   = {2024},
  eprint = {2402.15131},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.15131v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.15131.svg)](https://codeofpaper.com/paper/2402.15131)

Discussion