paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Reasoning Runtime Behavior of a Program with LLM: How Far are We?

用 LLM 推理程序的运行时行为:我们还有多远?
ICSE 2025 IEEE/ACM 47th International Conference on Software Engineering (ICSE)2025匹配度 3/10 · 该论文主要评估代码 LLM 的运行时行为推理与增量一致性,属于 LLM 能力基准评测;它不涉及静态分析、Agentic 程序、浮点程序分析或贝叶斯程序分析,与研究画像的核心交叉点不直接匹配。虽然代码执行行为推理与程序分析有邻近性,但研究目标偏向评估 LLM 本身,而非用 LLM 改进 PL 或把静态分析用于 LLM 系统。引用 17 inbox
Junkai Chen, Zhiyuan Pan, Xing Hu, Zhenhao Li, Ge Li, Xin Xia
crossref: 2026-09-12

AI 速览

一句话:提出 REval 框架,从运行时行为推理与增量一致性两方面评估代码 LLM 的程序执行推理能力。

现有代码推理基准多只关注程序的输入输出,忽略执行过程中的中间行为以及推理时的逻辑一致性,因此难以充分评估代码 LLM 的程序执行推理能力。本文提出 REval 评估框架,利用已有代码基准并适配生成新基准,对代码 LLM 进行运行时行为推理与增量一致性评估。大规模实证研究显示,大多数 LLM 表现不佳:运行时行为推理平均准确率仅为 44.4%,增量一致性平均 IC 分数仅为 10.3。该结果反映当前代码 LLM 的程序推理能力仍亟待提升,社区需要加强相关研究。

问题
现有代码推理基准主要评估程序输入输出预测,忽略程序执行中间行为与推理逻辑一致性,无法充分衡量代码 LLM 对程序运行时行为的推理能力。
方法
提出 REval 框架,基于已有代码基准构造新基准,并从运行时行为推理和增量一致性两个维度系统评估代码 LLM。
评估
开展大规模实证研究,多数 LLM 的运行时行为推理平均准确率仅 44.4%,增量一致性平均 IC 分数仅 10.3,表明当前模型能力仍严重不足。
原文摘要(Abstract)

Large language models for code (i.e., code LLMs) have shown strong code understanding and generation capabilities. To evaluate the capabilities of code LLMs in various aspects, many benchmarks have been proposed (e.g., HumanEval and ClassEval). Code reasoning is one of the most essential abilities of code LLMs (i.e., predicting code execution behaviors such as program output and execution path), but existing benchmarks for code reasoning are not sufficient. Typically, they focus on predicting the input and output of a program, ignoring the evaluation of the intermediate behavior during program execution, as well as the logical consistency (e.g., the model should not give the correct output if the prediction of execution path is wrong) when performing the reasoning. To address these problems, in this paper, we propose a framework, namely$\boldsymbol{\mathcal{R}}\mathbf{Eval}$, for evaluating code reasoning abilities and consistency of code LLMs with program execution. We utilize existing code benchmarks and adapt them to new benchmarks within our framework. A large-scale empirical study is conducted and most LLMs show unsatisfactory performance on both Runtime Behavior Reasoning (i.e., an average accuracy of 44.4%) and Incremental Consistency Evaluation (i.e., an average IC score of 10.3). Evaluation results of current code LLMs reflect the urgent need for the community to strengthen the code reasoning capability of code LLMs. Our code, data and$\boldsymbol{\mathcal{R}}\mathbf{Eval}$leaderboard are available at https://r-eval.github.io.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot8812,
  title = {Reasoning Runtime Behavior of a Program with LLM: How Far are We?},
  author = {Junkai Chen and Zhiyuan Pan and Xing Hu and Zhenhao Li and Ge Li and Xin Xia},
  booktitle = {ICSE},
  year = {2025},
  doi = {10.1109/icse55347.2025.00012}
}