arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.09678cs.AIcs.LGcs.SE
收藏

EsoLang-Bench: 通过奇特编程语言评估大语言模型的真实推理能力

EsoLang-Bench: Evaluating Genuine Reasoning in Large Language Models via Esoteric Programming Languages

Lossfunk

Aman Sharma, Paras Chopra

AI总结:

EsoLang-Bench通过五种奇特编程语言评估大语言模型在分布外编程语言上的推理能力,发现前沿模型在处理陌生语言时存在显著能力差距。

摘要:

大型语言模型在代码生成基准测试中接近天花板性能,但大多数流行基准(如SWE-bench和HumanEval)使用的编程语言(如Python、JavaScript)均在训练分布内。为了研究LLM在陌生编程语言上的性能,我们引入EsoLang-Bench,该基准使用五种奇特编程语言(Brainfuck、Befunge-98、Whitespace、Unlambda和Shakespeare)。所有五种所选的奇特语言都是图灵完备的,因此与Python或JavaScript一样,算法问题原则上可以在每种语言中解决。然而,这些语言对LLM来说是陌生的,这使它们成为评估分布外性能的良好代理。奇特语言的陌生性包括:(i)硬设计的原始语素;(ii)在预训练语料库中的表示显著较少(比Python少340倍到超过60,000倍的公共GitHub仓库);(iii)几乎没有部署价值,这使得在后训练数据中有针对性地包含经济上不合理。我们评估了五个前沿模型在五个提示策略下的表现,发现存在显著的能力差距。相同的80个问题用Python或JavaScript表达时在顶级前沿模型上达到100%的准确性,而等效的奇特版本仅达到0-11%的准确性。少样本学习和自我反思也未能缩小这一差距。因此,EsoLang-Bench为测量前沿模型在训练分布外编程语言上算法问题解决能力提供了抗污染的测试平台。

英文摘要:

Large language models achieve near-ceiling performance on code generation benchmarks, yet most of the programming languages used by popular benchmarks such as SWE-bench and HumanEval (e.g. Python, JavaScript) are squarely in-distribution. They appear at scale in pre-training corpora and are heavily reinforced during post-training. To study LLM performance on unfamiliar programming languages, we introduce EsoLang-Bench, a benchmark using five esoteric programming languages (Brainfuck, Befunge-98, Whitespace, Unlambda, and Shakespeare). All five of our chosen esoteric languages are Turing-complete, so the same algorithmic problems that are solvable in Python or JavaScript are in principle solvable in each of them. Yet, they are unfamiliar to LLMs which makes them a good proxy for evaluating out-of-distribution performance. The unfamiliarity of esoteric languages comprises of: (i) the hard-by-design primitives comprising the language; (ii) substantially less representation in pre-training corpora (340x to over 60,000x fewer public GitHub repositories than Python); (iii) negligible deployment value, which makes targeted inclusion in post-training data economically irrational. We evaluate five frontier models across five prompting strategies and find a dramatic capability gap. The same 80 problems expressed in Python or JavaScript reach 100% accuracy on top frontier models, while the equivalent esoteric versions score only 0-11%. Few-shot learning and self-reflection also fail to close this gap. EsoLang-Bench therefore provides a contamination-resistant testbed for measuring how well frontier models generalise algorithmic problem-solving to programming languages outside their training distribution.

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

↑