ExPairT-LLM

Programs sampled from a code model are grouped by running them, and an exact-learning tournament asks an LLM simple pairwise questions until one behaviour group is left.

Read the paper

In one paragraph

ExPairT-LLM (2025, code verification) uses active-learning generation, pairing generator Codex with authority Execution-based clustering plus an exact-learning tournament over pairwise membership and equivalence queries. Pass@1 beats B4, the strongest prior selection method, by +13.0% on average and up to +27.1% (HumanEval, MBPP-sanitized, APPS). Limit: the judge of which output is right is itself an LLM oracle.

Verified against primary sources on · It matched its sources.

How does ExPairT-LLM work?

  1. Proposes

    Candidate programs for a coding task (25 per task in the main runs), plus differentiating inputs proposed by the LLM oracle

  2. Judged by

    Program execution, which clusters programs by their outputs and checks that a proposed differentiating input really splits a cluster; a Copeland-style tournament over pairwise membership answers from an LLM oracle (o1-mini) picks the winning cluster

  3. Steers

    If the winning cluster holds non-equivalent programs, the algorithm refines it on the new input and runs another tournament, until one program class remains

What did ExPairT-LLM report?

Pass@1 beats B4, the strongest prior selection method, by +13.0% on average and up to +27.1% (HumanEval, MBPP-sanitized, APPS); it raises the pass@1 of o1-mini, DeepSeek-R1 and Gemini 2.5 Flash by +32.8%, +20.4% and +18.9%.

What does ExPairT-LLM not prove?

The judge of which output is right is itself an LLM oracle, so correctness is exact only if the oracle never errs; candidates are sampled once and never regenerated, and the method only targets stateless, deterministic functions with explicit inputs and outputs.

What a pass means here

The judge is a test, benchmark or score, so a pass means the candidate did well on those checks, not that it is right on every input. The loop runs each time an answer is needed.

How it generalizes the harness

The exact-learning algorithm decides which query to pose and when to stop, and execution checks every input the LLM proposes before it is used to split candidates.

Classification

Classification of ExPairT-LLM
Classification dimensionVerified value
What it proposesProgram
Generative modelCodex, CodeLlama-7B-Python, StarCoder, DeepSeek-Coder-6.7B, CodeGen-16B program samples; o1-mini as oracle (also o1-mini, DeepSeek-R1, Gemini 2.5 Flash end to end)
Algorithmic authorityExecution-based clustering plus an exact-learning tournament (Copeland scoring) over pairwise membership and equivalence queries
FeedbackRanking
What gets updatedPopulation of candidates
When it runsAt inference time
ValidityEmpirical (measured)
EvidenceExperiments reported
LineageOriginal system