HackerPapers

arXiv:2105.09938cs.SE

Measuring Coding Challenge Competence With APPS

Dan Hendrycks, Steven Basart, Saurav Kadavath, Mantas Mazeika, Akul Arora, Ethan Guo, Collin Burns, Samir Puranik, Horace He, Dawn Song, Jacob Steinhardt

Early discovery. Linked by one identifiable commenter. This paper is outside the main ranking; a mention is not an endorsement.

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.

arXiv comments
NeurIPS 2021. Code and the APPS dataset is available at https://github.com/hendrycks/apps
Journal reference
DOI
Subjects
cs.SESoftware Engineering cs.CLComputation and Language cs.LGMachine Learning

On Hacker News

Linked by 1 identifiable commenter in 2 comments across 2 threads, from Mar 2023 to Mar 2024. Found in 1 HN submission from May 2021 to May 2021. Open submission discussions.

Comments linking this paper, per year.

Discussed in comments2 threads

  1. Claude 3 model family 1 comment
    • The APPS benchmark result of Claude 3 Opus at 70.2% indicates it might be quite useful for coding. The dataset measures the ability to convert problem descriptions to Python code. The average length of a problem is nearly 300 words. Interestingly, no other top models have…

      nopinsightView on HNParent context

  2. Post-GPT Computing 1 comment
    • By the late 2020s, it's entirely possible that a "weaker" AGI will emerge. Consequently, there may be much less need for senior developers as well. However, that could be among the least of our concerns if we cannot reliably align AI with human interests by then. Date Weakly…

      nopinsightView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.