Code Models · 2022

CodeT5 / CodeGen / InCoder / Fill-in-the-Middle

Yue Wang, Steven C.H. Hoi, Erik Nijkamp, Caiming Xiong, Daniel Fried, Mike Lewis, Mohammad Bavarian, Mark Chen

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

Descendants

Source record

Provenance

Record ID
P-342
Record created
2026-07-13
Last reviewed
2026-07-14
Record version
2

Citation caveat: Citation metadata is approximate and marked unverified in the source dataset.