ChatKBQA: A Generate-then-Retrieve Framework for Knowledge Base Question Answering with Fine-tuned Large Language Models

Haoran Luo, Haihong E, Zichen Tang, Shiyao Peng, Yikai Guo +7 more
10/13/2023
cs.CLcs.AI

No official code found. Best implementation: LHRLAB/ChatKBQA (339 stars, MIT, last commit 2025-09-22).

Abstract

Knowledge Base Question Answering (KBQA) aims to answer natural language questions over large-scale knowledge bases (KBs), which can be summarized into two crucial steps: knowledge retrieval and semantic parsing. However, three core challenges remain: inefficient knowledge retrieval, mistakes of retrieval adversely impacting semantic parsing, and the complexity of previous KBQA methods. To tackle these challenges, we introduce ChatKBQA, a novel and simple generate-then-retrieve KBQA framework, which proposes first generating the logical form with fine-tuned LLMs, then retrieving and replacing entities and relations with an unsupervised retrieval method, to improve both generation and retrieval more directly. Experimental results show that ChatKBQA achieves new state-of-the-art performance on standard KBQA datasets, WebQSP, and CWQ. This work can also be regarded as a new paradigm for combining LLMs with knowledge graphs (KGs) for interpretable and knowledge-required question answering. Our code is publicly available.

View on arXivView PDF

Code Implementations(1)

LHRLAB/ChatKBQACommunity100%
MIT

[ACL 2024] Official resources of "ChatKBQA: A Generate-then-Retrieve Framework for Knowledge Base Question Answering with Fine-tuned Large Language Models".

33932PythonAug 29, 20231 years agoMIT
finetuninggraph-databaseknowledge-graphlarge-language-modelssemantic-parsing+1 more

Similar Papers

Cite this paper

@article{luo2023chatkbqa,
  title  = {ChatKBQA: A Generate-then-Retrieve Framework for Knowledge Base Question Answering with Fine-tuned Large Language Models},
  author = {Haoran Luo and Haihong E and Zichen Tang and Shiyao Peng and Yikai Guo and Wentai Zhang and Chenghao Ma and Guanting Dong and Meina Song and Wei Lin and Yifan Zhu and Luu Anh Tuan},
  year   = {2023},
  eprint = {2310.08975},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.08975v3}
}

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/2310.08975.svg)](https://codeofpaper.com/paper/2310.08975)

Discussion