Improving Neural Language Models by Segmenting, Attending, and Predicting the Future

Hongyin Luo, Lan Jiang, Yonatan Belinkov, James Glass
6/4/2019
cs.CLcs.LG

Official code: luohongyin/PILM (14 stars, Python, BSD-3-Clause, last commit 2019-06-13).

Abstract

Common language models typically predict the next word given the context. In this work, we propose a method that improves language modeling by learning to align the given context and the following phrase.

Show full abstract

The model does not require any linguistic annotation of phrase segmentation. Instead, we define syntactic heights and phrase segmentation rules, enabling the model to automatically induce phrases, recognize their task-specific heads, and generate phrase embeddings in an unsupervised learning manner. Our method can easily be applied to language models with different network architectures since an independent module is used for phrase induction and context-phrase alignment, and no change is required in the underlying language modeling network. Experiments have shown that our model outperformed several strong baseline models on different data sets. We achieved a new state-of-the-art performance of 17.4 perplexity on the Wikitext-103 dataset. Additionally, visualizing the outputs of the phrase induction module showed that our model is able to learn approximate phrase-level structural knowledge without any annotation.

View on arXivView PDF

Code Implementations(1)

luohongyin/PILMOfficial100%
BSD-3-Clause

Language model with phrase induction

140Python, ShellJun 1, 20197 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{luo2019improving,
  title  = {Improving Neural Language Models by Segmenting, Attending, and Predicting the Future},
  author = {Hongyin Luo and Lan Jiang and Yonatan Belinkov and James Glass},
  year   = {2019},
  eprint = {1906.01702},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1906.01702}
}

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

Discussion