Go Forth and Prosper: Language Modeling with Ancient Textual History

Rik Koncel-Kedziorski, Noah A. Smith
4/18/2021
cs.CL

Official code: rikdz/AHLM (2 stars, Python, MIT, last commit 2021-06-08).

Abstract

We introduce a technique for improving document-level language models (LM) by leveraging "ancient history": text that is outside the LM's current context window. We learn an auxiliary function to select spans from the ancient history which can help the LM to predict future text.

Show full abstract

The selected text spans are then copied directly into the LM's context window, replacing less predictive spans. This method can improve perplexity of pretrained LMs with no updates to the LM's own parameters. We further observe that an auxiliary function trained in a specific textual domain like Wikipedia will also work in a substantially different domain such as scientific publications. With this technique we see a 7 percent perplexity reduction on Wikipedia articles, and a 12 percent perplexity reduction on scientific texts.

View on arXivView PDF

Code Implementations(1)

rikdz/AHLMOfficial100%
MIT

Ancient HIstory Language Modeling

20PythonApr 18, 20215 years agoMIT

Similar Papers

Cite this paper

@article{koncelkedziorski2021forth,
  title  = {Go Forth and Prosper: Language Modeling with Ancient Textual History},
  author = {Rik Koncel-Kedziorski and Noah A. Smith},
  year   = {2021},
  eprint = {2104.08742},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.08742}
}

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

Discussion