arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.03568cs.LGcs.AI
收藏

代码模拟作为大语言模型中高阶任务的代理

Code Simulation as a Proxy for High-order Tasks in Large Language Models

Department of Computer Science, University of Oxford;Faculty of Linguistics, Philology;Phonetics, University of Oxford;Department of Engineering, University of Oxford;Department of Computer Science, ETH Zurich;Faculty of Engineering;Physical Sciences, University of Leeds;University of Salerno;The Alan Turing Institute

Emanuele La Malfa, Christoph Weinhuber, Orazio Torre, Fangru Lin, X. Angelo Huang, Samuele Marro, Anthony Cohn, Nigel Shadbolt, Michael Wooldridge

AI总结:

本文提出用合成代码模拟任务作为自然推理任务的代理,系统评估大语言模型的执行与推理能力,发现其执行过程脆弱、受记忆化影响且依赖模式识别。

摘要:

许多推理、规划和问题求解任务具有内在的算法性质:正确模拟每一步是正确解决这些任务的充分条件。我们收集了自然性和合成性推理任务对,以评估大语言模型(LLM)的能力。虽然自然性任务通常需要仔细的人工设计,但我们表明,在许多情况下,合成数据是一个良好的代理,并且在大规模收集时容易得多。我们利用编程中的常见构造作为自然性推理任务构建块的对应物,例如直线程序、包含关键路径的代码以及近似和冗余指令。我们进一步通过排序算法和嵌套循环评估LLM在排序问题和重复操作上的能力。我们的合成数据集进一步揭示,尽管最强大的LLM表现出相对较强的执行能力,但该过程是脆弱的:它受到记忆化的负面影响,并且似乎严重依赖模式识别。我们的贡献建立在以合成方式测试LLM推理能力的基础上,作为人工标注问题的可扩展补充。

英文摘要:

Many reasoning, planning, and problem-solving tasks share an intrinsic algorithmic nature: correctly simulating each step is a sufficient condition to solve them correctly. We collect pairs of naturalistic and synthetic reasoning tasks to assess the capabilities of Large Language Models (LLM). While naturalistic tasks often require careful human handcrafting, we show that synthetic data is, in many cases, a good proxy that is much easier to collect at scale. We leverage common constructs in programming as the counterpart of the building blocks of naturalistic reasoning tasks, such as straight-line programs, code that contains critical paths, and approximate and redundant instructions. We further assess the capabilities of LLMs on sorting problems and repeated operations via sorting algorithms and nested loops. Our synthetic datasets further reveal that while the most powerful LLMs exhibit relatively strong execution capabilities, the process is fragile: it is negatively affected by memorisation and seems to rely heavily on pattern recognition. Our contribution builds upon synthetically testing the reasoning capabilities of LLMs as a scalable complement to handcrafted human-annotated problems.

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

↑