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

SURGE: 大型语言模型作为通用代理代码执行器的潜力

SURGE: On the Potential of Large Language Models as General-Purpose Surrogate Code Executors

Department of Computer Science and Technology, Tsinghua(清华大学计算机科学与技术系);Institute for Interdisciplinary Information Sciences (IIIS), Tsinghua(清华大学交叉信息研究院)

Bohan Lyu, Siqiao Huang, Zichen Liang

AI总结:

提出SURGE基准,包含1160个问题覆盖8个关键方面,通过评估21个开源和专有LLM,研究其作为代码执行预测代理模型的可行性、扩展律、数据效率和预测准确性。

摘要:

神经代理模型是数据挖掘中强大且高效的工具。同时,大型语言模型(LLM)在代码相关任务(如生成和理解)中展示了卓越的能力。然而,一个同样重要但尚未充分探索的问题是,LLM是否可以作为代码执行预测的代理模型。为了系统研究这一问题,我们引入了SURGE,一个包含1160个问题的综合基准,覆盖8个关键方面:多语言编程任务、竞赛级编程问题、仓库级代码分析、高成本科学计算、时间复杂度密集型算法、有缺陷代码分析、依赖特定编译器或执行环境的程序,以及形式化数学证明验证。通过对21个开源和专有LLM的广泛分析,我们研究了扩展律、数据效率和预测准确性。我们的发现揭示了LLM作为计算过程高效代理的可行性的重要见解。基准和评估框架可在https://github.com/Imbernoulli/SURGE获取。

英文摘要:

Neural surrogate models are powerful and efficient tools in data mining. Meanwhile, large language models (LLMs) have demonstrated remarkable capabilities in code-related tasks, such as generation and understanding. However, an equally important yet underexplored question is whether LLMs can serve as surrogate models for code execution prediction. To systematically investigate it, we introduce SURGE, a comprehensive benchmark with $1160$ problems covering $8$ key aspects: multi-language programming tasks, competition-level programming problems, repository-level code analysis, high-cost scientific computing, time-complexity-intensive algorithms, buggy code analysis, programs dependent on specific compilers or execution environments, and formal mathematical proof verification. Through extensive analysis of $21$ open-source and proprietary LLMs, we examine scaling laws, data efficiency, and predictive accuracy. Our findings reveal important insights about the feasibility of LLMs as efficient surrogates for computational processes. The benchmark and evaluation framework are available at https://github.com/Imbernoulli/SURGE.

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

↑