Evaluating Large Language Models Trained on Code
Top Cited Papers
Preprint
Abstract
We introduce Codex, a GPT language model fine-tuned on publicly available code from GitHub, and study its Python code-writing capabilities. A distinct production version of Codex powers GitHub Copilot. On HumanEval, a new evaluation set we release to measure functional correctness for synthesizing programs from docstrings, our model solves 28.8% of the problems, while GPT-3 solves 0% and GPT-J solves 11.4%. Furthermore, we find that repeated sampling from the model is a surprisingly effective strategy for producing working solutions to difficult prompts. Using this method, we solve 70.2% of our problems with 100 samples per problem. Careful investigation of our model reveals its limitations, including difficulty with docstrings describing long chains of operations and with binding operations to variables. Finally, we discuss the potential broader impacts of deploying powerful code generation technologies, covering safety, security, and economics.Keywords
All Related Versions
This publication has 21 references indexed in Scilit:
- Dataset Security for Machine Learning: Data Poisoning, Backdoor Attacks, and DefensesIEEE Transactions on Pattern Analysis and Machine Intelligence, 2022
- Biological structure and function emerge from scaling unsupervised learning to 250 million protein sequencesProceedings of the National Academy of Sciences of the United States of America, 2021
- Backstabber’s Knife Collection: A Review of Open Source Software Supply Chain Attacks2020
- Robots and Jobs: Evidence from US Labor MarketsJournal of Political Economy, 2020
- Recalibrating global data center energy-use estimatesScience, 2020
- The wrong kind of AI? Artificial intelligence and the future of labour demandCambridge Journal of Regions, Economy and Society, 2019
- What distinguishes great software engineers?Empirical Software Engineering, 2019
- Unified rational protein engineering with sequence-based deep representation learningNature Methods, 2019
- Hybrid computing using a neural network with dynamic external memoryNature, 2016
- Genetic programming III: Darwinian invention and problem solving [Book Review]IEEE Transactions on Evolutionary Computation, 1999