Reproduce “Enabling Language Models to Fill in the Blanks” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Chris Donahue, Mina Lee, Percy Liang
Researchers at Stanford University developed Infilling by Language Modeling (ILM), a framework enabling existing unidirectional language models to perform general, variable-length text infilling. This approach achieves superior quantitative performance over unidirectional baselines and comparable results to memory-intensive methods, with human evaluators finding ILM-generated text harder to detect than other baselines.
Key insights
- Unidirectional LMs can effectively utilize bidirectional context for infilling by strategically structuring the input sequence during training and inference.
- Manufacturing specific training examples with special tokens (`[blank]`, `[answer]`, `[sep]`) allows off-the-shelf LMs to learn variable-length infilling without architectural changes.
- Leveraging large-scale pre-trained LMs significantly boosts infilling performance, even when fine-tuning on relatively smaller task-specific datasets.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.