arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2503.05703cs.LGcs.AIcs.PL
收藏

我无法执行的东西,我就无法理解:在程序执行轨迹上训练和评估大语言模型

What I cannot execute, I do not understand: Training and Evaluating LLMs on Program Execution Traces

University of Edinburgh(爱丁堡大学);Meta AI
Jordi Armengol-Estapé, Quentin Carbonneaux, Tianjun Zhang, Aram H. Markosyan, Volker Seeker, Chris Cummins, Melanie Kambadur, Michael F. P. O'Boyle, Sida Wang, … 展开作者

Jordi Armengol-Estapé, Quentin Carbonneaux, Tianjun Zhang, Aram H. Markosyan, Volker Seeker, Chris Cummins, Melanie Kambadur, Michael F. P. O'Boyle, Sida Wang, Gabriel Synnaeve, Hugh James Leather

AI总结:

本文提出 Execution Tuning(E.T.)方法,通过显式建模程序执行轨迹训练大语言模型,无需人工测试标注,在 CruxEval 和 MBPP 上取得约 80% 准确率,并证明动态草稿板在长执行任务中具有优势。

摘要:

代码生成与理解是大语言模型(LLMs)的关键能力,因此大多数 LLMs 都在代码数据上进行预训练和微调。然而,这些数据集通常将代码视为静态字符串,很少利用其执行过程中的动态信息。在以往轨迹建模工作的基础上,我们研究了 Execution Tuning(E.T.),这是一种训练过程,在该过程中我们显式地对真实世界的程序执行轨迹进行建模,而无需人工测试标注。我们在输出预测任务上,针对不同的执行轨迹粒度(行级和指令级)和策略训练并评估模型,在 CruxEval 和 MBPP 上取得了约 80% 的准确率,并展示了动态草稿板(即由模型更新的自包含中间计算,而不是作为过去计算历史累积)在长执行过程(最多 14k 步)中的优势。最后,我们讨论了 E.T. 的实际应用。

英文摘要:

Code generation and understanding are critical capabilities for large language models (LLMs). Thus, most LLMs are pretrained and fine-tuned on code data. However, these datasets typically treat code as static strings and rarely exploit the dynamic information about their execution. Building upon previous work on trace modeling, we study Execution Tuning (E.T.), a training procedure in which we explicitly model real-world program execution traces without requiring manual test annotations. We train and evaluate models on different execution trace granularities (line and instruction-level) and strategies on the task of output prediction, obtaining around 80% accuracy on CruxEval and MBPP, and showing the advantages of dynamic scratchpads (i.e., self-contained intermediate computations updated by the model rather than accumulated as a history of past computations) on long executions (up to 14k steps). Finally, we discuss E.T.'s practical applications.

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

↑