HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

QA-GNN: Reasoning with Language Models and Knowledge Graphs for Question Answering

Michihiro Yasunaga; Hongyu Ren; Antoine Bosselut; Percy Liang; Jure Leskovec

QA-GNN: Reasoning with Language Models and Knowledge Graphs for Question Answering

Abstract

The problem of answering questions using knowledge from pre-trained language models (LMs) and knowledge graphs (KGs) presents two challenges: given a QA context (question and answer choice), methods need to (i) identify relevant knowledge from large KGs, and (ii) perform joint reasoning over the QA context and KG. In this work, we propose a new model, QA-GNN, which addresses the above challenges through two key innovations: (i) relevance scoring, where we use LMs to estimate the importance of KG nodes relative to the given QA context, and (ii) joint reasoning, where we connect the QA context and KG to form a joint graph, and mutually update their representations through graph neural networks. We evaluate our model on QA benchmarks in the commonsense (CommonsenseQA, OpenBookQA) and biomedical (MedQA-USMLE) domains. QA-GNN outperforms existing LM and LM+KG models, and exhibits capabilities to perform interpretable and structured reasoning, e.g., correctly handling negation in questions.

Code Repositories

HaochenLiu2000/QAP
pytorch
Mentioned in GitHub
rucaibox/safe
pytorch
Mentioned in GitHub
michiyasunaga/qagnn
Official
pytorch
Mentioned in GitHub
CMSC470-Team/Model
pytorch
Mentioned in GitHub
tobias-opsahl/fact-or-fiction
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
common-sense-reasoning-on-commonsenseqaQA-GNN
Accuracy: 76.1
question-answering-on-openbookqaAristoRoBERTa
Accuracy: 77.8
question-answering-on-openbookqaQA-GNN
Accuracy: 82.8
question-answering-on-openbookqaAristoRoBERTa + QA-GNN
Accuracy: 82.8
riddle-sense-on-riddle-senseQAGNN
Accuracy (%): 67

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
QA-GNN: Reasoning with Language Models and Knowledge Graphs for Question Answering | Papers | HyperAI