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

Michihiro Yasunaga, Hongyu Ren, Antoine Bosselut, Percy Liang, Jure Leskovec
4/13/2021
cs.CLcs.LG

Official code: michiyasunaga/qagnn (661 stars, MIT, last commit 2023-03-12).

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.

View on arXivView PDF

Code Implementations(1)

MIT

[NAACL 2021] QAGNN: Question Answering using Language Models and Knowledge Graphs 🤖

661117Shell, PythonApr 5, 20213 years agoMIT
biomedical-applicationscommonsense-reasoninggraph-neural-networksknowledge-graphlanguage-model+1 more

Cite this paper

@article{yasunaga2021qagnn,
  title  = {QA-GNN: Reasoning with Language Models and Knowledge Graphs for Question Answering},
  author = {Michihiro Yasunaga and Hongyu Ren and Antoine Bosselut and Percy Liang and Jure Leskovec},
  year   = {2021},
  eprint = {2104.06378},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.06378}
}

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

Discussion