arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.05040cs.CLcs.AIcs.SE
收藏

UA-Code-Bench:用于评估乌克兰语大语言模型代码生成的竞争编程基准

UA-Code-Bench: A Competitive Programming Benchmark for Evaluating LLM Code Generation in Ukrainian

Mykyta Syromiatnikov, Victoria Ruvinskaya

AI总结:

本文提出乌克兰语竞争编程基准 UA-Code-Bench,包含500道Eolymp题目,评估13个模型后发现顶尖模型也仅能解决一半问题,揭示了低资源语言代码生成的挑战。

摘要:

评估大语言模型在低资源语言中的真实能力仍然是一项挑战,因为许多现有基准侧重于从英语翻译而来的广泛任务,或仅评估简单的语言理解。本文介绍了 UA-Code-Bench,这是一个新的开源基准,旨在全面评估语言模型在乌克兰语中的代码生成和竞争编程问题求解能力。该基准包含来自 Eolymp 平台的 500 道题目,均匀分布在从非常简单到非常困难的五个复杂度级别上。通过专用的 Eolymp 环境,针对隐藏测试对一组多样化的 13 个领先的专有和开源模型进行了评估,这些模型基于一次性提示生成 Python 解决方案,以确保代码正确性。获得的结果表明,即使是表现最好的模型,如 OpenAI o3 和 GPT-5,也只能解决一半的问题,这凸显了在低资源自然语言中进行代码生成的挑战。此外,本研究对不同难度级别的性能进行了全面分析,并对生成解决方案的唯一性和计算效率进行了评估,计算效率通过生成解决方案的运行时间和内存消耗来衡量。总之,这项工作证明了竞争编程基准在评估大语言模型方面的价值,尤其是在代表性不足的语言中。它还为未来关于多语言代码生成和推理增强模型的研究铺平了道路。该基准、数据解析、准备、代码生成和评估脚本可在 https://huggingface.co/datasets/NLPForUA/ua-code-bench 获取。

英文摘要:

Evaluating the real capabilities of large language models in low-resource languages still represents a challenge, as many existing benchmarks focus on widespread tasks translated from English or evaluate only simple language understanding. This paper introduces UA-Code-Bench, a new open-source benchmark established for a thorough evaluation of language models' code generation and competitive programming problem-solving abilities in Ukrainian. The benchmark comprises 500 problems from the Eolymp platform, evenly distributed across five complexity levels from very easy to very hard. A diverse set of 13 leading proprietary and open-source models, generating Python solutions based on a one-shot prompt, was evaluated via the dedicated Eolymp environment against hidden tests, ensuring code correctness. The obtained results reveal that even top-performing models, such as OpenAI o3 and GPT-5, solve only half of the problems, highlighting the challenge of code generation in low-resource natural language. Furthermore, this research presents a comprehensive analysis of performance across various difficulty levels, as well as an assessment of solution uniqueness and computational efficiency, measured by both elapsed time and memory consumption of the generated solutions. In conclusion, this work demonstrates the value of competitive programming benchmarks in evaluating large language models, especially in underrepresented languages. It also paves the way for future research on multilingual code generation and reasoning-enhanced models. The benchmark, data parsing, preparation, code generation, and evaluation scripts are available at https://huggingface.co/datasets/NLPForUA/ua-code-bench.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑