Multi-LCB: Extending LiveCodeBench to Multiple Programming Languages

Maria Ivanova, Pavel Zadorozhny, Rodion Levichev, Ivan Petrov, Adamenko Pavel, Ivan Lopatin, Alexey Kutalev, Dmitrii Babaev

TL;DR

Multi-LCB extends the popular LiveCodeBench (LCB) from a Python-only evaluation to a robust benchmark covering 12 programming languages. By testing 24 state-of-the-art LLMs, researchers discovered that high performance in Python is often a poor proxy for general coding competence, revealing significant "Python overfitting" and language-specific data contamination in current models.

The Problem: Is Python Performance a Mirage?

Evaluating how well Large Language Models (LLMs) write code is a moving target. Static benchmarks like HumanEval or MBPP are increasingly "saturated"—models have likely seen these problems (and their solutions) during training, leading to artificially high scores. LiveCodeBench (LCB) solved this by using "live" competitive programming problems filtered by release date to ensure the models are seeing fresh challenges.

However, LCB was restricted to Python. In the real world, software engineering is polyglot, requiring mastery of C++, Java, Rust, and more. This paper addresses the critical question: Do models that excel at Python actually generalize to other languages, or are they just over-optimized for the most common language in their training sets?

Methods: Building a Polyglot Benchmark

The authors developed Multi-LCB, a framework that replicates the LCB evaluation protocol across 12 languages (C++, C#, Python, Java, Rust, Go, TypeScript, JavaScript, Ruby, PHP, Kotlin, and Scala).

The technical centerpiece is an automatic conversion pipeline. While platforms like AtCoder and Codeforces already use a language-agnostic STDIN/STDOUT (standard input/output) format, LeetCode uses a Python-specific functional format.

Multi-LCB evaluation pipeline converting LeetCode problems to STDIN/STDOUT format.

The researchers built a pipeline to:

  1. Parse LeetCode's functional signatures and test cases.
  2. Transform them into a unified STDIN/STDOUT format.
  3. Reformat problem statements to be language-agnostic.
  4. Execute and grade the generated code in isolated sandbox containers with strict resource limits.

This allows for a direct "apples-to-apples" comparison: the model is asked to solve the exact same algorithmic problem in twelve different ways.

Datasets and Evaluation

  • LiveCodeBench (LCB): The source dataset, which continuously harvests problems from LeetCode, AtCoder, and Codeforces.
  • Multi-LCB: The new benchmark introduced in this paper, extending LCB to 12 languages.
  • Evaluation Pool: The study evaluated 24 recent LLMs, including members of the Qwen3, DeepSeek-R1, and OpenCoder families, ranging from 7B to 685B parameters.

Key Insights: The Python Overfitting Trap

  • Python is not a reliable proxy: The "aha moment" here is that a model’s Python score doesn't tell the whole story. Several models that outperformed competitors in Python lost their lead when switched to C++ or Java.
  • The "Python Overfitting" Trap: Models without explicit multilingual training showed a stark gap. Some exceeded 60% Pass@1 on Python while crashing to below 30% in other languages.
Comparison of Python Pass@1 versus average Pass@1 across all languages, highlighting Python overfitting.
  • Language-Specific Contamination: By analyzing performance over time, the authors found "step-like drops" in scores. Models often performed suspiciously well on problems released before their training cutoff but struggled with newer ones in specific languages, suggesting they had "memorized" solutions for some languages but not others.
  • Statically Typed Struggles: Performance was generally lower in statically typed languages (like Scala) or those with more verbose I/O handling (like Java and C#), where syntactic and type-level correctness is harder to achieve than in Python's flexible environment.

Key Results: Language Difficulty Gradient

  • Difficulty Gradient: Python remains the "easiest" for models (mean Pass@1 of 0.482), followed by Java and C++ (~0.44). Scala was the most challenging, with a mean score below 0.29.
  • Top Performers: The strongest models across the board were Gpt-oss-120B (Medium), Qwen3-235B-A22B-Thk-2507, and DeepSeek-R1-0528**.
  • Generalization: Even the best reasoning-augmented models (like DeepSeek-R1) still show a measurable bias toward Python, though they generalize much better than standard instruction-tuned models.
  • Error Profiles: In compiled languages like Rust and C++, models fail significantly more often due to compiler and type errors rather than just logic errors, highlighting a gap in their understanding of strict syntax.

Limitations and Future Work

The authors acknowledge several limitations:

  • Language Scope: While 12 languages is a huge step up, others like Swift, Haskell, and R are currently missing.
  • Domain Specificity: The benchmark is still rooted in competitive programming. It doesn't yet measure "industrial" tasks like API integration, debugging legacy codebases, or working with complex frameworks.
  • Protocol Constraints: The strict STDIN/STDOUT format might penalize models that are better at writing library functions than handling raw input parsing.

Future Work: The team plans to add more languages (Swift, Julia, etc.), evaluate proprietary models like GPT-4 and Claude, and extend the methodology to LCB-Pro, which involves more complex, multi-file coding tasks.

Summary updated

BibTeX
@inproceedings{ivanova2026multi,
  author = {Maria Ivanova and Pavel Zadorozhny and Rodion Levichev and Ivan Petrov and Adamenko Pavel and Ivan Lopatin and Alexey Kutalev and Dmitrii Babaev},
  title = {{Multi-LCB: Extending LiveCodeBench to Multiple Programming Languages}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=MKxKKsz0cx},
}
Figure