atlas

Research map / Large language models / Agents, code and math

Rethinking Verification for LLM Code Generation: From Generation to Testing

NeurIPS 2025 · Large language models › Agents, code and math · approach: Code generation benchmarks · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes multi-dimensional metrics and SAGA, a human-LLM collaborative test-case generation framework that uses correct and incorrect human submissions to build stronger verifiers, plus TCGBench, TCGBench-Lite, CodeCompass, and a distilled TCGCoder-7B.

Problem

Existing code benchmarks and verifiers rely on few homogeneous, LLM-biased test cases, so subtle faults go undetected, inflating measured performance and giving noisy rewards for RLVR.

Approach

SAGA guides an LLM with human insights from correct solutions (multidimensional analysis) and from failed submissions paired with their corrections (differential analysis) to write Python case scripts that generate targeted test inputs, which a ground-truth interpreter then labels with outputs.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use SAGA instead of Input-Interpreter random samplingTCG on TCGBench-Lite · TCGBench-LiteAUC@50: 0.1234 vs. 0.2228Helped
add Multidimensional Analysis to SAGA (ablation)SAGA on TCGBench-Lite · TCGBench-LiteAUC@50: 0.1923 vs. 0.2228Helped
add Differential Analysis to SAGA (ablation)SAGA on TCGBench-Lite · TCGBench-LiteAUC@50: 0.1926 vs. 0.2228Helped
replace detailed insight-driven prompts with SimpleCOT (ablation)SAGA on TCGBench-Lite · TCGBench-LiteAUC@50: 0.1424 vs. 0.2228Helped
replace SAGA-generated inputs with random inputs using ground truth (ablation)SAGA on TCGBench-Lite · TCGBench-LiteAUC@50: 0.1616 vs. 0.2228Helped
replace SAGA test generation with EvalPlus using ground truth (ablation)SAGA on TCGBench-Lite · TCGBench-LiteAUC@50: 0.1278 vs. 0.2228Helped
use Qwen2.5-Coder-7B-Instruct backbone instead of DeepSeek-V3-0324 (ablation)SAGA · TCGBench-LiteAUC@50: 0.2228 vs. 0.1810Hurt
use Qwen2.5-72B-Instruct backbone instead of DeepSeek-V3-0324 (ablation)SAGA · TCGBench-LiteAUC@50: 0.2228 vs. 0.1943Hurt
use Qwen2.5-Coder-32B-Instruct backbone instead of DeepSeek-V3-0324 (ablation)SAGA · TCGBench-LiteAUC@50: 0.2228 vs. 0.2139Hurt
add simple human priors to Direct GenerationDirect Generation on AtCoder · AtCoderAccuracy@50: 11.30% -> 15.06%Helped
add simple human priors to Input-InterpreterInput-Interpreter on AtCoder · AtCoderAccuracy@50: 23.36% -> 27.95%Helped

Surprising findings

Limitations

Experimental setup

Datasets: TCGBench LiveCodeBench-v6 (AtCoder subset, 101 problems) CodeForces-CoTs

Benchmarks: TCGBench-Lite TCGBench CodeCompass (AtCoder subset vs LiveCodeBench-v6)

Metrics: Detection Rate (DR) Verifier Accuracy (VAcc) AUC@50 Distinct Error Pattern Coverage (DEPC) Diversity Ratio Pass@1

Baselines: TestChain Input-Interpreter (LiveCodeBench-style random sampling) EvalPlus TCGCoder-7B LiveCodeBench-v6

Builds on: LiveCodeBench EvalPlus TestChain DeepSeek-R1

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy