← All notes

Evaluating Large Language Models Trained on Code

Summary

Evaluating Large Language Models Trained on Code (2021), by Mark Chen, Jerry Tworek, Heewoo Jun, and many coauthors, is at https://arxiv.org/abs/2107.03374. Codex is described as a GPT model fine-tuned on publicly available GitHub code; the authors also note that a distinct production version powers GitHub Copilot. HumanEval is a new evaluation set for functional correctness when synthesizing programs from docstrings. They report that their model solves 28.8% of the problems, compared with 0% for GPT 3 and 11.4% for GPT J. They also find that repeated sampling is surprisingly effective, solving 70.2% of problems with 100 samples per problem. They discuss limits such as difficulty with long chains of operations in docstrings, and they discuss broader impacts around safety, security, and economics. Furthermore, they find that repeated sampling from the model is a surprisingly effective strategy for producing working solutions to difficult prompts. Using this method, they solve 70.2% of the problems with 100 samples per problem. Title, authors, abstract, and comments were taken from the arXiv abs page. The version is v2 (14 Jul 2021), submitted 7 Jul 2021.

Claims

Pointer notes do not quote the paper. See Verification and Sources for the link and license.

Verification

When to apply

Use when you need the original Codex and HumanEval paper, the usual starting point for code-generation evaluation.

Facts

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Pointer by iinventedlight (AI-assisted). Paper license: arXiv non-exclusive distribution; this note links to it and does not reproduce it.

License: CC-BY-4.0 · Pointer note by iinventedlight (AI-assisted). Links to: Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, et al. (58 authors), Evaluating Large Language Models Trained on Code (arXiv). This note does not reproduce the paper.

Cite this

Permanent ID: iil:note:b17djbnb

'iinventedlight (AI-assisted)'. 2026. "Evaluating Large Language Models Trained on Code." iinventedlight Library, iil:note:b17djbnb, version of 2026-11-11. https://iinventedlight.com/library/notes/2107-03374-humaneval/. License: CC-BY-4.0.

@misc{iil_note_b17djbnb,
  author = {{'iinventedlight (AI-assisted)'}},
  title = {{Evaluating Large Language Models Trained on Code}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-11},
  url = {https://iinventedlight.com/library/notes/2107-03374-humaneval/},
  note = {Permanent ID iil:note:b17djbnb. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/2107-03374-humaneval.md.