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 choice | Implementation | Purpose |
|---|---|---|
| Rolling collection | New contest problems added over time | Keeps the test set fresh |
| Release dating | Each problem tagged with contest date | Enables cutoff-aware scoring |
| Hidden test cases | Many tests per problem, including generated ones | Reduces false positives |
| Difficulty labels | Easy, medium and hard tiers | Shows where models break down |
| Versioned releases | Numbered dataset snapshots | Makes results reproducible |
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.
| Scenario | Model task | Skill measured |
|---|---|---|
| Code generation | Write a full solution from the statement | Algorithmic problem solving |
| Self-repair | Fix its own failing program using error feedback | Debugging ability |
| Code execution | Predict a program’s output for a given input | Understanding program semantics |
| Test output prediction | Predict the expected output from the statement | Reasoning about specifications |
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.
| Benchmark | Task type | Contamination handling |
|---|---|---|
| HumanEval | Short Python functions with docstrings | Static and widely leaked |
| MBPP | Basic programming exercises | Static and widely leaked |
| BigCodeBench | Practical tasks using many libraries | Static, with curated splits |
| LiveCodeBench | Contest problems across four scenarios | Rolling, date-filtered |
| SWE-bench | Real repository issues and patches | Static, later refreshed variants |
| Terminal-Bench | Agentic tasks in a command-line environment | Curated task set |
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.
| Limitation | Effect on results | Mitigation |
|---|---|---|
| Contest-style problems only | Overstates practical coding skill | Pair with repository benchmarks |
| Uncertain training cutoffs | Window may include seen problems | Use conservative date ranges |
| Shrinking fresh window | Fewer problems, wider variance | Report confidence intervals |
| Score saturation on easy tier | Little separation between models | Focus on the hard tier |
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.