Enabling Language Models to Fill in the Blanks
arXiv:2005.05339
Abstract
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.
Published as a conference paper at ACL 2020
References in corpus (9)
- Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer
- HuggingFace's Transformers: State-of-the-art Natural Language Processing
- XLNet: Generalized Autoregressive Pretraining for Language Understanding
- MaskGAN: Better Text Generation via Filling in the______
- Hierarchical Neural Story Generation
- BERT has a Mouth, and It Must Speak: BERT as a Markov Random Field Language Model
- Insertion-based Decoding with automatically Inferred Generation Order
- XL-Editor: Post-editing Sentences with XLNet
- Restoring ancient text using deep learning: a case study on Greek epigraphy
Cited by in corpus (5)
- Neural Language Generation: Formulation, Methods, and Evaluation
- POINTER: Constrained Progressive Text Generation via Insertion-based Generative Pre-training
- Nutribullets Hybrid: Multi-document Health Summarization
- Discovering Useful Sentence Representations from Large Pretrained Language Models
- Automatic Generation of Word Problems for Academic Education via Natural Language Processing (NLP)