Multi-LCB: Extending LiveCodeBench to Multiple Programming Languages
This paper introduces Multi-LCB, a contamination-aware benchmark that extends the LiveCodeBench dataset to twelve programming languages by transforming Python tasks, thereby enabling rigorous evaluation of large language models' cross-language code generation capabilities and revealing significant performance disparities and Python overfitting.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you have a very smart robot assistant that learned how to cook by reading millions of recipes. But here's the catch: 99% of those recipes were for Italian pasta.
When you ask this robot to make a perfect spaghetti carbonara, it's a genius. It gets it right almost every time. But if you ask it to make a sushi roll, a taco, or a curry, it suddenly struggles. It might try to put pasta sauce on the fish or use a fork instead of chopsticks.
This is exactly the problem the researchers at Multi-LCB discovered with today's most advanced AI coding assistants.
The Problem: The "Italian Pasta" Bias
For a while, the gold standard for testing these AI coders was a benchmark called LiveCodeBench (LCB). Think of LCB as a massive, constantly updated library of coding puzzles. It's great because it keeps adding new puzzles that the AI hasn't seen before, so we know the AI isn't just cheating by memorizing answers.
However, there was a huge flaw: LiveCodeBench only tested the AI in Python. Python is like the "Italian pasta" of the coding world—it's popular and easy. But in the real world, software engineers don't just cook pasta; they cook everything. They need C++ for high-speed systems, Java for big business apps, and JavaScript for websites.
The big question was: Is the AI actually smart at coding, or is it just really good at Python?
The Solution: Multi-LCB (The "International Potluck")
The authors created Multi-LCB, which is like taking that same library of coding puzzles and translating them into 12 different languages (including Python, C++, Java, Rust, Go, and others).
They didn't just ask the AI to "translate" the code. Instead, they took the original puzzle (e.g., "Calculate the sum of these numbers") and rewrote the instructions so the AI had to solve it using the rules of C++, then Java, then Rust, and so on.
How it works (The Kitchen Analogy):
- The Recipe: They take a puzzle from a coding competition (like a math problem).
- The Translation: They convert the "test cases" (the way you check if the answer is right) into a universal format. Imagine changing a recipe that says "add 2 cups of flour" into a format that works whether you are using a cup, a gram scale, or a spoon. This ensures the AI is being tested on the logic, not just its ability to guess the right format.
- The Test: The AI tries to solve the same puzzle in 12 different languages.
- The Verdict: They check if the code actually runs and solves the problem without crashing.
What They Found (The Taste Test Results)
The researchers tested 24 different AI models. Here is what the "taste test" revealed:
- The "Pasta" Overfitting: Many models that were champions at Python suddenly became average or terrible at other languages. It's like a chef who can make a perfect lasagna but burns toast. This proves that being good at Python doesn't automatically mean an AI is good at coding in general.
- The "Secret Ingredient" Leak: Some models performed suspiciously well on older puzzles in specific languages. This suggests those models might have accidentally "memorized" the answers from their training data (like a student who memorized the test key) rather than actually learning how to solve the problem.
- The Difficulty Gap: The AI found some languages much harder than others. It struggled the most with languages that are stricter or less common (like Scala or Rust), just as a human might struggle with a language they rarely use.
Why This Matters
Before this paper, we thought an AI that aced the Python test was a "coding genius." Multi-LCB showed us that many of these "geniuses" are actually just Python specialists.
The paper concludes that to build truly useful AI for software engineering, we need to stop testing them only on the "Italian pasta" (Python) and start testing them on the whole menu. Multi-LCB provides the kitchen, the recipes, and the judges to see which AI can truly cook a full international feast.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.