arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.01257cs.CRcs.SE
收藏

对基于大语言模型的自动补丁架构的系统研究

A Systematic Study of LLM-Based Architectures for Automated Patching

Texas A&M University(德克萨斯农工大学)

Qingxiao Xu, Ze Sheng, Zhicheng Chen, Jeff Huang

AI总结:

本文系统研究了基于LLM的自动补丁架构,通过统一基准评估四种范式,揭示了不同架构在效率、灵活性和泛化能力上的权衡,发现通用代码代理在性能上表现最优。

摘要:

大语言模型(LLMs)在自动补丁方面展现出了潜力,但其有效性强烈依赖于如何将其集成到补丁系统中。尽管先前的工作探讨了提示策略和单个代理设计,但该领域缺乏对补丁架构的系统性比较。在本文中,我们使用统一的基准和评估框架,对四种基于LLM的补丁范式进行了受控评估——固定流程、单代理系统、多代理系统和通用代码代理。我们分析了在真实世界漏洞任务中补丁的正确性、失败模式、token使用情况和执行时间。我们的结果揭示了清晰的架构权衡:固定流程效率高但易碎,单代理系统在灵活性和成本之间取得平衡,而多代理设计在泛化能力上有所提升,但以显著增加的开销和复杂任务中推理漂移的风险为代价。令人惊讶的是,通用代码代理在整体补丁性能上表现最强,受益于支持在不同漏洞类型之间有效适应的通用工具接口。总体而言,我们展示了架构设计和迭代深度,而非模型能力本身,主导了LLM自动补丁的可靠性和成本。

英文摘要:

Large language models (LLMs) have shown promise for automated patching, but their effectiveness depends strongly on how they are integrated into patching systems. While prior work explores prompting strategies and individual agent designs, the field lacks a systematic comparison of patching architectures. In this paper, we present a controlled evaluation of four LLM-based patching paradigms -- fixed workflow, single-agent system, multi-agent system, and general-purpose code agents -- using a unified benchmark and evaluation framework. We analyze patch correctness, failure modes, token usage, and execution time across real-world vulnerability tasks. Our results reveal clear architectural trade-offs: fixed workflows are efficient but brittle, single-agent systems balance flexibility and cost, and multi-agent designs improve generalization at the expense of substantially higher overhead and increased risk of reasoning drift on complex tasks. Surprisingly, general-purpose code agents achieve the strongest overall patching performance, benefiting from general-purpose tool interfaces that support effective adaptation across vulnerability types. Overall, we show that architectural design and iteration depth, rather than model capability alone, dominate the reliability and cost of LLM-based automated patching.

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

↑