An In-Context Schema Understanding Method for Knowledge Base Question Answering

Yantao Liu, Zixuan Li, Xiaolong Jin, Yucan Guo, Long Bai +3 more
10/22/2023
cs.CL

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

The Knowledge Base Question Answering (KBQA) task aims to answer natural language questions based on a given knowledge base. Recently, Large Language Models (LLMs) have shown strong capabilities in language understanding and can be used to solve this task. In doing so, a major challenge for LLMs is to overcome the immensity and heterogeneity of knowledge base schemas.Existing methods bypass this challenge by initially employing LLMs to generate drafts of logic forms without schema-specific details.Then, an extra module is used to inject schema information to these drafts.In contrast, in this paper, we propose a simple In-Context Schema Understanding (ICSU) method that enables LLMs to directly understand schemas by leveraging in-context learning. Specifically, ICSU provides schema information to LLMs using schema-related annotated examples. We investigate three example retrieval strategies based on raw questions, anonymized questions, and generated SPARQL queries. Experimental results show that ICSU demonstrates competitive performance compared to baseline methods on both the KQA Pro and WebQSP datasets.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{liu2023incontext,
  title  = {An In-Context Schema Understanding Method for Knowledge Base Question Answering},
  author = {Yantao Liu and Zixuan Li and Xiaolong Jin and Yucan Guo and Long Bai and Saiping Guan and Jiafeng Guo and Xueqi Cheng},
  year   = {2023},
  eprint = {2310.14174},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.14174v2}
}

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

Discussion