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

用整数序列生成任务对大型语言模型进行基准测试

Benchmarking Large Language Models with Integer Sequence Generation Tasks

Earth and Environmental Sciences Division Los Alamos National Laboratory(地球与环境科学 division 洛斯阿拉莫斯国家实验室);Theoretical Division Los Alamos National Laboratory(理论 division 洛斯阿拉莫斯国家实验室);Computational Sciences Division Los Alamos National Laboratory(计算科学 division 洛斯阿拉莫斯国家实验室)

Daniel O'Malley, Manish Bhattarai, Nishath Rajiv Ranasinghe, Erick Draayer, Javier Santos

AI总结:

该研究构建了一个基于OEIS整数序列生成任务的基准,通过自动作弊检测评估多个前沿LLM的数学推理与代码合成能力,发现推理专用模型在困难序列上仍表现不佳,揭示了算法推理的持续挑战。

摘要:

我们提出了一个新颖的基准,旨在严格评估大型语言模型(LLMs)在数学推理和算法代码合成任务中的能力。该基准包含来自整数序列在线百科全书(OEIS)的整数序列生成任务,测试LLMs在不使用查找表的情况下准确高效地生成Python代码来计算这些序列的能力。我们的综合评估涵盖了来自OpenAI(包括专注于推理的o系列)、Anthropic、Meta和Google的领先模型,在精心挑选的1000个OEIS序列上进行,这些序列被分类为“简单”或“困难”。其中一半是OEIS早期的经典序列,另一半是最近添加的,以避免与模型训练数据发生污染。为了防止模型利用记忆的序列值,我们引入了一种自动作弊检测机制,用于标记查找表的使用情况,并通过与人类专家评估的比较进行验证。实验结果表明,推理专用模型(OpenAI的o3、o3-mini、o4-mini以及Google的Gemini 2.5-pro)在准确率上相比非推理模型取得了显著提升,尤其是在更复杂的任务上。然而,模型在困难序列上的整体表现较差,凸显了算法推理中持续存在的挑战。我们的基准为最先进LLMs的优势和局限性提供了重要见解,特别强调了需要进一步进步才能可靠地以算法方式解决复杂数学推理任务。

英文摘要:

We present a novel benchmark designed to rigorously evaluate the capabilities of large language models (LLMs) in mathematical reasoning and algorithmic code synthesis tasks. The benchmark comprises integer sequence generation tasks sourced from the Online Encyclopedia of Integer Sequences (OEIS), testing LLMs' abilities to accurately and efficiently generate Python code to compute these sequences without using lookup tables. Our comprehensive evaluation includes leading models from OpenAI (including the specialized reasoning-focused o-series), Anthropic, Meta, and Google across a carefully selected set of 1000 OEIS sequences categorized as ``easy'' or ``hard.'' Half of these sequences are classical sequences from the early days of OEIS and half were recently added to avoid contamination with the models' training data. To prevent models from exploiting memorized sequence values, we introduce an automated cheating detection mechanism that flags usage of lookup tables, validated by comparison with human expert evaluations. Experimental results demonstrate that reasoning-specialized models (o3, o3-mini, o4-mini from OpenAI, and Gemini 2.5-pro from Google) achieve substantial improvements in accuracy over non-reasoning models, especially on more complex tasks. However, overall model performance on the hard sequences is poor, highlighting persistent challenges in algorithmic reasoning. Our benchmark provides important insights into the strengths and limitations of state-of-the-art LLMs, particularly emphasizing the necessity for further advancements to reliably solve complex mathematical reasoning tasks algorithmically.

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

↑