Domain Specific Question Answering Over Knowledge Graphs Using Logical Programming and Large Language Models

Navid Madani, Rohini K. Srihari, Kenneth Joseph
3/3/2023
cs.LGcs.CL

No official code found. Best implementation: navidmdn/logic_based_qa (12 stars, MIT, last commit 2024-01-23).

Abstract

Answering questions over domain-specific graphs requires a tailored approach due to the limited number of relations and the specific nature of the domain. Our approach integrates classic logical programming languages into large language models (LLMs), enabling the utilization of logical reasoning capabilities to tackle the KGQA task. By representing the questions as Prolog queries, which are readable and near close to natural language in representation, we facilitate the generation of programmatically derived answers. To validate the effectiveness of our approach, we evaluate it using a well-known benchmark dataset, MetaQA. Our experimental results demonstrate that our method achieves accurate identification of correct answer entities for all test questions, even when trained on a small fraction of annotated data. Overall, our work presents a promising approach to addressing question answering over domain-specific graphs, offering an explainable and robust solution by incorporating logical programming languages.

View on arXivView PDF

Code Implementations(1)

MIT

Code and notebooks and data for the paper "Domain Specific Question Answering Over Knowledge Graphs Using Logical Programming and Large Language Models"

121Shell, PythonAug 11, 20222 years agoMIT
kgqa

Similar Papers

Cite this paper

@article{madani2023domain,
  title  = {Domain Specific Question Answering Over Knowledge Graphs Using Logical Programming and Large Language Models},
  author = {Navid Madani and Rohini K. Srihari and Kenneth Joseph},
  year   = {2023},
  eprint = {2303.02206},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.02206v2}
}

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

Discussion