paperbot · PL 论文追踪

全部论文 待读 收藏

P1 Debugging with intelligence via probabilistic inference

基于概率推断的智能调试
ICSE Proceedings of the 40th International Conference on Software Engineering2018匹配度 7/10 · 论文将调试建模为概率推断,并融合人类知识与程序语义,属于用户关注的贝叶斯程序分析方向;但它不涉及 LLM/Agent,也不是静态分析或浮点程序分析,因此与当前 PL↔AI 交叉重点部分匹配。引用 21 inbox
Zhaogui Xu, Shiqing Ma, Xiangyu Zhang, Shuofei Zhu, Baowen Xu
crossref: 2026-09-12

AI 速览

一句话:提出概率推断调试技术,融合人类推理与程序语义以定位最可能故障语句。

本文面向仅有单次失败执行、缺少其他通过/失败运行参考的调试场景,此时调试存在大量不确定性,例如应优先检查哪些变量。作者将调试建模为概率推断问题:为每个执行的语句实例和变量的正确/故障状态引入随机变量,并把人类知识、类人推理规则与程序语义表示为条件概率分布(概率约束)。通过求解这些约束,推断出最可能的故障语句。实验表明,该技术能高效精确定位一组真实程序缺陷的根因,且所需开发者交互次数远少于未编码人类智能的近期方法;用户研究也显示其显著提升了调试生产力。

问题
在仅有一次失败执行、无其他通过/失败运行可比较时,调试包含大量不确定性,传统自动化方法难以有效定位根因。
方法
将调试建模为概率推断,用随机变量表示语句实例和变量正确/故障的可能性,并用条件概率分布编码人类知识、类人推理规则与程序语义,求解概率约束以识别最可能故障语句。
评估
在真实世界缺陷集上评估根因定位效果,统计与开发者交互次数,并与未编码人类智能的近期方法对比;同时通过用户研究衡量生产力提升。
原文摘要(Abstract)

We aim to debug a single failing execution without the assistance from other passing/failing runs. In our context, debugging is a process with substantial uncertainty - lots of decisions have to be made such as what variables shall be inspected first. To deal with such uncertainty, we propose to equip machines with human-like intelligence. Specifically, we develop a highly automated debugging technique that aims to couple human-like reasoning (e.g., dealing with uncertainty and fusing knowledge) with program semantics based analysis, to achieve benefits from the two and mitigate their limitations. We model debugging as a probabilistic inference problem, in which the likelihood of each executed statement instance and variable being correct/faulty is modeled by a random variable. Human knowledge, human-like reasoning rules and program semantics are modeled as conditional probability distributions, also called probabilistic constraints. Solving these constraints identifies the most likely faulty statements. Our results show that the technique is highly effective. It can precisely identify root causes for a set of real-world bugs in a very small number of interactions with developers, much smaller than a recent proposal that does not encode human intelligence. Our user study also confirms that it substantially improves human productivity.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot4475,
  title = {Debugging with intelligence via probabilistic inference},
  author = {Zhaogui Xu and Shiqing Ma and Xiangyu Zhang and Shuofei Zhu and Baowen Xu},
  booktitle = {ICSE},
  year = {2018},
  doi = {10.1145/3180155.3180237}
}