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

SwiftEval:为LLM生成代码评估开发特定语言基准

SwiftEval: Developing a Language-Specific Benchmark for LLM-generated Code Evaluation

MacPaw

Ivan Petrukha, Yana Kurliak, Nataliia Stulova

AI总结:

针对现有基准难以高质量评估Swift代码生成的问题,提出首个手工制作的Swift基准SwiftEval,评估44个模型并发现需语言特定特性的问题得分显著下降。

摘要:

近年来,大型语言模型(LLMs)在代码生成方面展示了显著的进步。然而,大多数评估基准主要面向Python,使得难以高质量地评估其他编程语言(如Swift)。通过检查广泛建立的多语言基准(如HumanEval-XL和MultiPL-E),我们发现了其Swift组件特有的关键问题,使其不足以甚至无法用于评估LLM在Swift上的编码能力。与优先通过自动翻译Python中心基准以实现快速扩展和泛化的现有方法不同,我们采用质量优先于数量的方法论。我们提出了SwiftEval,这是首个面向Swift的基准,包含28个精心手工制作的问题,并在其上评估了44个流行的Code LLMs。结果显示,在需要语言特定特性的问题上,LLM得分显著下降,这在较小规模的模型中尤为明显。

英文摘要:

In recent years, large language models (LLMs) have showcased significant advancements in code generation. However, most evaluation benchmarks are primarily oriented towards Python, making it difficult to evaluate other programming languages, such as Swift, with high quality. By examining widely established multilingual benchmarks like HumanEval-XL and MultiPL-E, we identified critical issues specific to their Swift components, making them insufficient or even irrelevant for assessing LLM coding capabilities on Swift. Unlike these existing approaches, which prioritize rapid scaling and generalization by automatically translating Python-centric benchmarks with LLMs, we adopt a quality-over-quantity methodology. We present SwiftEval, the first Swift-oriented benchmark consisting of 28 carefully hand-crafted problems, and evaluate 44 popular Code LLMs on it. Our results show significant LLM scores drop for problems requiring language-specific features, most noticeable in the models of smaller sizes.

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

↑