Static coding benchmarks reward models that memorized last year’s problem bank rather than models that can reason through unfamiliar programs. Evaluating 52 language models across 511 timestamped contest problems released between May 2023 and May 2024, Naman Jain and colleagues at UC Berkeley, MIT, and Cornell show that filtering evaluations to problems published after a model’s training cutoff exposes sharp contamination cliffs and widespread overfitting to HumanEval+.

Rather than relying on heuristic decontamination checks that rephrasing can evade, LiveCodeBench tags every task with its competition release date and evaluates four distinct coding skills beyond single-shot synthesis. That holistic, time-windowed design complements benchmark contamination prevention and repository-level suites like SWE-bench Verified.

  • Contamination cliffs align with cutoff dates: DSCoder-33b-Base drops from roughly 60% Pass@1 on May 2023 LeetCode problems to near 0% on September 2023 problems right after its August 30 cutoff, while Codestral-Latest drops from 36.5% (May 2023 to January 2024) to 28.3% on problems released from February 2024 onward.
  • HumanEval+ overfitting clusters open models: Correlation between HumanEval+ and LCB-Easy code generation is only 0.72; DSCoder-1.3b-Ins scores 59.8% Pass@1 on HumanEval+ (above Gemini-Pro) yet falls to 26.3% on LCB-Easy.
  • The frontier gap widens beyond generation: On post-September problems, DSCoder-33b-Ins trails GPT-4-Turbo by 4.3 points on HumanEval+, 16.2 points (69% relative) on LiveCodeBench code generation, 96% on test output prediction, and 134% on chain-of-thought code execution.
  • Self-repair and execution separate model families: GPT-4O-2024-05-13 climbs from 41.9% to 49.1% overall Pass@1 with one repair pass and hits 91.0% on CoT code execution, while Claude-3-Opus rises from 32.8% generation to 58.7% on test output prediction.
Post-September 2023 Pass@1 across all four LiveCodeBench scenarios (higher is better)
ModelCode GenSelf-RepairTest OutputExecution (Direct / CoT)
GPT-4O-2024-05-1341.9%49.1%68.9%39.1% / 91.0%
GPT-4-Turbo-2024-04-0941.1%45.6%66.1%45.9% / 83.8%
Claude-3-Opus32.8%37.8%58.7%36.5% / 80.1%
LLama3-70b-Ins26.0%30.1%41.4%29.6% / 55.5%
DSCoder-33b-Ins21.8%23.4%28.3%26.6% / 31.7%

Evaluated on problems released Sep 2023 to May 2024 (10 samples per problem, temperature 0.2). Source: Jain et al. (2024), Tables 3 to 6.

How It Works

LiveCodeBench scrapes new contest problems from AtCoder (267 beginner abc problems, rating up to 500), LeetCode (235 weekly and biweekly problems), and CodeForces (9 Division 3 and 4 problems, rating 800 to 1,300), excluding items with images, multiple valid outputs, or custom data-structure graders.

The 511 problems span 182 Easy, 206 Medium, and 123 Hard tasks with 17.0 test cases on average. Where platforms hide tests, GPT-4-Turbo synthesizes 2 random and 4 adversarial Python input generators verified against ground-truth solutions (capped at 100 tests). Filtering by contest date isolates post-cutoff windows (such as the 349 post-September 2023 problems) without guessing pretraining membership.

Four scenarios probe distinct skills on the same tasks:

  • Code generation: Zero-shot Python synthesis (one-shot for base models), scored by Pass@1 across 10 samples (temperature = 0.2, top_p = 0.95).
  • Self-repair: Given a failing input, wrong output, or error message from generation, the model gets one turn to fix its program.
  • Code execution: Models predict assert f(input) == ?? on 479 filtered human solutions (100 to 500 chars, under 1,000 bytecode steps) using 2-shot direct or 1-shot CoT prompts.
  • Test output prediction: Models predict expected outputs from problem statements and sample inputs across 442 LeetCode instances.

Key Findings

Time-window filtering catches contamination directly in the scores. DSCoder-33b-Base and DSCoder-33b-Ins drop sharply on LeetCode problems after August 2023 while staying flat on AtCoder, isolating the leak to LeetCode scraping rather than a general capability cliff; GPT-4o dips similarly after November 2023.

Comparing HumanEval+ against LCB-Easy splits models into two bands. Base and closed models track the diagonal, while fine-tuned open models (DSCoder-1.3b-Ins, DSCoder-6.7b-Ins, CodeQwen15-7B-Chat, MagiCoderS-DS-6.7B) overfit HumanEval+ and trail models like Claude-3-Sonnet by over 20 points on LCB-Easy. Diverse post-training still generalizes: LLama3-70b-Ins improves from 18.6% to 26.0% over LLama3-70b-Base, and Phind-34B-V2 improves from 11.4% to 19.4%.

Cross-scenario Pass@1 correlates strongly (0.98 generation/repair; 0.96 execution/test prediction; 0.89 generation/execution), yet workflow gaps diverge. GPT-4-Turbo-1106 jumps from 24.0% to 36.9% on LCB-Medium via self-repair, while Gemini-Pro rises only from 8.5% to 9.4%. On CoT execution, closed models surge (GPT-4O 39.1% to 91.0%; Claude-3-Opus 36.5% to 80.1%), whereas CodeLlama-34b-Ins drops (28.9% to 24.5%). Qualitatively, GPT-4-Turbo writes 19.5x more planning comments than GPT-4-0613.

Caveats and Builder Takeaway

LiveCodeBench shares competitive programming’s limits, echoing benchmark saturation studies on static slices. Post-September filtering leaves 349 generation problems (1.0% to 1.5% bootstrap variance), shrinking further for newer cutoffs without fresh contests or private sets. Tasks are Python-only, single-file, and use fixed prompts sensitive to open-model delimiters.

Never rely on HumanEval+ alone: compare post-cutoff LiveCodeBench windows across generation, repair, and execution alongside repository benchmarks and tau-bench reliability checks.