What Context Features Can Transformer Language Models Use?

Joe O'Connor, Jacob Andreas
6/15/2021
cs.CL

Official code: lingo-mit/context-ablations (3 stars, Shell, last commit 2021-11-08).

Abstract

Transformer-based language models benefit from conditioning on contexts of hundreds to thousands of previous tokens. What aspects of these contexts contribute to accurate model prediction?

Show full abstract

We describe a series of experiments that measure usable information by selectively ablating lexical and structural information in transformer language models trained on English Wikipedia. In both mid- and long-range contexts, we find that several extremely destructive context manipulations -- including shuffling word order within sentences and deleting all words other than nouns -- remove less than 15% of the usable information. Our results suggest that long contexts, but not their detailed syntactic and propositional content, are important for the low perplexity of current transformer language models.

View on arXivView PDF

Code Implementations(1)

🤗 Transformers: State-of-the-art Natural Language Processing for Pytorch, TensorFlow, and JAX.

30Shell, PythonNov 8, 20215 years ago

Similar Papers

Cite this paper

@article{oconnor2021what,
  title  = {What Context Features Can Transformer Language Models Use?},
  author = {Joe O'Connor and Jacob Andreas},
  year   = {2021},
  eprint = {2106.08367},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.08367}
}

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

Discussion