AlphaCode 2

Pairs Gemini Pro code generation with execution filtering, behavioral clustering, and a learned scoring model to rank competitive programming solutions.

Read the paper

The loop

  1. Proposes

    A family of fine-tuned Gemini Pro models samples up to one million diverse C++ candidate programs per problem.

  2. Judged by

    Sandboxed execution prunes about 95% of samples that fail the public example tests or do not compile, then clusters survivors on synthetic inputs.

  3. Steers

    A second Gemini scoring model ranks the top cluster representatives; there is no repair step.

Headline result

Solved 43% of Codeforces Division 1+2 problems and ranked at the 85th percentile of human competitors.

What this does not prove

High inference compute budget per problem; correctness remains bounded by test coverage rather than formal proof.

How it generalizes the harness

Execution-based pruning and dynamic input-output clustering filter a million-candidate population down to 10 submissions.

Classification

Classification of AlphaCode 2
What it proposesProgram
Generative modelFine-tuned Gemini Pro
Algorithmic authoritySandboxed C++ execution filter and behavioral clustering engine
FeedbackTest results
What gets updatedPopulation of candidates
When it runsAt inference time
ValidityEmpirical (measured)
EvidenceExperiments reported
LineageSuccessor