Enabling Language Models to Fill in the Blanks
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 121 papers in the map (data through 7 Oct 2026). First posted on arXiv 11 May 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 28; 2022: 34; 2023: 19; 2024: 23; 2025: 12; 2026: 5.
121 papers.
Sort:
By area:
- 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,026
- 2022Diffusion-LM Improves Controllable Text Generationcited by 1,006
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2023Augmented Language Models: a Surveycited by 398
- 2022Efficient Training of Language Models to Fill in the Middlecited by 248
- 2021Polyjuice: Generating Counterfactuals for Explaining, Evaluating, and Improving Modelscited by 219
- 2022COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamicscited by 159
- 2022Rich Knowledge Sources Bring Complex Knowledge Conflicts: Recalibrating Models to Reflect Conflicting Evidencecited by 142
- 2024VoiceCraft: Zero-Shot Speech Editing and Text-to-Speech in the Wildcited by 118
- 2021COVID-Fact: Fact Extraction and Verification of Real-World Claims on COVID-19 Pandemiccited by 100
- 2021The Perils of Using Mechanical Turk to Evaluate Open-Ended Text Generationcited by 96
- 2023Amortizing intractable inference in large language modelscited by 94
38 more
- 2022PEER: A Collaborative Language Modelcited by 86
- 2022Self-Training: A Surveycited by 85
- 2023Sequential Monte Carlo Steering of Large Language Models using Probabilistic Programscited by 79
- 2024A Design Space for Intelligent and Interactive Writing Assistantscited by 76
- 2022Help me write a poem: Instruction Tuning as a Vehicle for Collaborative Poetry Writingcited by 71
- 2022Data Feedback Loops: Model-driven Amplification of Dataset Biasescited by 59
- 2021Prompting Contrastive Explanations for Commonsense Reasoning Taskscited by 45
- 2022A Langevin-like Sampler for Discrete Distributionscited by 42
- 2022Faking Fake News for Real Fake News Detection: Propaganda-loaded Training Data Generationcited by 41
- 2022Attribution and Obfuscation of Neural Text Authorship: A Data Mining Perspectivecited by 40
- 2022Correcting Diverse Factual Errors in Abstractive Summarization via Post-Editing and Language Model Infillingcited by 38
- 2023Anticipatory Music Transformercited by 35
- 2024Adaptable Logical Control for Large Language Modelscited by 30
- 2021Self-Supervised Euphemism Detection and Identification for Content Moderationcited by 24
- 2022Phrase-level Textual Adversarial Attack with Label Preservationcited by 23
- 2021Conformal prediction for text infilling and part-of-speech predictioncited by 22
- 2023Meet in the Middle: A New Pre-training Paradigmcited by 22
- 2023Does Human Collaboration Enhance the Accuracy of Identifying LLM-Generated Deepfake Texts?cited by 21
- 2023Guiding Language Models of Code with Global Context using Monitorscited by 20
- 2022Language modeling via stochastic processescited by 18
- 2022Necessity and Sufficiency for Explaining Text Classifiers: A Case Study in Hate Speech Detectioncited by 18
- 2023Towards Imperceptible Document Manipulations against Neural Ranking Modelscited by 18
- 2024What Makes a Good Story and How Can We Measure It? A Comprehensive Survey of Story Evaluationcited by 17
- 2021Synthesizing Adversarial Negative Responses for Robust Response Ranking and Evaluationcited by 16
- 2021C5T5: Controllable Generation of Organic Molecules with Transformerscited by 15
- 2021Inspiration through Observation: Demonstrating the Influence of Automatically Generated Text on Creative Writingcited by 14
- 2021Variable-Length Music Score Infilling via XLNet and Musically Specialized Positional Encodingcited by 14
- 2021Goal-Directed Story Generation: Augmenting Generative Language Models with Reinforcement Learningcited by 14
- 2022Robust Preference Learning for Storytelling via Contrastive Reinforcement Learningcited by 14
- 2021Euphemistic Phrase Detection by Masked Language Modelcited by 13
- 2021MDD-Eval: Self-Training on Augmented Data for Multi-Domain Dialogue Evaluationcited by 13
- 2023FiLM: Fill-in Language Models for Any-Order Generationcited by 13
- 2024TrajGPT: Controlled Synthetic Trajectory Generation Using a Multitask Transformer-Based Spatiotemporal Modelcited by 13
- 2021IGA : An Intent-Guided Authoring Assistantcited by 12
- 2023Mask-then-Fill: A Flexible and Effective Data Augmentation Framework for Event Extractioncited by 12
- 2023Storyfier: Exploring Vocabulary Learning Support with Text Generation Modelscited by 12
- 2024Fakes of Varying Shades: How Warning Affects Human Perception and Engagement Regarding LLM Hallucinationscited by 12
- 2021A Computational Framework for Slang Generationcited by 11
50 most cited of 121 All 121 (JSON)
- 2026Evaluating Whether LLMs Can Reliably Connect the DOTs?29 Sep 2026
- 2026PreDiff-LM: Pretrained Discrete Masked Diffusion Language Modeling with Hybrid Attention28 Jul 2026
- 2026Hidden Biases in Conditioning Autoregressive Models9 Apr 2026
- 2026Unlocking Prompt Infilling Capability for Diffusion Language Models4 Apr 2026
- 2026Diffusion LMs Can Approximate Optimal Infilling Lengths Implicitly31 Jan 2026
- 2025Incorporating Structure and Chord Constraints in Symbolic Transformer-based Melodic Harmonization8 Dec 2025
- 2025Aligning Probabilistic Beliefs under Informative Missingness: LLM Steerability in Clinical Reasoning29 Nov 2025
- 2025ABS: Enforcing Constraint Satisfaction On Generated Sequences Via Automata-Guided Beam Search11 Jun 2025
- 2025Structure-Aware Fill-in-the-Middle Pretraining for Code30 May 2025
- 2025Forging Time Series with Language: A Large Language Model Approach to Synthetic Data Generation21 May 2025
- 2025Re-identification of De-identified Documents with Autoregressive Infilling19 May 2025
- 2025LIFT: LLM-Based Pragma Insertion for HLS via GNN Supervised Fine-Tuning29 Apr 2025
38 more
- 2025Human-in-the-Loop Local Corrections of 3D Scene Layouts via Infilling14 Mar 2025
- 2025Enabling Autoregressive Models to Fill In Masked Tokens9 Feb 2025
- 2025On the Impact of Noise in Differentially Private Text Rewriting31 Jan 2025
- 2025K-COMP: Retrieval-Augmented Medical Domain Question Answering With Knowledge-Injected Compressor23 Jan 2025
- 2025MAGNET: Augmenting Generative Decoders with Representation Learning and Infilling Capabilities15 Jan 2025
- 2024TRIM: Token Reduction and Inference Modeling for Cost-Effective Language Generation10 Dec 2024
- 2024Song Form-aware Full-Song Text-to-Lyrics Generation with Multi-Level Granularity Syllable Count Control20 Nov 2024
- 2024TrajGPT: Controlled Synthetic Trajectory Generation Using a Multitask Transformer-Based Spatiotemporal Model7 Nov 2024
- 2024MedVisionLlama: Leveraging Pre-Trained Large Language Model Layers to Enhance Medical Image Segmentation3 Oct 2024
- 2024Confidential Prompting: Privacy-preserving LLM Inference on Cloud27 Sep 2024
- 2024What Makes a Good Story and How Can We Measure It? A Comprehensive Survey of Story Evaluation26 Aug 2024
- 2024Geo-Llama: Leveraging LLMs for Human Mobility Trajectory Generation with Spatiotemporal Constraints25 Aug 2024
- 2024Counterfactuals As a Means for Evaluating Faithfulness of Attribution Methods in Autoregressive Language Models21 Aug 2024
- 2024Retrieval-augmented code completion for local projects using large language models9 Aug 2024
- 2024Natural Language Outlines for Code: Literate Programming in the LLM Era9 Aug 2024
- 2024Adaptable Logical Control for Large Language Models19 Jun 2024
- 2024Fakes of Varying Shades: How Warning Affects Human Perception and Engagement Regarding LLM Hallucinations4 Apr 2024
- 2024Toward Informal Language Processing: Knowledge of Slang in Large Language Models2 Apr 2024
- 2024Returning to the Start: Generating Narratives with Related Endpoints31 Mar 2024
- 2024VoiceCraft: Zero-Shot Speech Editing and Text-to-Speech in the Wild25 Mar 2024
- 2024A Design Space for Intelligent and Interactive Writing Assistants21 Mar 2024
- 2024Incentivizing News Consumption on Social Media Platforms Using Large Language Models and Realistic Bot Accounts20 Mar 2024
- 2024Restoring Ancient Ideograph: A Multimodal Multitask Neural Network Approach11 Mar 2024
- 2024AmbigNLG: Addressing Task Ambiguity in Instruction for NLG27 Feb 2024
- 2024Natural Language Processing Methods for Symbolic Music Generation and Information Retrieval: a Survey27 Feb 2024
- 2024Towards Probabilistically-Sound Beam Search with Masked Language Models22 Feb 2024
- 2024COBIAS: Assessing the Contextual Reliability of Bias Benchmarks for Language Models22 Feb 2024
- 2024Synthetic location trajectory generation using categorical diffusion models19 Feb 2024
- 2023Self-Infilling Code Generation29 Nov 2023
- 2023Towards General Error Diagnosis via Behavioral Testing in Machine Translation20 Oct 2023
- 2023FiLM: Fill-in Language Models for Any-Order Generation15 Oct 2023
- 2023Solving Math Word Problems with Reexamination14 Oct 2023
- 2023Amortizing intractable inference in large language models6 Oct 2023
- 2023Storyfier: Exploring Vocabulary Learning Support with Text Generation Models7 Aug 2023
- 2023Search Engine and Recommendation System for the Music Industry built with JinaAI7 Aug 2023
- 2023Toward Interactive Dictation8 Jul 2023
- 2023Guiding Language Models of Code with Global Context using Monitors19 Jun 2023
- 2023Anticipatory Music Transformer14 Jun 2023
50 newest of 121 All 121 (JSON)
- 2026Diffusion LMs Can Approximate Optimal Infilling Lengths Implicitlycited by 2
- 2026Unlocking Prompt Infilling Capability for Diffusion Language Modelscited by 2
- 2024Synthetic location trajectory generation using categorical diffusion modelscited by 1
- 2026PreDiff-LM: Pretrained Discrete Masked Diffusion Language Modeling with Hybrid Attentioncited by 0
- 2026PreDiff-LM: Pretrained Discrete Masked Diffusion Language Modeling with Hybrid Attention28 Jul 2026
- 2026Unlocking Prompt Infilling Capability for Diffusion Language Models4 Apr 2026
- 2026Diffusion LMs Can Approximate Optimal Infilling Lengths Implicitly31 Jan 2026
- 2024Synthetic location trajectory generation using categorical diffusion models19 Feb 2024
- 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,026
- 2022Diffusion-LM Improves Controllable Text Generationcited by 1,006
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2022Efficient Training of Language Models to Fill in the Middlecited by 248
- 2021Polyjuice: Generating Counterfactuals for Explaining, Evaluating, and Improving Modelscited by 219
- 2022COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamicscited by 159
- 2022Rich Knowledge Sources Bring Complex Knowledge Conflicts: Recalibrating Models to Reflect Conflicting Evidencecited by 142
- 2024VoiceCraft: Zero-Shot Speech Editing and Text-to-Speech in the Wildcited by 118
- 2021COVID-Fact: Fact Extraction and Verification of Real-World Claims on COVID-19 Pandemiccited by 100
- 2021The Perils of Using Mechanical Turk to Evaluate Open-Ended Text Generationcited by 96
- 2023Amortizing intractable inference in large language modelscited by 94
- 2022PEER: A Collaborative Language Modelcited by 86
12 most cited of 110 All 110 (JSON)
- 2026Evaluating Whether LLMs Can Reliably Connect the DOTs?29 Sep 2026
- 2026Hidden Biases in Conditioning Autoregressive Models9 Apr 2026
- 2025Incorporating Structure and Chord Constraints in Symbolic Transformer-based Melodic Harmonization8 Dec 2025
- 2025ABS: Enforcing Constraint Satisfaction On Generated Sequences Via Automata-Guided Beam Search11 Jun 2025
- 2025Structure-Aware Fill-in-the-Middle Pretraining for Code30 May 2025
- 2025Re-identification of De-identified Documents with Autoregressive Infilling19 May 2025
- 2025LIFT: LLM-Based Pragma Insertion for HLS via GNN Supervised Fine-Tuning29 Apr 2025
- 2025Human-in-the-Loop Local Corrections of 3D Scene Layouts via Infilling14 Mar 2025
- 2025Enabling Autoregressive Models to Fill In Masked Tokens9 Feb 2025
- 2025On the Impact of Noise in Differentially Private Text Rewriting31 Jan 2025
- 2025MAGNET: Augmenting Generative Decoders with Representation Learning and Infilling Capabilities15 Jan 2025
- 2024Song Form-aware Full-Song Text-to-Lyrics Generation with Multi-Level Granularity Syllable Count Control20 Nov 2024
12 newest of 110 All 110 (JSON)