arxiv-2107-03374 · paperEvaluating Large Language Models Trained on Code
Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, et al.
Created: 2021 · Ingested: 2026-09-04
This source: Evaluating Large Language Models Trained on CodeHow much the field cites it — very heavily cited in the last 12 months1000+ in the last 12 months · 11293 totalpublished 2021checked 2026-09-04count capped at 1000 by the fetchclick for Semantic Scholar1000+ citations in the last 12 months · 11293 total · checked 2026-09-04
https://arxiv.org/abs/2107.03374(opens in a new tab)Introduces HumanEval and Codex: measures functional correctness of generated code by running held-out tests, rather than surface similarity to a reference solution, establishing that as the standard way to grade code generation.
In brief
Sampling a code model 100 times and filtering by unit tests turns a model that solves under a third of problems into one that solves most of them. Codex is a GPT model with up to 12B parameters fine-tuned on 159 GB of Python from 54 million GitHub repositories, evaluated on HumanEval, a hand-written set of 164 programming problems with an average of 7.7 unit tests each, scored by pass@k with an unbiased estimator over n=200 samples.
Codex-12B solves 28.8% of problems with 1 sample, against 11.62% for GPT-J 6B, 6.41% for GPT-Neo 2.7B, 2.58% for TabNine, and near 0% for GPT models. Further supervised fine-tuning on standalone functions (Codex-S) gives 37.7% at 1 sample and 77.5% within 100 samples. Without an oracle, ranking 100 samples by mean log-probability reaches 44.5%; back-translation ranking does worse than that but better than random.
Effects are measured, with temperature tuned per k (0.2 for pass@1, 0.8 for pass@100) and same-metric comparisons across 7 Codex sizes plus external baselines, though the compute budget per method is not equalized.
Limits are direct: on synthetic docstrings chaining 13 string-manipulation building blocks, pass rate falls by roughly 2-3x per added component, and the model misbinds operations to variables. On APPS, 1-shot Codex-12B reaches 25.02% raw pass@1000 on introductory problems but 3.23% on competition ones.
Treat sample-and-filter as the main lever, and chained specifications as the failure mode.
Written from the abstract by claude-opus-5 on 2026-09-05, with every figure checked against it. Not a substitute for the paper.
Referenced by
Claims in this catalog that draw on this source, and whether as support or counterpoint.