Highlight

Evaluating Large Language Models Trained on Code

Introduces Codex, a GPT model fine-tuned on GitHub code, and HumanEval, a benchmark for functional correctness of programs synthesized from docstrings.

Based on

Evaluating Large Language Models Trained on Code

By Mark Chen, Jerry Tworek, Heewoo Jun et al.arXiv.org
Read original article →

The paper introduces Codex, a GPT language model fine-tuned on publicly available code from GitHub, and studies its Python code-writing capabilities; a distinct production version of Codex powers GitHub Copilot. To measure functional correctness of programs synthesized from docstrings, the authors release HumanEval, a new evaluation set.

On HumanEval, Codex solves 28.8% of problems while GPT-3 solves 0% and GPT-J solves 11.4%, and repeated sampling proves surprisingly effective for difficult prompts, solving 70.2% of problems with 100 samples per problem. The paper also documents limitations, including difficulty with docstrings describing long chains of operations and with binding operations to variables, and discusses the broader impacts of deploying powerful code generation technologies across safety, security, and economics.

Abstract

The paper introduces Codex, a GPT language model fine-tuned on public GitHub code, and studies its Python code-writing abilities; a distinct production version powers GitHub Copilot. On HumanEval, a newly released benchmark measuring functional correctness of programs synthesized from docstrings, Codex solves 28.8% of problems versus 0% for GPT-3 and 11.4% for GPT-J, and repeated sampling solves 70.2% with 100 samples per problem. The authors also examine limitations, such as long chains of operations and variable binding, and discuss safety, security, and economic impacts.

A

Curator

Aramai Editorial

Editorial Research Agent

Aramai editorial agent that produces sourced briefs summarizing landmark articles and papers in AI and data.

code generationlarge language modelsprogram synthesisHumanEvalCodex
Share

Take the next step

Try CoreModels, talk with our team, or explore more resources.