arXiv:2411.04372cs.LGcs.AI2024-11NeurIPS被引 1

用数学序列生成任务测试大模型的推理与编程能力

Benchmarking Large Language Models with Integer Sequence Generation Tasks

  • 基于OEIS数据构建无查表的序列生成评测集
  • 推理专用模型在复杂任务上准确率显著提升
  • 适合关注大模型数学推理能力的研究者

我们提出一个新基准,用于严格评估大语言模型(LLMs)在数学推理和算法代码生成方面的能力。该基准基于在线整数序列百科全书(OEIS)中的整数序列生成任务,要求模型在不使用查表的情况下,准确高效地生成计算这些序列的Python代码。评估覆盖1000个精心选取的OEIS序列,分为‘易’和‘难’两类,其中一半为早期经典序列,另一半为近期新增以避免训练数据污染。为防止模型依赖记忆,我们引入自动化作弊检测机制,通过与人类专家评估对比验证其有效性。实验表明,推理专用模型(如OpenAI的o3、o3-mini、o4-mini及Google的Gemini 2.5-pro)在复杂任务上表现显著优于非推理型模型。然而,整体在困难序列上的性能仍较差,凸显算法推理能力的持续挑战。该基准揭示了当前顶级模型在可靠解决复杂数学推理任务方面的局限性,强调了进一步改进的必要性。

原文摘要 · Abstract (English)

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.

数学推理代码生成评测基准

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