Curated summary
Evaluating large language models trained on code
The post introduces Codex, a GPT language model fine-tuned on publicly available GitHub code, and studies its ability to write Python. Codex solves 28.8% of problems on HumanEval, a new benchmark the authors released for generating programs from docstrings, compared with 11.4% for GPT-J and 0% for GPT-3. Repeated sampling raises the solve rate to 70.2% with 100 samples per problem, and the authors also flag limitations and broader safety, security, and economic implications.
Model and Training
- Codex is a GPT language model fine-tuned on publicly available code from GitHub.
- A distinct production version of Codex powers GitHub Copilot.
HumanEval Benchmark
- HumanEval is a new evaluation set released to measure functional correctness when synthesizing programs from docstrings.
- Codex solves 28.8% of the problems, versus 11.4% for GPT-J and 0% for GPT-3.
Repeated Sampling
- Generating many samples per prompt is a surprisingly effective way to get working solutions to difficult problems.
- With 100 samples per problem, Codex solves 70.2% of the HumanEval problems.
Limitations
- The model struggles with docstrings that describe long chains of operations.
- It also has difficulty binding operations to variables.
Broader Impacts
- The authors discuss the potential effects of deploying powerful code generation technology, including safety, security, and economics.
A May 2025 update at the top of the post notes that OpenAI later launched Codex as a cloud-based software engineering agent that can work on many tasks in parallel.
Related reading
Continue with another curated summary.
OpenAI2022-03-02 A research agenda for assessing the economic impacts of code generation models
Read original
OpenAI2026-11-19 Can AI help scientists identify promising drug candidates?
Read original
OpenAI2026-02-22 Why we no longer evaluate SWE-bench Verified
Read original
OpenAI2024-08-12 Introducing SWE-bench Verified
Read original