paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Understanding Automatically-Generated Patches Through Symbolic Invariant Differences

通过符号不变式差异理解自动生成的补丁
ASE 2019 34th IEEE/ACM International Conference on Automated Software Engineering (ASE)2019匹配度 4/10 · 论文使用形式不变式与蕴含距离分析自动生成补丁,涉及程序验证与自动修复,但未结合 LLM/Agent,也不属于浮点程序分析或贝叶斯程序分析;与用户“LLM/Agent 改进静态分析/形式化验证”或“静态分析用于 ML/Agentic 程序”的核心方向仅有间接关联。引用 21 inbox
Padraic Cashin, Carianne Martinez, Westley Weimer, Stephanie Forrest
crossref: 2026-09-12

AI 速览

一句话:利用形式不变式集合的差异与蕴含距离刻画自动生成补丁的语义相似性,并聚类以减轻人工审查负担。

自动生成补丁的部署受制于开发者信任,而理解补丁效果是建立信任的关键。本文提出用形式不变式集合的差异来刻画补丁差异,并用不变式空间中的蕴含距离度量补丁相似性:若一个补丁与另一个相似,它常包含相同修改及额外行为,这一模式可由逻辑蕴含捕捉。作者用定理证明器验证不同程序所蕴含不变式之间的蕴含关系,并发现字符串距离是高效启发式。基于补丁距离构建层次结构以突出相似补丁;在300多个补丁上评估,能正确将程序按语义相似性聚类,将需人工考虑语义不同补丁的数量减少50%以上,从而加速建立对自动修复的信任。

问题
自动生成补丁难以被开发者信任,核心困难是理解补丁效果并识别语义相似的补丁。
方法
将补丁表示为形式不变式集合,以不变式间逻辑蕴含定义距离并用定理证明器验证,进而用字符串距离近似,构建补丁相似性层次。
评估
在300多个补丁上评估聚类正确性,并显示可减少50%以上需人工审查的语义不同补丁。
原文摘要(Abstract)

Developer trust is a major barrier to the deployment of automatically-generated patches. Understanding the effect of a patch is a key element of that trust. We find that differences in sets of formal invariants characterize patch differences and that implication-based distances in invariant space characterize patch similarities. When one patch is similar to another it often contains the same changes as well as additional behavior; this pattern is well-captured by logical implication. We can measure differences using a theorem prover to verify implications between invariants implied by separate programs. Although effective, theorem provers are computationally intensive; we find that string distance is an efficient heuristic for implication-based distance measurements. We propose to use distances between patches to construct a hierarchy highlighting patch similarities. We evaluated this approach on over 300 patches and found that it correctly categorizes programs into semantically similar clusters. Clustering programs reduces human effort by reducing the number of semantically distinct patches that must be considered by over 50%, thus reducing the time required to establish trust in automatically generated repairs.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot5278,
  title = {Understanding Automatically-Generated Patches Through Symbolic Invariant Differences},
  author = {Padraic Cashin and Carianne Martinez and Westley Weimer and Stephanie Forrest},
  booktitle = {ASE},
  year = {2019},
  doi = {10.1109/ase.2019.00046}
}