CodeT

Samples both candidate programs and synthetic test suites, then runs a RANSAC dual-execution consensus algorithm to select the best program.

Read the paper

The loop

  1. Proposes

    A code language model independently generates N candidate implementation programs and M candidate unit-test assertions from the problem prompt.

  2. Judged by

    A sandboxed execution engine runs all N x M program-test pairs to build a bipartite pass/fail consistency matrix.

  3. Steers

    A RANSAC-style consensus algorithm identifies the bipartite clique maximizing (#passing_programs x #passed_tests) and selects its representative program.

Headline result

Raised pass@1 on HumanEval to 65.8% (+18.8 points over Codex greedy decoding) and improved MBPP and APPS accuracy by over 15 points.

What this does not prove

If the LLM shares a systematic misconception across both its generated implementations and its generated tests, the consensus clique can still favour a flawed behavior.

How it generalizes the harness

A deterministic RANSAC bipartite consensus algorithm searches the N x M execution matrix to select the most consistent program cluster.

Classification

Classification of CodeT
What it proposesProgram
Generative modelCodex / InCoder code generator
Algorithmic authoritySandboxed execution matrix and RANSAC bipartite consensus solver
FeedbackTest results
What gets updatedPopulation of candidates
When it runsAt inference time
ValidityEmpirical (measured)
EvidenceCode released
LineageOriginal system