Barack's Wife Hillary: Using Knowledge-Graphs for Fact-Aware Language Modeling

06/17/2019
by   Logan, IV, et al.
0

Modeling human language requires the ability to not only generate fluent text but also encode factual knowledge. However, traditional language models are only capable of remembering facts seen at training time, and often have difficulty recalling them. To address this, we introduce the knowledge graph language model (KGLM), a neural language model with mechanisms for selecting and copying facts from a knowledge graph that are relevant to the context. These mechanisms enable the model to render information it has never seen before, as well as generate out-of-vocabulary tokens. We also introduce the Linked WikiText-2 dataset, a corpus of annotated text aligned to the Wikidata knowledge graph whose contents (roughly) match the popular WikiText-2 benchmark. In experiments, we demonstrate that the KGLM achieves significantly better performance than a strong baseline language model. We additionally compare different language model's ability to complete sentences requiring factual knowledge, showing that the KGLM outperforms even very large language models in generating facts.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
06/20/2023

ChatGPT is not Enough: Enhancing Large Language Models with Knowledge Graphs for Fact-aware Language Modeling

Recently, ChatGPT, a representative large language model (LLM), has gain...
research
08/01/2016

A Neural Knowledge Language Model

Current language models have a significant limitation in the ability to ...
research
08/21/2019

Latent Relation Language Models

In this paper, we propose Latent Relation Language Models (LRLMs), a cla...
research
01/30/2023

Crawling the Internal Knowledge-Base of Language Models

Language models are trained on large volumes of text, and as a result th...
research
01/25/2023

Editing Language Model-based Knowledge Graph Embeddings

Recently decades have witnessed the empirical success of framing Knowled...
research
01/24/2022

Relational Memory Augmented Language Models

We present a memory-augmented approach to condition an autoregressive la...
research
09/24/2020

Toward a Thermodynamics of Meaning

As language models such as GPT-3 become increasingly successful at gener...

Please sign up or login with your details

Forgot password? Click here to reset