Revisiting Simple Neural Probabilistic Language Models

Simeng Sun, Mohit Iyyer
4/8/2021
cs.CL
transformer-attention

Official code: SimengSun/revisit-nplm (12 stars, Python, BSD-3-Clause, last commit 2021-09-01).

Abstract

Recent progress in language modeling has been driven not only by advances in neural architectures, but also through hardware and optimization improvements. In this paper, we revisit the neural probabilistic language model (NPLM) of~\citet{Bengio2003ANP}, which simply concatenates word embeddings within a fixed window and passes the result through a feed-forward network to predict the next word.

Show full abstract

When scaled up to modern hardware, this model (despite its many limitations) performs much better than expected on word-level language model benchmarks. Our analysis reveals that the NPLM achieves lower perplexity than a baseline Transformer with short input contexts but struggles to handle long-term dependencies. Inspired by this result, we modify the Transformer by replacing its first self-attention layer with the NPLM's local concatenation layer, which results in small but consistent perplexity decreases across three word-level language modeling datasets.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause
123Python, ShellMar 30, 20215 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{sun2021revisiting,
  title  = {Revisiting Simple Neural Probabilistic Language Models},
  author = {Simeng Sun and Mohit Iyyer},
  year   = {2021},
  eprint = {2104.03474},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.03474}
}

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

Discussion