Evaluating Large Language Models in Semantic Parsing for Conversational Question Answering over Knowledge Graphs

Phillip Schneider, Manuel Klettner, Kristiina Jokinen, Elena Simperl, Florian Matthes
1/3/2024
cs.CLcs.IR

No official code found. Best implementation: sebischair/LLM-SP-CQA (3 stars, last commit 2025-04-29).

Abstract

Conversational question answering systems often rely on semantic parsing to enable interactive information retrieval, which involves the generation of structured database queries from a natural language input. For information-seeking conversations about facts stored within a knowledge graph, dialogue utterances are transformed into graph queries in a process that is called knowledge-based conversational question answering. This paper evaluates the performance of large language models that have not been explicitly pre-trained on this task. Through a series of experiments on an extensive benchmark dataset, we compare models of varying sizes with different prompting techniques and identify common issue types in the generated output. Our results demonstrate that large language models are capable of generating graph queries from dialogues, with significant improvements achievable through few-shot prompting and fine-tuning techniques, especially for smaller models that exhibit lower zero-shot performance.

View on arXivView PDF

Code Implementations(1)

Paper: "Evaluating Large Language Models in Semantic Parsing for Conversational Question Answering over Knowledge Graphs", accepted to ICAART 2024

31Python, Jupyter NotebookDec 21, 20231 years ago

Similar Papers

Cite this paper

@article{schneider2024evaluating,
  title  = {Evaluating Large Language Models in Semantic Parsing for Conversational Question Answering over Knowledge Graphs},
  author = {Phillip Schneider and Manuel Klettner and Kristiina Jokinen and Elena Simperl and Florian Matthes},
  year   = {2024},
  eprint = {2401.01711},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.01711v1}
}

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

Discussion