How AlphaCode 2 turned Gemini Pro into a coding contender
AlphaCode 2 combines Gemini Pro models with a pipeline that generates, filters, groups and scores code samples. It solved 43 % of problems in a Codeforces evaluation, while the report says human programmers still have a central role in making AI coding useful.
AlphaCode 2 is a coding system built around Gemini Pro models and a process designed to explore many possible solutions to a programming problem. Its results on Codeforces mark a large improvement over the original AlphaCode, but the system’s approach also depends on extensive sampling and human input.
“AlphaCode 2 is a coding benchmark improvement that relies on extensive sampling and human input, with no clear dominant societal lean.”Why it scores Neutral
From competitive coding to a new model
Deepmind introduced the original AlphaCode in February 2022. It used a Transformer-based encoder-decoder model, with its largest version containing 41.4 billion parameters. Training used 715 gigabytes of code samples from GitHub.
On the CodeContests dataset, the first AlphaCode solved 34.2 % of problems. Across ten Codeforce competitions, it achieved an average score in the top 54.3 %, meaning it outperformed almost 46 % of human participants. AlphaCode 2’s reported results point to a substantial step forward from that starting point.
Google Deepmind attributes the improvement to using a Gemini Pro decoder-based model as the foundation for AlphaCode 2’s components. The system is not simply one model producing one answer. It combines code generation with a series of steps to narrow a large pool of possible responses.
How AlphaCode 2 searches for solutions
The system includes policy models that generate code samples, a sampling mechanism that produces many candidates, and a filter that removes samples that do not comply with requirements. It then groups similar samples into clusters and uses a scoring model to select promising candidates from the largest clusters.
For each problem, AlphaCode 2 can generate up to one million code examples. Sampling is spread evenly across a family of custom models, and the system uses only C++ examples. Filtering and grouping help manage the volume: instead of treating every generated answer as equally useful, the process removes some candidates and organizes others before scoring them.
This design makes the scale of search part of the result. AlphaCode 2 can try many approaches before selecting an answer, but generating candidates is only one stage. The other components help identify which outputs meet requirements and which groups of similar solutions merit attention.
What the Codeforces evaluation showed
The team tested AlphaCode 2 on 77 problems drawn from 12 recent Codeforces competitions, with over 8,000 participants. It solved 43 % of the problems, almost twice as many as the original AlphaCode.
In the two highest-scoring competitions, AlphaCode 2 outperformed 99.5% of entrants. Those results show that the system can compete strongly in some programming contests. They do not, on their own, establish that it can reliably match the best human programmers across programming work more broadly.
The team believes performance could improve further with Gemini Ultra. That is a possibility described by the team, rather than a reported result in this evaluation. The figures in the test show what AlphaCode 2 achieved on the competitions studied, while the proposed improvement remains prospective.
Why programmers remain part of the process
The system has significant limitations alongside its competition results. It requires considerable trial and error, and the report says it is too expensive for large-scale use. The developers also say more work is needed before systems can reliably match the performance of the best human programmers.
AlphaCode 2 may be more useful as a collaborative tool than as a stand-alone replacement. Human programmers can specify additional filter properties, and the combination of the system with programmers reaches levels above 90%, according to the report. That interaction gives people a way to guide which generated code is kept under consideration.
Google DeepMind’s proposed direction is interactive programming: programmers could use AI models to analyze problems, suggest code designs and help with implementation. AlphaCode 2’s results make that vision concrete as a workflow in which models generate and rank possibilities while people shape the task and its constraints. The system’s contest performance is notable, but its cost and need for trial and error leave the human-machine partnership central to the account.
Read next