Measuring Coding Challenge Competence With APPS

Dan Hendrycks, Steven Basart, Saurav Kadavath, Mantas Mazeika, Akul Arora +6 more
5/20/2021
cs.SEcs.CLcs.LG

Official code: hendrycks/apps (541 stars, MIT, last commit 2024-06-19).

Abstract

While programming is one of the most broadly applicable skills in modern society, modern machine learning models still cannot code solutions to basic problems. Despite its importance, there has been surprisingly little work on evaluating code generation, and it can be difficult to accurately assess code generation performance rigorously. To meet this challenge, we introduce APPS, a benchmark for code generation. Unlike prior work in more restricted settings, our benchmark measures the ability of models to take an arbitrary natural language specification and generate satisfactory Python code. Similar to how companies assess candidate software developers, we then evaluate models by checking their generated code on test cases. Our benchmark includes 10,000 problems, which range from having simple one-line solutions to being substantial algorithmic challenges. We fine-tune large language models on both GitHub and our training set, and we find that the prevalence of syntax errors is decreasing exponentially as models improve. Recent models such as GPT-Neo can pass approximately 20% of the test cases of introductory problems, so we find that machine learning models are now beginning to learn how to code. As the social significance of automatic code generation increases over the coming years, our benchmark can provide an important measure for tracking advancements.

View on arXivView PDF

Code Implementations(1)

hendrycks/appsOfficial100%
MIT

APPS: Automated Programming Progress Standard (NeurIPS 2021)

54171Shell, PythonApr 24, 20212 years agoMIT
code-generationprogram-synthesis

Similar Papers

Cite this paper

@article{hendrycks2021measuring,
  title  = {Measuring Coding Challenge Competence With APPS},
  author = {Dan Hendrycks and Steven Basart and Saurav Kadavath and Mantas Mazeika and Akul Arora and Ethan Guo and Collin Burns and Samir Puranik and Horace He and Dawn Song and Jacob Steinhardt},
  year   = {2021},
  eprint = {2105.09938},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.09938}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2105.09938.svg)](https://codeofpaper.com/paper/2105.09938)

Discussion