Answering Questions Over Knowledge Graphs Using Logic Programming Along with Language Models

03/03/2023
by   Navid Madani, et al.
0

Question Answering over Knowledge Graphs (KGQA) is the task of answering natural language questions over a knowledge graph (KG). This task requires a model to reason over multiple edges of the KG to reach the right answer. In this work, we present a method to equip large language models (LLMs) with classic logical programming languages to provide an explainable solution to the problem. Our goal is to extract the representation of the question in the form of a Prolog query, which can then be used to answer the query programmatically. To demonstrate the effectiveness of this approach, we use the MetaQA dataset and show that our method finds the correct answer entities for all the questions in the test dataset.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
11/10/2022

Biomedical Multi-hop Question Answering Using Knowledge Graph Embeddings and Language Models

Biomedical knowledge graphs (KG) are heterogenous networks consisting of...
research
06/02/2020

Question Answering on Scholarly Knowledge Graphs

Answering questions on scholarly knowledge comprising text and other art...
research
08/20/2023

Head-to-Tail: How Knowledgeable are Large Language Models (LLM)? A.K.A. Will LLMs Replace Knowledge Graphs?

Since the recent prosperity of Large Language Models (LLMs), there have ...
research
08/16/2018

PUG: A Framework and Practical Implementation for Why & Why-Not Provenance (extended version)

Explaining why an answer is (or is not) returned by a query is important...
research
11/15/2018

End-to-End Learning for Answering Structured Queries Directly over Text

Structured queries expressed in languages (such as SQL, SPARQL, or XQuer...
research
02/26/2019

Using Ternary Rewards to Reason over Knowledge Graphs with Deep Reinforcement Learning

In this paper, we investigate the practical challenges of using reinforc...
research
02/01/2019

Semantic Query Integration With Reason

Graph-based data models allow for flexible data representation. In parti...

Please sign up or login with your details

Forgot password? Click here to reset