AI Pulse
📄 论文解读

AI写代码只会Python?新测试揭底

现在的AI编程评测几乎只看Python,但真实软件工程需要多种语言。研究者把LiveCodeBench的Python题目翻译成12种语言(Java、C++、Go等),测试了24个模型,发现很多模型在Python上表现好,换种语言就大幅下滑——这不是能力,是“背题”。比如某个模型Python正确率70%,C++直接掉到30%。这个测试会持续更新,以后想吹“全能编程”得先过这关。它不是你明天能用上的,但能帮你判断:如果AI只吹Python成绩,别信。

📄 原文摘要(英文)

LiveCodeBench (LCB) has recently become a widely adopted benchmark for evaluating large language models (LLMs) on code-generation tasks. By curating competitive programming problems, constantly adding fresh problems to the set, and filtering them by release dates, LCB provides contamination-aware evaluation and offers a holistic view of coding capability. However, LCB remains restricted to Python, leaving open the question of whether LLMs can generalize across the diverse programming languages required in real-world software engineering. We introduce Multi-LCB, a benchmark for evaluating LLMs across twelve programming languages, including Python. Multi-LCB transforms Python tasks from the LCB dataset into equivalent tasks in other languages while preserving LCB's contamination controls and evaluation protocol. Because it is fully compatible with the original LCB format, Multi-LCB will automatically track future LCB updates, enabling systematic assessment of cross-language code generation competence and requiring models to sustain performance well beyond Python. We evaluated 24 LLMs for instruction and reasoning on Multi-LCB, uncovering evidence of Python overfitting, language-specific contamination, and substantial disparities in multilingual performance. Our results establish Multi-LCB as a rigorous new benchmark for multi-programming-language code evaluation, directly addressing LCB's primary limitation and exposing critical gaps in current LLM capabilities.

arXiv 原文

订阅 AI Pulse

每天 08:00 · 12:30 · 18:30 · 23:50 更新