Code Models · 2022
CodeT5 / CodeGen / InCoder / Fill-in-the-Middle
This family established the pretraining objectives specific to code, culminating in Fill-in-the-Middle, which showed that reordering training documents lets a left-to-right model infill arbitrary spans given both left and right context at no loss to ordinary generation.
Editorial record
Plain-language summary
CodeT5 (encoder-decoder, identifier-aware), CodeGen (autoregressive, multi-turn program synthesis), and InCoder (masked-span infilling) explored how objective and architecture shape code models. The FIM paper showed a simple data transformation: move a randomly chosen middle span to the end with sentinel tokens, so a standard causal model learns to fill gaps using surrounding code while retaining normal left-to-right ability. This removed the need for a separate bidirectional model to power editor-style completions like inserting a function body between existing lines.
Knowledge graph
Relationships
Antecedents
CombinesEvidence: Direct
Open Code Models (StarCoder/Code Llama/DeepSeek-Coder/Qwen-Coder)
FIM used in open code models
P-343
Descendants
GeneralizesEvidence: Strongly supported
BART: Denoising Seq2Seq Pre-training
FIM generalizes BART infilling to code
P-342
Source record
Provenance
- Record ID
- P-342
- Record created
- 2026-07-13
- Last reviewed
- 2026-07-14
- Record version
- 2
- https://arxiv.org/abs/2207.14255
- arXiv:2207.14255
Citation caveat: Citation metadata is approximate and marked unverified in the source dataset.