Abstract

Programming is a powerful and ubiquitous problem-solving tool. Systems that can assist programmers or even generate programs themselves could make programming more productive and accessible. Recent transformer-based neural network models show impressive code generation abilities yet still perform poorly on more complex tasks requiring problem-solving skills, such as competitive programming problems. Here, we introduce AlphaCode, a system for code generation that achieved an average ranking in the top 54.3% in simulated evaluations on recent programming competitions on the Codeforces platform. AlphaCode solves problems by generating millions of diverse programs using specially trained transformer-based networks and then filtering and clustering those programs to a maximum of just 10 submissions. This result marks the first time an artificial intelligence system has performed competitively in programming competitions.

Download full-text PDF

Link Source
Download Source 1https://www.science.org/doi/10.1126/science.abq1158Web Search
Download Source 2http://dx.doi.org/10.1126/science.abq1158DOI Listing

Publication Analysis

Top Keywords

code generation
12
programming competitions
8
programming
5
competition-level code
4
generation alphacode
4
alphacode programming
4
programming powerful
4
powerful ubiquitous
4
ubiquitous problem-solving
4
problem-solving tool
4