LiveCodeBench
by LiveCodeBench team (academic)
What is LiveCodeBench? LiveCodeBench is a contamination-resistant coding benchmark: it keeps adding new contest problems from LeetCode, AtCoder and CodeForces, so you can score a model only on problems published after its training cutoff. Use it for algorithmic coding with less memorisation risk; for fixing real repositories, use SWE-bench or SWE-bench Pro instead.
Editor note
Keeps collecting new contest problems over time, so you can test a model only on problems released after its training cutoff.
- What it tests
- Code generation, self-repair and test prediction on fresh problems.
- Original source
- livecodebench.github.io/
- Last updated
- Not checked yet
- License
- MIT (code repository)
LiveCodeBench release versions (README read 22 Oct 2026)
| Release | Problems released | Problems |
|---|---|---|
| release_v1 | May 2023 – Mar 2024 | 400 |
| release_v2 | May 2023 – May 2024 | 511 |
| release_v3 | May 2023 – Jul 2024 | 612 |
| release_v4 | May 2023 – Sep 2024 | 713 |
| release_v5 | May 2023 – Jan 2025 | 880 |
| release_v6 | May 2023 – Apr 2025 | 1,055 |
When to use LiveCodeBench
- You worry that a model has memorised older coding benchmarks: LiveCodeBench keeps adding contest problems from LeetCode, AtCoder and CodeForces, and you can score only problems released after a model's training cutoff.
- You want more than code generation: it also has self-repair, code execution and test output prediction scenarios.
Limitations
- Problems are competitive-programming style, which is different from day-to-day software engineering in a large codebase.
- Results depend on the release version (release_v1 had 400 problems; later releases have more) and on the date window you pick, so report both.
- The default code_generation_lite set prunes many test cases to run faster; note which set you used.
- Some problems are graded unfairly: the official ERRATA file (read 3 Nov 2026) lists problems that accept several correct outputs but are graded against one, 2 interactive problems the harness cannot run, and problems with erroneous test cases. Expect a little noise, and check ERRATA before you read small score gaps as real.
How to run it
- Clone the repository and install with uv.
- Run a scenario for your model, then add --evaluate to score it.
- Use compute_scores with a start date to score only problems after a given date.
git clone https://github.com/LiveCodeBench/LiveCodeBench.git && cd LiveCodeBench
uv venv --python 3.11 && uv pip install -e .
python -m lcb_runner.runner.main --model <model> --scenario codegeneration --evaluate --release_version release_v2Notable results
- The paper evaluated 18 base and 34 instruction-tuned models and reports findings on contamination and possible overfitting to older benchmarks such as HumanEval. [Paper (arXiv)]
Sources
FAQ
Is LiveCodeBench contamination-free?
It is designed to reduce contamination: you pass --start_date and --end_date to score only problems released inside a window, for example after a model's training cutoff. Its README calls the evaluation contamination-free on that basis.
LiveCodeBench or SWE-bench?
LiveCodeBench tests solving contest problems from a statement; SWE-bench tests an agent patching real GitHub repositories. Our LiveCodeBench vs SWE-bench comparison goes through it row by row.
Which LiveCodeBench version should I report?
Always state the release version (release_v1 to release_v6 per the README), the date window and whether you used the default code_generation_lite set, because scores change with each.
Does LiveCodeBench have known bad problems?
Yes, and the maintainers list them in ERRATA.md: problems where several outputs are correct but only one is accepted, 2 interactive problems the harness does not support, and a few problems with wrong test cases. The README says this feedback is used to improve problem selection in later releases.
Compare LiveCodeBench
Related coding evals
- SWE-bench — Fixing real bugs in real repositories, judged by unit tests.
- HumanEval — Writing a short correct function from a docstring.
- Aider leaderboards (Polyglot) — Practical multi-language code editing.
- BigCodeBench — Library-heavy, practical Python tasks.
Discussion
No one has discussed LiveCodeBench yet. Have you run it? Share what it caught, what it missed or how you set it up.