Skip to main content
QUICK REVIEW

[Paper Review] A Neural Knowledge Language Model

Sungjin Ahn, Heeyoul Choi|arXiv (Cornell University)|Aug 1, 2016
Topic ModelingComputer Science45 references112 citations
TL;DR

NKLM integrates a knowledge graph with an RNN language model, enabling generation of knowledge-bearing words by copying from fact descriptions while predicting whether a word is fact-based.

ABSTRACT

Current language models have a significant limitation in the ability to encode and decode factual knowledge. This is mainly because they acquire such knowledge from statistical co-occurrences although most of the knowledge words are rarely observed. In this paper, we propose a Neural Knowledge Language Model (NKLM) which combines symbolic knowledge provided by the knowledge graph with the RNN language model. By predicting whether the word to generate has an underlying fact or not, the model can generate such knowledge-related words by copying from the description of the predicted fact. In experiments, we show that the NKLM significantly improves the performance while generating a much smaller number of unknown words.

Motivation & Objective

  • Motivate and address the limitations of traditional language models in encoding and decoding factual knowledge.
  • Introduce a neural model that blends symbolic knowledge from a knowledge graph with neural language modeling.
  • Enable generation of knowledge-related words by copying from fact descriptions while retaining standard vocabulary generation.
  • Show that leveraging knowledge graphs reduces unknown words and improves perplexity-related metrics on knowledge-rich text.

Proposed method

  • Propose NKLM that, at each time step, predicts whether the next word has an underlying fact.
  • Represent facts as embeddings in a knowledge memory and copy from the described object words when selecting a knowledge word.
  • Use an LSTM to integrate word and fact information, and extract a fact embedding from a memory matrix F via a fact-key mechanism.
  • Compute a binary source decision z_t to choose between vocabulary generation and copying from knowledge words; when copying, select a position within the knowledge description.
  • Train with supervised learning on augmented observations that align words with corresponding facts and describe the topic.
  • Utilize a WikiFacts dataset aligned to Freebase/Wikipedia to evaluate knowledge-grounded language modeling.

Experimental results

Research questions

  • RQ1Can integrating a knowledge graph into an LSTM-based language model improve generation of factual and named-entity words?
  • RQ2Does a copy mechanism over knowledge words reduce unknown word usage and improve perplexity metrics on knowledge-rich text?
  • RQ3How does the NKLM perform when knowledge is updated or modified without retraining?

Key findings

  • NKLM outperforms a standard RNNLM across perplexity and unknown-word metrics on the WikiFacts-FilmActor dataset.
  • Copy-based generation from knowledge words significantly reduces the number of UNK tokens.
  • Inclusion of fact information improves language modeling even when the copy mechanism is disabled, but the full NKLM yields the largest gains.
  • TransE-based embeddings for knowledge graph entities contribute to model performance; random vectors degrade results, showing the importance of structured facts.
  • NKLM can adapt immediately to changes in knowledge without retraining, by updating the knowledge memory embeddings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.