arXiv:2511.05040cs.CLcs.AI2025-11

首个乌克兰语编程评测基准,测试大模型在真实竞赛题中的代码生成能力

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

  • 基于乌克兰竞赛平台Eolymp的500道题构建评测集,覆盖五级难度
  • 顶级模型如GPT-5仅解决一半题目,体现低资源语言代码生成挑战
  • 评估代码正确性、唯一性及运行效率,适合多语言编程研究者

评估大语言模型在低资源语言中的真实能力仍是难题,现有基准多依赖英文任务翻译或仅测试简单语言理解。本文提出UA-Code-Bench,一个开源基准,用于全面评估模型在乌克兰语下的代码生成与编程竞赛解题能力。该基准包含来自Eolymp平台的500道题目,均匀分布于从极简到极难的五个难度等级。使用13个主流专有与开源模型,基于单次提示生成Python代码,在专用Eolymp环境中通过隐藏测试验证正确性。结果显示,即使顶尖模型如OpenAI o3和GPT-5也仅能解决50%的问题,凸显低资源自然语言代码生成的困难。研究还分析了不同难度下的表现差异,并评估了解法独特性与计算效率(含运行时间和内存消耗)。结果表明,编程竞赛基准对评估大模型具有重要价值,尤其在非主流语言中。本工作为多语言代码生成与推理增强模型研究铺平道路。数据集、解析脚本、生成与评估流程均开源,详见https://huggingface.co/datasets/NLPForUA/ua-code-bench。

原文摘要 · Abstract (English)

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.

编程评测低资源语言代码生成多语言

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。