FiLM: Fill-in Language Models for Any-Order Generation
Not on the map. Why?
Abstract (arXiv)
Language models have become the backbone of today's AI systems. However, their predominant left-to-right generation limits the use of bidirectional context, which is essential for tasks that involve filling text in the middle. We propose the Fill-in Language Model (FiLM), a new language modeling approach that allows for flexible generation at any position without adhering to a specific generation order. Its training extends the masked language modeling objective by adopting varying mask probabilities sampled from the Beta distribution to enhance the generative capabilities of FiLM. During inference, FiLM can seamlessly insert missing phrases, sentences, or paragraphs, ensuring that the outputs are fluent and are coherent with the surrounding context. In both automatic and human evaluations, FiLM outperforms existing infilling methods that rely on left-to-right language models trained on rearranged text segments. FiLM is easy to implement and can be either trained from scratch or fine-tuned from a left-to-right language model. Notably, as the model size grows, FiLM's perplexity approaches that of strong left-to-right language models of similar sizes, indicating FiLM's scalability and potential as a large language model.
Key facts. Cited by 13 papers in the map (data through 14 Oct 2026). Builds on 27 of its 50 references that are in the map. First posted on arXiv 15 Oct 2023.
Builds on
27 of 50 references.
References · 27
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
- 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,276
- 2021Structured Denoising Diffusion Models in Discrete State-Spacescited by 1,719
- 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,031
15 more
- 2022Diffusion-LM Improves Controllable Text Generationcited by 1,027
- 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 1,006
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
- 2017Non-Autoregressive Neural Machine Translationcited by 463
- 2013One Billion Word Benchmark for Measuring Progress in Statistical Language Modelingcited by 308
- 2022Efficient Training of Language Models to Fill in the Middlecited by 255
- 2022Continuous diffusion for categorical datacited by 214
- 2019BERT has a Mouth, and It Must Speak: BERT as a Markov Random Field Language Modelcited by 185
- 2022CM3: A Causal Masked Multimodal Model of the Internetcited by 142
- 2019Insertion Transformer: Flexible Sequence Generation via Insertion Operationscited by 125
- 2020Enabling Language Models to Fill in the Blankscited by 122
- 2020Blank Language Modelscited by 43
- 2021Exposing the Implicit Energy Networks behind Masked Language Models via Metropolis--Hastingscited by 37
- 2019Text Infillingcited by 32
- 2020Probabilistically Masked Language Model Capable of Autoregressive Generation in Arbitrary Word Ordercited by 28
Built on by
Citing papers per year: 2023: 2; 2024: 1; 2025: 7; 2026: 3.
13 papers.
Sort:
By area:
- 2024Scaling Diffusion Language Models via Adaptation from Autoregressive Modelscited by 274
- 2023DocLLM: A layout-aware generative language model for multimodal document understandingcited by 116
- 2025FUDOKI: Discrete Flow-based Unified Understanding and Generation via Kinetic-Optimal Velocitiescited by 46
- 2026DreamOn: Diffusion Language Models For Code Infilling Beyond Fixed-size Canvascited by 19
- 2025TEMPURA: Temporal Event Masked Prediction and Understanding for Reasoning in Actioncited by 14
- 2025Enabling Autoregressive Models to Fill In Masked Tokenscited by 7
- 2025CopySpec: Accelerating LLMs with Speculative Copy-and-Paste Without Compromising Qualitycited by 6
- 2025MAGNET: Augmenting Generative Decoders with Representation Learning and Infilling Capabilitiescited by 5
- 2025Non-Markovian Discrete Diffusion with Causal Language Modelscited by 5
- 2025Human-in-the-Loop Local Corrections of 3D Scene Layouts via Infillingcited by 4
- 2026Autoregressive Models Rival Diffusion Models at ANY-ORDER Generationcited by 4
- 2023Self-Infilling Code Generationcited by 3
- 2026Set Diffusion: Interpolating Token Orderings Between Autoregression and Diffusion for Fast and Flexible Decoding2 Jul 2026
- 2026DreamOn: Diffusion Language Models For Code Infilling Beyond Fixed-size Canvas1 Feb 2026
- 2026Autoregressive Models Rival Diffusion Models at ANY-ORDER Generation19 Jan 2026
- 2025FUDOKI: Discrete Flow-based Unified Understanding and Generation via Kinetic-Optimal Velocities26 May 2025
- 2025TEMPURA: Temporal Event Masked Prediction and Understanding for Reasoning in Action2 May 2025
- 2025Human-in-the-Loop Local Corrections of 3D Scene Layouts via Infilling14 Mar 2025
- 2025Non-Markovian Discrete Diffusion with Causal Language Models13 Feb 2025
- 2025CopySpec: Accelerating LLMs with Speculative Copy-and-Paste Without Compromising Quality13 Feb 2025
- 2025Enabling Autoregressive Models to Fill In Masked Tokens9 Feb 2025
- 2025MAGNET: Augmenting Generative Decoders with Representation Learning and Infilling Capabilities15 Jan 2025
- 2024Scaling Diffusion Language Models via Adaptation from Autoregressive Models23 Oct 2024
- 2023DocLLM: A layout-aware generative language model for multimodal document understanding31 Dec 2023
1 more
- 2023Self-Infilling Code Generation29 Nov 2023
- 2024Scaling Diffusion Language Models via Adaptation from Autoregressive Modelscited by 274
- 2026DreamOn: Diffusion Language Models For Code Infilling Beyond Fixed-size Canvascited by 19
- 2025Non-Markovian Discrete Diffusion with Causal Language Modelscited by 5
- 2026Autoregressive Models Rival Diffusion Models at ANY-ORDER Generationcited by 4
- 2026Set Diffusion: Interpolating Token Orderings Between Autoregression and Diffusion for Fast and Flexible Decodingcited by 2
- 2026Set Diffusion: Interpolating Token Orderings Between Autoregression and Diffusion for Fast and Flexible Decoding2 Jul 2026
- 2026DreamOn: Diffusion Language Models For Code Infilling Beyond Fixed-size Canvas1 Feb 2026
- 2026Autoregressive Models Rival Diffusion Models at ANY-ORDER Generation19 Jan 2026
- 2025Non-Markovian Discrete Diffusion with Causal Language Models13 Feb 2025
- 2024Scaling Diffusion Language Models via Adaptation from Autoregressive Models23 Oct 2024
- 2023DocLLM: A layout-aware generative language model for multimodal document understandingcited by 116
- 2025Enabling Autoregressive Models to Fill In Masked Tokenscited by 7
- 2025MAGNET: Augmenting Generative Decoders with Representation Learning and Infilling Capabilitiescited by 5
- 2025Human-in-the-Loop Local Corrections of 3D Scene Layouts via Infillingcited by 4
- 2023Self-Infilling Code Generationcited by 3
- 2025Human-in-the-Loop Local Corrections of 3D Scene Layouts via Infilling14 Mar 2025
- 2025Enabling Autoregressive Models to Fill In Masked Tokens9 Feb 2025
- 2025MAGNET: Augmenting Generative Decoders with Representation Learning and Infilling Capabilities15 Jan 2025
- 2023DocLLM: A layout-aware generative language model for multimodal document understanding31 Dec 2023
- 2023Self-Infilling Code Generation29 Nov 2023