Enabling Language Models to Fill in the Blanks

By Chris Donahue, Mina Lee, Percy Liang. 2020

212 citations recorded by the source corpus.

We present a simple approach for text infilling, the task of predicting missing spans of text at any position in a document. While infilling could enable rich functionality especially for writing assistance tools, more attention has been devoted to language modeling—a special case of infilling where text is predicted at the end of a document. In this paper, we aim to extend the capabilities of language models (LMs) to the more general task of infilling. To this end, we train (or fine tune) off-the-shelf LMs on sequences containing the concatenation of artificially-masked text and the text which was masked. We show that this approach, which we call infilling by language modeling, can enable LMs to infill entire sentences effectively on three different domains: short stories, scientific abstracts, and lyrics. Furthermore, we show that humans have difficulty identifying sentences infilled by our approach as machine-generated in the domain of short stories.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Natural Language Processing

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Yejin Choi
  2. Luke S. Zettlemoyer
  3. Mohit Bansal
  4. Hannaneh Hajishirzi
  5. Percy Liang
  6. Noah A. Smith
  7. Jianfeng Gao
  8. Graham Neubig

In Computer Vision and Pattern Recognition

  1. Hannaneh Hajishirzi
  2. Luke S. Zettlemoyer
  3. Yejin Choi
  4. Mohit Bansal
  5. Jianfeng Gao
  6. Sebastian Riedel
  7. Luc Van Gool
  8. Percy Liang

In Natural Language Processing

  1. Yejin Choi
  2. Luke S. Zettlemoyer
  3. Hannaneh Hajishirzi
  4. Mohit Bansal
  5. Noah A. Smith
  6. Percy Liang
  7. Jianfeng Gao
  8. Graham Neubig

Citations in the corpus