paperbot · PL 论文追踪

全部论文 待读 收藏

P1 Mitigating Implicit Inconsistencies in Patch Porting

缓解补丁移植中的隐式不一致
FSE Proceedings of the 34th ACM International Conference on the Foundations of Software Engineering2026匹配度 5/10 · 论文将 LLM 与编译器、代码分析工具协作用于补丁移植,属于 LLM 辅助程序分析与软件维护的交叉,与用户对 AI→PL、LLM+代码分析协作的兴趣有一定重合;但核心任务是补丁移植,而非静态分析/形式化验证本身,也不涉及 ML 系统、Agentic 程序、浮点程序分析或贝叶斯程序分析。引用 0 inbox
Shengyi Pan, Zhongxin Liu, Jiayuan Zhou, Xing Hu, Xin Xia, Shanping Li
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:提出 MIP,让 LLM、编译器与代码分析工具协作,自动消解补丁移植中需要跨库全局映射知识的隐式不一致。

将补丁从源代码库及时移植到其变体(fork、分支)对遏制缺陷与漏洞传播至关重要。现有自动化补丁移植方法主要处理补丁局部上下文中可见的不一致,对需要代码库间全局映射知识的“隐式不一致”(implicit inconsistencies)无能为力,这类非局部不一致对开发者而言更难解决。本文提出 MIP,让 LLM、编译器与代码分析工具协同工作:当源标识符在目标代码库中存在时,借助编译器诊断信息;否则从两个代码库中检索相互匹配的代码片段对,作为消解所需的映射知识。在跨 fork 与跨分支两种代表性移植场景上的实验表明,MIP 成功解决的补丁数量均为最佳基线的两倍以上;与工业合作伙伴开展的用户研究也验证了其实用性。

问题
补丁移植中有一类不一致在补丁的局部上下文中不可见,需要代码库之间的全局映射知识才能消解,现有自动化方法难以处理,开发者也只能靠人工排查。
方法
MIP 联合 LLM、编译器与代码分析工具:若源标识符在目标代码库中存在,则利用编译器诊断信息定位并修复;否则检索两个代码库中匹配的代码片段对,作为映射知识辅助消解。
评估
在跨 fork 与跨分支两类代表性补丁移植场景上与基线对比,MIP 成功解决的补丁数均超过最佳基线两倍以上,并通过与工业合作伙伴的用户研究验证了实用性。
原文摘要(Abstract)

Promptly porting patches from a source codebase to its variants (e.g., forks and branches) is essential for mitigating propagated defects and vulnerabilities. Recent studies have explored automated patch porting to reduce manual effort and delay, but existing approaches mainly handle inconsistencies visible in a patch's local context and struggle with those requiring global mapping knowledge between codebases. We refer to such non-local inconsistencies as implicit inconsistencies. Implicit inconsistencies pose greater challenges for developers to resolve due to their non-local nature. To address them, we propose MIP, which enables collaboration among an LLM, a compiler, and code analysis utilities. MIP adopts different strategies for different cases: when source identifiers exist in the target codebase, it leverages compiler diagnostics; otherwise, it retrieves matched code segment pairs from the two codebases as mapping knowledge for mitigation. Experiments on two representative scenarios, cross-fork and cross-branch patch porting, show that MIP successfully resolves more than twice as many patches as the best-performing baseline in both settings. A user study with our industry partner further demonstrates its practical effectiveness.

链接与引用

DOI 原文 · arXiv · PDF(开放获取) · DBLP

BibTeX
@inproceedings{abs-2604-01680,
  title = {Mitigating Implicit Inconsistencies in Patch Porting},
  author = {Shengyi Pan and Zhongxin Liu and Jiayuan Zhou and Xing Hu and Xin Xia and Shanping Li},
  booktitle = {FSE},
  year = {2026},
  doi = {10.1145/3803437.3805248}
}