LiveCodeBench

On this page 7

LiveCodeBench is a continuously updated benchmark for evaluating large language models on programming tasks, built from problems collected over time from competitive programming platforms such as LeetCode, AtCoder and Codeforces. Its defining feature is that every problem carries a release date, so a model can be scored only on problems published after its training cutoff. In the field of AI for coding, it has become a standard reference for measuring code reasoning without the distortion of memorized answers.

The benchmark was introduced in 2024 by academic researchers in response to a growing problem: older static suites such as HumanEval and MBPP had leaked into training corpora, inflating scores. LiveCodeBench also broadens evaluation beyond writing code, adding self-repair, code execution and test output prediction as separate scenarios.

How LiveCodeBench avoids contamination

LiveCodeBench addresses data contamination, the situation in which benchmark problems or their solutions appear in a model’s training data. A contaminated model can reproduce a solution from memory, so its score measures recall rather than genuine problem solving. Static benchmarks cannot detect this once they are public.

The benchmark instead uses a time-segmented evaluation window. Problems are harvested on a rolling basis and tagged with their contest date. When a model’s training cutoff is known, evaluators restrict scoring to problems released later, which the model could not have seen. Researchers reported clear evidence of this effect: some models scored much better on older problems than on newer ones of similar difficulty, a performance drop at the cutoff that signals memorization.

The table below summarizes the main design choices and the purpose of each.

Design choiceImplementationPurpose
Rolling collectionNew contest problems added over timeKeeps the test set fresh
Release datingEach problem tagged with contest dateEnables cutoff-aware scoring
Hidden test casesMany tests per problem, including generated onesReduces false positives
Difficulty labelsEasy, medium and hard tiersShows where models break down
Versioned releasesNumbered dataset snapshotsMakes results reproducible
Core design choices of LiveCodeBench

Evaluation scenarios and metrics

LiveCodeBench measures four distinct capabilities rather than code generation alone, because real programming involves reading, debugging and reasoning about code as much as writing it. Each scenario uses the same pool of dated problems with a different task framing.

ScenarioModel taskSkill measured
Code generationWrite a full solution from the statementAlgorithmic problem solving
Self-repairFix its own failing program using error feedbackDebugging ability
Code executionPredict a program’s output for a given inputUnderstanding program semantics
Test output predictionPredict the expected output from the statementReasoning about specifications
The four LiveCodeBench scenarios

The headline metric is pass@1: the share of problems for which a single generated solution passes all hidden tests. Results are typically reported both overall and by difficulty tier, since hard problems separate frontier models far more sharply than easy ones, where many systems approach saturation.

LiveCodeBench compared with other coding benchmarks

LiveCodeBench sits between small function-level suites and repository-scale agent benchmarks. Its focus is self-contained algorithmic reasoning, not software engineering in large codebases.

BenchmarkTask typeContamination handling
HumanEvalShort Python functions with docstringsStatic and widely leaked
MBPPBasic programming exercisesStatic and widely leaked
BigCodeBenchPractical tasks using many librariesStatic, with curated splits
LiveCodeBenchContest problems across four scenariosRolling, date-filtered
SWE-benchReal repository issues and patchesStatic, later refreshed variants
Terminal-BenchAgentic tasks in a command-line environmentCurated task set
Position among coding benchmarks

Because the suites test different abilities, a model’s rank can differ sharply between them. A high LiveCodeBench score indicates strong reasoning on well-specified problems, but it does not prove that the model can navigate an unfamiliar codebase or follow project conventions.

Reading LiveCodeBench results correctly

LiveCodeBench numbers are only comparable when they refer to the same dataset version and time window. A score on problems from one period cannot be compared directly with a score on a different period, because difficulty mix and problem sources change over time.

  • Check which release version and date range a reported score uses.
  • Confirm that the window starts after the model’s training cutoff.
  • Compare pass@1 by difficulty tier, not only the overall figure.
  • Note whether the model used extended reasoning or multiple samples, which changes cost and score.

Reasoning-focused models that generate long internal chains of thought have produced large gains on the benchmark, particularly on medium and hard problems. Such gains are real, but they often come with much higher token usage and latency, which matters for production deployment.

Limitations and open questions

LiveCodeBench reduces contamination but does not eliminate it entirely. Solutions to new contest problems appear online quickly, and models with later cutoffs may absorb them. Its reliance on competitive programming also creates a narrow task distribution that differs from everyday software development.

LimitationEffect on resultsMitigation
Contest-style problems onlyOverstates practical coding skillPair with repository benchmarks
Uncertain training cutoffsWindow may include seen problemsUse conservative date ranges
Shrinking fresh windowFewer problems, wider varianceReport confidence intervals
Score saturation on easy tierLittle separation between modelsFocus on the hard tier
Known limitations and their effects

Despite these limits, the dated, refreshable design has influenced later evaluation work, and the principle of testing only on unseen material is now widely regarded as good practice for code model evaluation.

The idea in brief

Think of an exam for computer programs that write code. If the exam questions are old, a program may have seen the answers during training. Then a high score proves little. LiveCodeBench solves this by using fresh questions.

It keeps adding new puzzles from programming contests. Each puzzle has a date. A model is tested only on puzzles that appeared after it finished learning. The test checks real skill, not memory. It also asks models to fix code, predict results and reason about tests.

A practical scenario

An engineering team must choose a code model for an internal tool that solves scheduling and routing problems. Two candidate models report similar scores on HumanEval, so that benchmark cannot separate them.

The team runs both models on LiveCodeBench problems released in the six months after the later training cutoff. On easy problems both models pass more than 90 percent. On hard problems, however, one model passes about twice as many as the other, and its self-repair results show it fixes failing code more reliably when given error messages.

The team also measures cost per solved problem and finds that the stronger model uses more tokens but still costs less per correct solution. It selects that model and keeps a small dated test set of its own to repeat the evaluation whenever a new model version is released.