Manuscript Offprint
arXiv:2610.32345DeepAVR: Deep Analysis via Multi-Agent Collaboration for Automated Vulnerability Repair
Woorim Han
Seoul National University
Seoul, Republic of Korea
Hyunjun Kim
Myongji University
Seoul, Republic of Korea
Brian Junekyu Lee
Georgia Institute of Technology
Atlanta, United States
Kyeongmin Kim
UNIST
Ulsan, Republic of Korea
Younghan Lee
Sungshin Women's University
Seoul, Republic of Korea
Hyungon Moon
UNIST
Ulsan, Republic of Korea
Yunheung Paek
Seoul National University
Seoul, Republic of Korea
Abstract—Automated Vulnerability Repair (AVR) has emerged as a critical defense against software security flaws, aiming to triage and fix bugs autonomously. Early LLM-based approaches focused on patch generation under the assumption of perfect fault localization, while recent end-to-end methods attempt to repair vulnerabilities directly from sanitizer logs. However, these methods often fail when the root cause is deeply hidden—either physically distant from the crash site or logically masked by interdependent errors—making the initial report insufficient. We propose DEEPAVR, a multi-agent framework for end-to-end AVR that performs deep analysis by transforming intermediate repair outcomes into structured diagnostic feedback. DEEPAVR decomposes repair into specialized roles—Fault Localization, Patch Generation, Compile Validation, Security Validation, Functionality Validation, and Patch Review—and routes feedback across these roles to iteratively refine both localization and patch hypotheses. In particular, DEEPAVR introduces patch-conditioned re-localization, which treats execution results from intermediate patches as diagnostic signals to uncover hidden root causes, and a root-cause-oriented patch review stage that detects symptom-level fixes and incomplete repairs beyond execution-based validation. Evaluation on the real-world C/C++ vulnerability repair dataset VulnLoc shows that DEEPAVR significantly outperforms prior methods, generating correct patches for 92.3% of vulnerabilities. Furthermore, results on SAN2VULN demonstrate strong generalization, with DEEPAVR effectively repairing vulnerabilities unseen during training.
Index Terms—automated vulnerability repair, multi-agent systems, large language models.
1. Introduction
The inherent complexity of modern software has contributed to the continued prevalence of security flaws, commonly referred to as vulnerabilities. This prevalence underscores the urgency of timely remediation of vulnerabilities. However, manual repair by experts is time-consuming and labor-intensive, making it difficult to keep up with the rapid emergence of new vulnerabilities, which motivates the need for automated approaches.
Automated program repair (APR) has received substantial attention as a promising direction to automatically address software defects [1]–[5]. While early APR research largely focused on general bug fixing to restore functional correctness, subsequent work has recognized that repairing security vulnerabilities—often termed automated vulnerability repair (AVR) [6]–[10]—demands more than restoring functional correctness; it must additionally eliminate exploitability. Unlike general bugs, patching vulnerabilities must often be undertaken without perfect specifications, relying instead on incomplete information such as sanitizer reports.
More recently, large language models (LLMs) have emerged as a promising paradigm for AVR [11]–[18]. Pre-trained on vast corpora of code, these models possess the capacity to comprehend program semantics and synthesize code, facilitating the automated generation of patches for a wide spectrum of vulnerability types. When coupled with repair-oriented prompting and program context, LLMs can produce candidate fixes without relying on manually crafted rules, and their generalization capacity makes them attractive for repairing previously unseen patterns [19], [20].
Although early studies assumed perfect fault localization (FL) [11], [12], [17]–[20], recent end-to-end solutions generate patches directly from a single Proof-of-Concept (PoC) [16] or the resulting sanitizer report [14], [15], a common form of vulnerability reporting. These methods
Equal contribution.
Corresponding authors.
move AVR closer to practical settings by integrating localization, patch generation, and validation into a single pipeline. For example, LoopRepair [16] combines Crash-Analysis [9]-based localization with iterative refinement, while SAN2PATCH [14] and PatchAgent [15] use LLM-based reasoning and tool-augmented interaction to repair vulnerabilities directly from sanitizer logs and retrieved code context. However, despite these advances, existing methods still struggle when the initial report provides only weak clues about the true root cause. Such weak signals commonly arise in two forms: physical distance, where the crash occurs far downstream from the silent root cause, and logical distance, where the reported error message captures only a symptom rather than the initiating defect. In these cases, patch generation can be misled by the immediate crash context, causing existing methods either to miss the underlying fault condition or to produce superficial fixes that silence the crash without repairing the underlying vulnerability.
We observe that this limitation largely stems from the fact that existing methods fall short of fully diagnostic iterative repair. In PatchAgent [15] and SAN2PATCH [14], validation is used primarily as a gate: it checks whether PoC execution and regression tests pass, but rarely exploits the specific nature of failures to revise the underlying root-cause hypothesis. LoopRepair [16] incorporates richer feedback through taint-trace-guided selection, yet it still refines patches largely within the repair locations and candidate space defined by its initial pipeline. As a result, when a candidate patch suppresses a crash through a symptom-level fix (e.g., local guards or early exits), these systems often lack a mechanism to recognize the deeper logical deficiency and steer repair toward a developer-level fix.
In this paper, we present DEEPAVR, a multi-agent framework for end-to-end AVR. Unlike prior iterative solutions, DEEPAVR handles weak signals through deep analysis, transforming intermediate repair outcomes into structured diagnostic feedback through three key design mechanisms. First, DEEPAVR adopts failure-aware role decomposition and structured feedback routing. It organizes repair into specialized agents for fault localization, patch generation, compilation, security, functionality validation, and patch review. Rather than repeatedly generating patches without diagnosing failures, each iteration produces structured diagnostic feedback from validation agents, which is routed to refine either localization or patch generation. This structured collaboration allows the system to progressively shift from crash symptoms toward root-cause fixes, even when initial signals are weak due to physical or logical distance from the defect.
Second, DEEPAVR introduces patch-conditioned re-localization to convert intermediate failures into stronger diagnostic signals. Applying a candidate patch can expose deeper defects by altering the type or location of the observed failure. DEEPAVR re-invokes the Fault Localization Agent on these updated reports, treating them as informative probes rather than noise. This enables the system to uncover root-cause candidates that are initially obscured, in contrast to prior approaches that either discard patches exhibiting new failure signals [16] or fail to systematically exploit execution feedback obtained after applying intermediate patches [15].
Third, DEEPAVR incorporates a root-cause-oriented patch review stage that complements execution-based validation. The Patch Review Agent identifies symptom-level fixes (e.g., guard-only edits), detects misplaced validation logic (e.g., applying checks in the callee instead of enforcing preconditions at the caller), and ensures patch completeness across logically equivalent sites. By providing targeted feedback on repair quality, this stage pushes patches toward root-cause-correct solutions beyond what PoC and regression testing alone can guarantee.
We evaluate DEEPAVR on two real-world benchmarks under standard end-to-end AVR settings [14], [16]. First, we evaluate DEEPAVR on VulnLoc [21], the standard benchmark used in prior end-to-end AVR work [9], [14], [16], enabling direct comparison. Out of 39 real-world vulnerabilities, DEEPAVR generates plausible patches for all 39 cases and correct patches for 36, substantially outperforming prior baselines [9], [14]–[16], [22]. Next, we evaluate DEEPAVR on SAN2VULN [14], specifically targeting vulnerabilities absent from the base model's training set to verify its generalization to unseen cases. DEEPAVR successfully generates correct patches for 22 out of 25 vulnerabilities, achieving an 88% success rate. Finally, we perform ablation studies to measure the contribution of each specialized agent, and analyze the token costs and total runtime of DEEPAVR. In summary, our key contributions are as follows:
• Failure-aware role decomposition and structured feedback routing. We present DEEPAVR, which performs deep analysis by transforming intermediate repair outcomes into structured diagnostic feedback and routing them to the most appropriate repair stage, enabling effective repair even with weak sanitizer signals.
• Patch-conditioned re-localization. We introduce an iterative repair mechanism that leverages execution feedback from intermediate patches to unmask deeply hidden diagnostic signals and refine root-cause hypotheses.
• Root-cause-oriented patch review. We design a Patch Review Agent that identifies symptom-level fixes and incomplete repairs, enforcing root-cause-oriented patch correctness beyond execution-based validation.
Parser-side allocation and growth. Since the sanitizer reports the failure as a UAF and highlights the allocation/free lifecycle, a repair agent is naturally drawn to the parser-side memory management code. In parser.c (Figure 1b),
==3908615==ERROR: AddressSanitizer: heap-use-after-free on address 0x** at pc 0x** bp 0x** sp 0x** READ of size 8 at 0x** thread T0 #0 0x** in getName /src/util/decompile.c:398 #1 0x** in decompileDELETE /src/util/decompile.c:3039 ...(Omitted) 0x** is located 0 bytes inside of 32-byte region [0x**,0x**] freed by thread T0 here: #0 0x** in realloc (libasan.so.4+0xed28) #1 0x** in parseSWF_ACTIONRECORD /src/util/parser.c:1008 ...(Omitted) previously allocated by thread T0 here: #0 0x** in __interceptor_calloc (libasan.so.4+0xed28) #1 0x** in parseSWF_ACTIONRECORD /src/util/parser.c:971 ...(Omitted) SUMMARY: AddressSanitizer: heap-use-after-free /src/util/decompile.c:398 in getName
(a) AddressSanitizer report for CVE-2018-8964 (heap-use-after-free).
/src/util/parser.c
966 case SWFACTION_PUSH: { 967 int end; 968 struct SWF_ACTIONPUSHPARAM *param; 969 ACT_BEGIN(SWF_ACTIONPUSH); 970 end = fileOffset + act->Length; 971 act->Params = (struct SWF_ACTIONPUSHPARAM )calloc( 1, sizeof(struct SWF_ACTIONPUSHPARAM)); 972 act->NumParam = 0; 973 974 while (fileOffset < end) { 975 param = &(act->Params[act->NumParam++]); 976 / ... parse one param into *param ... */ 977 act->Params = (struct SWF_ACTIONPUSHPARAM *)realloc(act->Params, (act->NumParam + 1) * sizeof(struct SWF_ACTIONPUSHPARAM)); 978 1009 } 1010 break; 1011 }
(b) Agent’s initial patch location derived from the crash report.
/src/util/decompile.c
case PUSH_CONSTANT: /* CONSTANT8 */
-
if (act->p.Constant8 > poolcounter) { -
SWF_warn("WARNING: retrieving constants not present in the pool.\n"); -
break; -
} -
t=malloc(strlennext(pool[act->p.Constant8])+1); -
strcpyext(t, pool[act->p.Constant8]); -
if(strlen(t)) /* Not a zero length string */
case PUSH_CONSTANT16: /* CONSTANT16 */
-
if (act->p.Constant16 > poolcounter) { -
SWF_warn("WARNING: retrieving constants not present in the pool.\n"); -
break; -
} -
t=malloc(strlennext(pool[act->p.Constant16])+1); -
strcpyext(t, pool[act->p.Constant16]); -
if(strlen(t)) /* Not a zero length string */
(c) Developer fix: bounds-check constant-pool access in decompile.c
/src/util/decompile.c
case PUSH_CONSTANT: /* CONSTANT8 */
-
if (!pool || act->p.Constant8 < 0 || act->p.Constant8 >= pool_size || !pool[act->p.Constant8]) return "this"; -
t = malloc(strlennext(pool[act->p.Constant8]) + 1); -
strcpyext(t, pool[act->p.Constant8]); -
if (strlen(t)) /* Not a zero length string */
case PUSH_CONSTANT16: /* CONSTANT16 */
-
if (!pool || act->p.Constant16 < 0 || act->p.Constant16 >= pool_size || !pool[act->p.Constant16]) return "this"; -
t = malloc(strlennext(pool[act->p.Constant16]) + 1); -
strcpyext(t, pool[act->p.Constant16]); -
if (strlen(t)) /* Not a zero length string */
(d) DEEPAVR's patch after patch-conditioned re-localization.
Figure 1: Logically distant vulnerability example (CVE-2018-8964 in libming, heap use-after-free).
the SWFACTION_PUSH handler allocates act->Params via calloc (line 971) and grows it via realloc (line 1008). Each iteration takes an element address, param = & (act->Params[act->NumParam++]) (line 975), writes through *param, and may then resize the underlying buffer. Viewed in isolation, this pattern suggests a plausible UAF hypothesis: if realloc moves the array, a previously taken element pointer could become dangling.
Decompiler-side dereference and developer fix. However, the true repair target lies in decompile.c,

Figure 2: Overall Workflow of DEEPAVR. The abbreviation FB stands for Feedback.
not in the parser-side allocation logic. As shown in Figure 1c, the decompiler performs constant-pool accesses such as pool[act->p.Constant8] and pool[act->p.Constant16]. If these indices are out of range, the lookup can return an invalid pointer that is later dereferenced, eventually surfacing as the UAF reported by ASan. The developer patch, therefore, adds bounds checks before the pool accesses, directly addressing the root cause. Developer-aligned repair via patch-conditioned re-localization. Here, the reported UAF is a downstream symptom, not the true repair target. A symptom-level parser-side patch may suppress it while leaving the root cause intact, causing the same PoC to expose a different vulnerability type (e.g., NULL-pointer dereference). Prior systems handle such pivots weakly: SAN2PATCH [14] simply retries, PatchAgent [15] reasons over the new report without applying the triggering patch, and LoopRepair [16] discards type-shifting candidates. In contrast, DEEPAVR applies the triggering patch and re-localizes on the resulting sanitizer report, treating the type shift as diagnostic evidence to move repair from the symptom to the underlying defect (Figure 1d).
3. Design
3.1. Overview
Problem setup. We focus on patching security vulnerabilities in realistic settings where the repair system operates on the full software codebase and a single PoC test case (i.e., a reliably reproducible bug trigger) that exposes the vulnerability. We note that not all automated program repair approaches adhere to this setting, as many assume access to exact fault localization [11], [12], [17], [18], [23]–[26], user-provided specifications, or explicit repair constraints.
In this section, we describe the design of DEEPAVR. We first present the overall multi-agent framework, each agent in the framework, and their feedback mechanisms ( 3.2). We then introduce patch-conditioned re-localization ( 3.3) and the Patch Review Agent ( 3.4), which together enable DEEPAVR to perform deep analysis across iterations, thereby producing effective patches even when the initial sanitizer report offers only weak signals due to physical or logical distance.
Figure 2 illustrates the end-to-end workflow of DEEP-AVR. Following the standard AVR decomposition into localization, patch generation, and validation [27], [28], DEEPAVR coordinates six role-specific LLM agents via structured feedback. Starting from a sanitizer report and the project source, the Fault Localization Agent ranks code regions likely to contain the root cause, and the Patch Generation Agent produces a candidate patch. Four validation agents (compile, security, functionality, and patch review) then build and execute the patched program: compilation checks structural validity, security validation reruns the PoC under sanitizers, functionality validation runs regression tests when available, and patch review performs a code-centric audit to reject symptom-level fixes and promote root-cause-aligned patches. Their outcomes are distilled into actionable feedback to refine either localization or patching—compilation and regression failures revise the patch, while security failures revise the localization. When security validation observes a change in vulnerability type, DEEPAVR retains the current patch and re-invokes fault localization on the updated report (patch-conditioned re-localization), using the new failure as diagnostic evidence to guide subsequent iterations.
3.2. Failure-Aware Role Decomposition and Feedback Routing
DEEPAVR’s first design principle is failure-aware role decomposition. Rather than treating intermediate repair outcomes as a binary validation signal, DEEPAVR distinguishes compilation, security, functionality, and review failures, routing each as diagnostic feedback to the stage best suited to correct the error. This subsection details how responsibilities, tool access, and feedback outputs are assigned across the six agents, enabling the system to recover evidence even when the root cause is distant from the crash site.
Role Decomposition. Each agent is controlled by a dedicated system prompt with a shared rule-based format specifying its objective, permitted tools, decision rules, and output schema. This keeps agents aligned with their roles, enforces least-privilege tool use, and standardizes the feedback exchanged across stages.
Fault Localization Agent moves beyond the crash site by analyzing the sanitizer report and tracing crash-related objects through the call stack. To recover evidence under weak signals, it inspects entry-to-call-site regions, retrieves full function context, and performs bounded expansion into sibling callees when earlier side effects may influence the failure. It returns a ranked list of candidate locations with concise rationales based on data-flow dependencies, violated invariants, and allocation-to-use mismatches.
Patch Generation Agent converts a selected candidate location and root-cause hypothesis into a minimal, scope-valid edit. It prioritizes fixes at the origin of the vulnerability, allowing guard-only or early-exit patches only as a fallback with explicit justification. To reduce malformed edits and hallucinated context, the agent re-reads the exact patch region immediately before emission and enforces structural validity, including balanced scopes and consistent control-flow structure.
Compile Validation Agent is restricted to patch application and recompilation. It cannot modify code beyond the provided patch or create new files. On failure, it summarizes the actionable diagnostics and maps them to likely structural issues in the patch, such as malformed replacement, missing declarations, or type mismatches, enabling targeted revision by the patch generation agent.
Security Validation Agent evaluates the patched program solely from a security perspective by rerunning the PoC under sanitizer instrumentation. It reports whether the sanitizer error disappears, persists with the same vulnerability type, or changes to a different type, and returns a concise evidence summary plus bug-type analysis to guide downstream routing. In particular, a changed vulnerability type triggers patch-conditioned re-localization.
Functionality Validation Agent checks behavioral preservation by running regression tests when available. Instead of returning raw logs, it diagnoses likely causes of behavioral regressions, such as overly restrictive checks, altered control flow, or changed assumptions, and returns targeted guidance to patch generation. When tests are unavailable, it performs a lightweight patch-impact analysis based on the surrounding code.
Patch Review Agent performs code-review-style checks beyond PoC execution. It flags symptom-oriented edits, detects misplaced validation logic, and checks patch completeness across nearby, logically equivalent sites. It returns either a pass decision or concrete revision suggestions grounded in the surrounding code context.
Tool Support. Table 1 summarizes the tools available to DEEPAVR. They fall into two groups: context-extraction tools for repository navigation and code retrieval, and execution tools for controlled patch application, recompilation, PoC execution, multi-vulnerability reset, and functionality test execution.
Agents retrieve and expand relevant code context through tool calls during reasoning, rather than relying solely on their initial inputs. These tools are part of the analysis process, not just execution utilities: in particular, the Fault Localization Agent uses entry-to-call-site retrieval, full-function lookup, and repository search to follow crash-related objects beyond the immediate stack trace under weak sanitizer signals.
Access is role-specific. Fault localization, patch generation, and patch review agents are restricted to read-only
TABLE 1: Tools invoked by DEEPAVR.
| Tool | Description |
|---|---|
| Context Extraction | |
| FileReadLines | Reads up to 100 lines from a specified file to provide local code context. |
| GetFunction | Given a line number, returns the enclosing function's name, range, and content. |
| GetEntryto CallSite | Extracts code from function's entry point to a given call site line. |
| GetDirectory Repository_retriever | Returns files and directories in the specific path.Retrieves semantically relevant code blocks. |
| Execution | |
| PatchCompile | Resets the repository, applies a patch, and recompiles the project. |
| PoCExecution | Executes the binary with the PoC to validate security. |
| MultiVulReset | Apply patch and restart from fault localization when a different type of vulnerability is triggered. |
| FuncTest Execution | Executes regression tests to validate functionality preservation. |
| FAIL EVAL SECURITY | Security Validation Agent Feedback |
|---|---|
| ## Evidence | |
| iso9660.c:1100 signed integer overflow: 8388631 * 2048 (in choose_volume) | |
| ## Result | |
| Bug type unchanged → patch ineffective. | |
| ## Why it still crashes | |
| The patch guarded an earlier multiplication (around 1094), but the overflow happens later at 1100 where a similar multiplication is still performed without a guard. | |
| ## Likely root cause | |
| Incomplete coverage: not all overflow-prone calculations in the function were protected. | |
| ## Fix direction | |
| Add overflow-safe checks (or widen types) for every block_size * location-style computation in choose_volume. | |
| FAIL EVAL FUNCTIONALITY | Functionality Validation Agent Feedback |
| ## Key signals | |
| Repeated: TurboJPEG ERROR: Improper call to JPEG library in state 202 | |
| tjbittest target failed (Makefile error) | |
| Missing MD5 sums: No such file or directory | |
| Ends with make ... Error 255 | |
| ## Verdict | |
| Functionality not preserved — patch causes TurboJPEG to enter an invalid state or reject valid inputs, leading to test failures. | |
| ## Fix direction | |
| Inspect where the patch changes TurboJPEG control flow/state handling. Adjust checks to block only truly corrupt inputs and keep valid images on the normal path. | |
Figure 3: Security and functionality validation feedback produced by DEEPAVR's validation agents.
context-extraction tools, while the compile, security, and functionality validation agents are limited to their designated execution tools and cannot arbitrarily modify code. This least-privilege design reduces cross-stage interference and keeps each agent focused on its assigned role.
Agent Feedback. Beyond role specialization, DEEP-AVR treats intermediate outcomes, including failures, as first-class diagnostic signals. After each patch attempt, four specialized validation agents interpret the execution results, extract the most informative evidence, and route actionable feedback to an upstream agent. Each feedback message begins with a routing keyword (e.g., PASS EVAL SECURITY, FAIL EVAL SECURITY), which is mapped to a predefined transition in the agent graph. Figure 3 shows representative feedback messages produced by the Security and Functionality Validation Agents, where the keyword header is followed by an evidence excerpt and a concise diagnosis with a suggested fix direction. Concretely, compilation and regression failures are routed to the Patch Generation Agent because they
Determine whether a patch reflects a developer-level fix by checking:
- Early-Exit Detection (Symptom Fix)
Inspect newly added guards or early exits.
If a guard merely avoids the crashing path without enforcing the true invariant, restoring state, or propagating errors consistently, classify it as a symptom-level fix.
- Right-Layer Validation (Symptom Fix)
Identify where the guarded value is created or becomes invalid.
Check if validation and error handling is at that source layer (caller/producers/parsers), not solely at the sink where the sanitizer reports the crash.
- Near-Vulnerability Completeness
Analyze the full function and identify all code paths sharing the same invariant and risky operation.
Fixes applied to only a subset of equivalent sites are considered incomplete.
Figure 4: Tailored prompt for the Patch Review Agent.
indicate malformed edits or semantic regressions, while security failures are routed to the Fault Localization Agent because they suggest mislocalization or an ineffective repair strategy. Patch Review Agent routes its feedback to either the Patch Generation Agent (to revise the edit) or the Fault Localization Agent (to re-localize), depending on whether it detects a patch-quality issue or evidence of mislocalization.
3.3. Patch-Conditioned Re-localization
DEEPAVR incorporates patch-conditioned re-localization to leverage sanitizer feedback even when an intermediate patch changes the observed failure. This is important because agent-generated patches can (i) fail to eliminate the original vulnerability or (ii) introduce another vulnerability whose type could even be different, yielding a new sanitizer signature that reveals additional context about the program state and execution path.
After a candidate patch passes compilation, the Security Validation Agent inspects the resulting sanitizer report. If the same vulnerability type reappears, DEEPAVR treats the patch as ineffective and feeds a concise description of failure back to the Fault Localization Agent, which then expands or revises the candidate set, for example, by exploring alternative locations or revisiting a previous location with a different repair strategy. In contrast, if a different vulnerability type emerges, DEEPAVR restarts fault localization on the repository state with the current patch applied. This allows the Fault Localization Agent to analyze the new sanitizer log in the updated context and regenerate candidates aimed at localizing the defect responsible for the newly observed failure. By iteratively re-localizing under the patched program state, DEEPAVR progressively shifts attention from symptom sites toward deeper root-cause hypotheses, especially in cases where the observed failure is logically distant from its initiating defect. The recursion continues until validation yields no sanitizer errors, at which point the workflow terminates.
3.4. Root-cause-oriented Patch Review
Execution-based validation alone cannot guarantee patch correctness: passing the PoC and available regression tests only confirms that the observed failure is no longer triggered, not that the underlying vulnerability has been fully eliminated. This limitation is especially severe for physically distant vulnerabilities, where a local guard at the crash site may silence the sanitizer report while upstream invalid state continues to propagate. To address this gap, DEEPAVR includes a root-cause-oriented Patch Review Agent that screens validated patches for symptom-level and incomplete repairs before they are accepted.
Given a candidate patch that already compiles and passes security and functionality validation, the Patch Review Agent performs a code-centric audit over the full patched function. It focuses on three checks, summarized in Figure 4: (i) Early-exit Detection, which flags early-exit edits that avoid the crash without enforcing the true safety invariant; (ii) Right-Layer Validation, which checks whether the patch prevents the invalid state at its source (e.g., caller/parser/producer), rather than adding guards only at the sanitizer-reported sink (the use site); and (iii) Near-Vulnerability Completeness, which detects logically equivalent risky sites in the same function that remain unfixed. This check is motivated by developer patches that generalize a repair across adjacent, structurally similar branches once the shared invariant is identified; for example, in Figure 1c, the developer fixes both PUSH_CONSTANT and PUSH_CONSTANT16, even though the PoC triggers only one branch, because both share the same bounds invariant.
Based on these checks, the agent returns either PASS_VALIDATION or revision feedback for the next iteration. When the fix is an early-exit patch or validated at the wrong layer, the feedback is routed to the Fault Localization Agent to revisit the repair site. When the patch is correct but incomplete, the feedback is routed to the Patch Generation Agent to propagate the fix across equivalent nearby sites. In this way, patch review acts as a final diagnostic layer that pushes repairs beyond crash suppression toward root-cause-correct patches.
4. Experimental Setup
We evaluate the vulnerability repair capability of DEEP-AVR by answering the following key research questions:
RQ1) How effectively can DEEPAVR repair vulnerabilities in real-world programs? ( 5.1)
RQ2) How well does DEEPAVR generalize to vulnerabilities unseen during training? ( 5.2)
RQ3) How does each specialized agent of DEEPAVR contribute to the overall performance of the AVR task? ( 5.3)
RQ4) What are the computational cost and runtime overhead of DEEPAVR in practice? ( 5.4)
4.1. Benchmark
We evaluate DEEPAVR on the VulnLoc benchmark [21], following prior end-to-end AVR studies [9], [14], [16] to enable direct comparison. VulnLoc contains 39 vulnerabilities spanning six bug classes, including Integer-Overflow (IO), Buffer-Overflow (BO), Divide-by-Zero (DZ), Null-Pointer-Dereference (NPD), Data-Type-Overflow (DT), and Use-After-Free (UAF). Following SAN2PATCH, we use 39 of the 43 VulnLoc [21] samples, since four cannot be reproduced with sanitizer instrumentation. To evaluate generalization (RQ2, see § 5.2), we use the SAN2VULN benchmark [14], which contains 27 vulnerabilities from four open-source projects, including several recently discovered cases for which no developer patch is yet available. For our experiments, we filtered the benchmark by fix commit date, retaining only vulnerabilities with fixes introduced after June 2024 to mitigate potential training data leakage in gpt-4.1, thereby excluding two libming cases, yielding 25 samples.
4.2. Baselines and Evaluation Metrics
Baselines. We compare DEEPAVR against the following five state-of-the-art methods for end-to-end vulnerability repair, which are open-source systems that operate on C/C++ codebases and require only a single failing test input, namely a PoC or its corresponding bug report (e.g., sanitizer log).
• CrashRepair [9]. A program-analysis-based AVR system that leverages concolic execution to localize candidate fix locations and infer crash-free constraints from a crashing input. It then synthesizes patches by searching for code mutations that satisfy the translated constraints.
• LoopRepair [16]. An iterative AVR pipeline that combines vulnerability localization, LLM-based patch-hunk location prediction, location-aware patch generation, and taint-trace-guided patch ranking. It uses CrashAnalysis [9] for localization and iteratively selects the best failing patch for refinement based on taint-trace feedback.
• SAN2PATCH [14]. An LLM-based repair pipeline that decomposes vulnerability repair into staged reasoning over sanitizer logs using prompting strategies such as CoT [29], SC [30], and ToT [31]. The framework iteratively retries patch generation when validation on the PoC or functional test suite fails.
• PatchAgent [15]. A single-agent AVR that uses tool APIs to iteratively retrieve code context, locate relevant definitions, and validate candidate patches. Starting from a sanitizer log, it leverages counterexample feedback to refine patches.
• SpecRover [22]. A multi-agent APR that performs repository-level context retrieval, infers function-level specifications, and uses reviewer-guided feedback for iterative repair.
Although SpecRover is originally designed for GitHub issue resolution, it supports repair from sanitizer logs and has been shown to handle a sample from DARPA AI Cyber Challenge (AIxCC). To adapt SpecRover for AVR, we disable its reproducer agent and directly use the provided PoC input, since each vulnerability already comes with an executable crashing test case, and modify its retrieval/parsing pipeline to support C projects.
Evaluation Metrics. Following prior work [9], [14], [16], [32], we use two commonly adopted metrics: the number of plausible patches and the number of correct patches. A patch is considered plausible (▲) if it passes the PoC
TABLE 2: The number of plausible patches and correct patches generated by DEEPAVR and the prior works. PD and LD denote physically distant and logically distant cases, respectively.
| Package | Bug ID | Distant Bug | Bug Type | CrashRepair [9] | LoopRepair [16] | SAN2PATCH [14] | PatchAgent [15] | SpecRover [22] | DEEPAVR(Ours) |
|---|---|---|---|---|---|---|---|---|---|
| binutils | CVE-2017-14745 | PD | IO | ✕ | ✕ | ✓ | ✕ | ✓ | ✓ |
| CVE-2017-15020 | - | BO | ✕ | ✕ | ✓ | ✓ | ✓ | ✓ | |
| CVE-2017-15025 | - | DZ | ▲-NS | ✕ | ✓ | ✓ | ✕ | ✓ | |
| CVE-2017-6965 | PD | BO | ▲-NS | ✕ | ▲-NF | ✓ | ✕ | ✓ | |
| coreutils | gnubug-19784 | - | BO | ▲-NF | ✓ | ✓ | ✕ | ✓ | ✓ |
| gnubug-25003 | - | IO | - | - | ✓ | ▲-NF | ✓ | ✓ | |
| gnubug-25023 | PD | BO | ▲-NS | ▲-NS | ✓ | ✓ | ✓ | ✓ | |
| gnubug-26545 | - | IO | - | - | ▲-NF | ▲-NF | ▲-NF | ▲-NF | |
| jasper | CVE-2016-8691 | PD | DZ | ▲-NF | ▲-NS | ▲-NS | ▲-NS | ▲-NS | ✓ |
| CVE-2016-9557 | - | IO | ▲-NS | ▲-NS | ✓ | ✓ | ✓ | ✓ | |
| libarchive | CVE-2016-5844 | - | IO | ▲-NS | ✕ | ✓ | ✓ | ✓ | ✓ |
| libjpeg | CVE-2012-2806 | - | BO | ✓ | ✓ | ✓ | ▲-NS | ✓ | ✓ |
| CVE-2017-15232 | PD | NPD | ✓ | ✕ | ▲-NF | ▲-NF | ✓ | ✓ | |
| CVE-2018-14498 | - | BO | ✕ | ✕ | ✓ | ▲-NS | ✓ | ✓ | |
| CVE-2018-19664 | PD | BO | ✕ | ✕ | ✕ | ▲-NF | ▲-NF | ▲-NF | |
| libming | CVE-2016-9264 | - | BO | ▲-NS | ✕ | ✓ | ✓ | ✕ | ✓ |
| CVE-2018-8806 | LD | UAF | ✕ | ✕ | ✕ | ✕ | ✕ | ✓ | |
| CVE-2018-8964 | LD | UAF | ✕ | ✕ | ✕ | ✕ | ✕ | ✓ | |
| libtiff | bugzilla-2611 | PD | DZ | ✓ | ✓ | ✓ | ✓ | ✕ | ✓ |
| bugzilla-2633 | - | BO | ✓ | ▲-NS | ✓ | ▲-NS | ▲-NS | ✓ | |
| CVE-2016-10092 | PD | BO | ✓ | ✓ | ✓ | ▲-NS | ✕ | ✓ | |
| CVE-2016-10094 | PD | BO | ✕ | ▲-NF | ✓ | ▲-NS | ✓ | ✓ | |
| CVE-2016-10272 | PD | BO | ✓ | ✕ | ✓ | ▲-NF | ✕ | ✓ | |
| CVE-2016-5321 | - | BO | ▲-NF | ✓ | ✓ | ▲-NF | ✕ | ✓ | |
| CVE-2016-9273 | PD | BO | ✕ | ✕ | ✕ | ✓ | ✕ | ✓ | |
| CVE-2016-9532 | LD | BO | ▲-NS | ✕ | ▲-NS | ▲-NS | ▲-NS | ▲-NS | |
| CVE-2017-5225 | - | BO | ✓ | ✓ | ✓ | ▲-NS | ✕ | ✓ | |
| CVE-2017-7595 | - | DZ | ▲-NS | ▲-NS | ✓ | ✓ | ✕ | ✓ | |
| CVE-2017-7599 | - | DT | ✓ | ✓ | ✓ | ▲-NS | ✕ | ✓ | |
| CVE-2017-7600 | - | DT | ✓ | ✓ | ✓ | ✓ | ✕ | ✓ | |
| CVE-2017-7601 | - | IO | ▲-NS | ▲-NS | ✓ | ▲-NS | ✕ | ✓ | |
| libxml2 | CVE-2012-5134 | - | BO | ✓ | ▲-NS | ✓ | ✓ | ✕ | ✓ |
| CVE-2016-1838 | - | BO | ✓ | ✓ | ✓ | ▲-NF | ✕ | ✓ | |
| CVE-2016-1839 | PD | BO | ✓ | ▲-NS | ✓ | ✓ | ✓ | ✓ | |
| CVE-2017-5969 | - | NPD | ✓ | ✓ | ✓ | ✓ | ✕ | ✓ | |
| potrace | CVE-2013-7437 | LD | BO | ✓ | ▲-NS | ▲-NS | ✓ | ▲-NS | ✓ |
| zziplib | CVE-2017-5974 | - | BO | ✕ | ▲-NS | ✓ | ▲-NS | ▲-NS | ✓ |
| CVE-2017-5975 | - | BO | ✓ | ✕ | ✓ | ✓ | ✓ | ✓ | |
| CVE-2017-5976 | - | BO | ▲-NS | ✕ | ✓ | ✓ | ▲-NS | ✓ | |
| Plausible Patches | 28/39 | 21/39 | 35/39 | 35/39 | 21/39 | 39/39 | |||
| Correct Patches | 15/39 | 10/39 | 29/39 | 17/39 | 13/39 | 36/39 | |||
and, when available, the full functional test suite. However, passing these tests does not necessarily guarantee security or functional correctness [19], [33]. Therefore, we manually inspect all plausible patches and determine correctness by comparing them against the developer patch. A plausible patch is deemed correct (✓) if it is semantically equivalent to the developer's patch. We further classify plausible but incorrect patches into two categories: Not Secure (▲-NS), where the patch suppresses the PoC without addressing the root cause, and Not Functionally Correct (▲-NF), where the patch breaks functionality under valid inputs.
To ensure consistency in manual evaluation, we apply the following correctness criteria: (1) Root-cause alignment: the patch addresses the earliest point within the execution path leading to the crash where the invariant is first violated, regardless of which function it resides in, rather than suppressing symptoms at the crash site. (2) Functional preservation: the patch does not alter the intended behavior of the program for valid inputs. For samples with a developer patch (VulnLoc), correctness is verified by semantic equivalence to the ground truth. For samples without a ground truth (SAN2VULN), correctness is determined solely by the above criteria.
4.3. Implementation
DEEPAVR is implemented in Python 3.10 using LangChain [34]. Each agent is instantiated as an independent LangChain agent, and the overall workflow is represented as a directed graph: nodes correspond to agents and edges encode allowable hand-offs between agents. Importantly, the routing policy is implemented in code (graph edges + routing functions). Each agent is instructed (via its system prompt) to end its response with exactly one routing keyword from a fixed set (e.g., PASSEval_SECURITY). At runtime, the controller parses this keyword and deterministically dispatches execution to the next agent according to a predefined mapping.
The repository_retriever tool follows the approach of RLCoder, a repository-level code completion tool [35]. It is built with PyTorch 2.6.0 [36] and retrieves semantically relevant code blocks using UniXcoder [37] embeddings with FAISS-based indexing [38]. All experiments were conducted on a 64-bit Ubuntu 20.04 system equipped with an Intel Xeon Silver 4316 CPU (20 hardware cores, 2.30 GHz), 384 GB of RAM, and four NVIDIA A6000 GPUs. The default LLM backend is OpenAI's gpt-4.1 [39]. For fair comparison, we re-executed prior approaches under the same environment while standardizing their model choices to gpt-4.1, thereby eliminating model-dependent factors.
5. Experimental Results
5.1. Repair Success Rate on VulnLoc (RQ1)
Candidate Budget. We set the maximum number of DEEP-AVR's feedback loops to 15. If no valid patch is found, we repeat the run up to three times, yielding at most 45 patch candidates per vulnerability; this is the target budget for all baselines. All methods are run until a valid patch is generated or the number of generated patches reaches 45. SAN2PATCH generates up to nine candidates per run, so we execute it five times. PatchAgent is bound by tool invocations rather than patch count; in our reproduction on 39 VulnLoc samples, it produces about three patches per run on average, so we run it 15 times. SpecRover is configured with up to five internal iterations per round and at most 15 rounds. For CrashRepair and LoopRepair, the number of generated patches depends on the number of fault-localization candidates passed to patch generation. CrashRepair runs until a valid patch is found or 45 candidates have been generated. LoopRepair, following the original setup, is capped at three iterations because the runtime grows substantially with additional iterations. If no valid patch is found within three iterations and fewer than 45 candidates have been generated, we run one additional execution to approach the same budget.
Results. Table 2 presents the number of plausible and correct patches generated by DEEPAVR and prior studies. For gnubug-25003 and gnubug-26545, initial localization was unavailable, so we leave CrashRepair and LoopRepair results empty. The results show that DEEPAVR consistently outperforms the other tools, generating the most plausible and correct patches in all bug types. CrashRepair, LoopRepair, SAN2PATCH, PatchAgent, and SpecRover correctly repaired 28, 21, 35, 35, and 21 out of 39 cases, while DEEPAVR achieved 39 successful repairs. In terms of correct patch generation, the performance gap widened further; CrashRepair, LoopRepair, SAN2PATCH, PatchAgent, and SpecRover produced 15, 10, 29, 17, and 13 valid repairs, respectively, whereas DEEPAVR achieved 36 valid repairs (92.3%). These results demonstrate that DEEPAVR not only generates more plausible patches but also correct fixes, addressing hidden flaws that prior systems often leave unresolved. We note that none of the five comparison targets produced valid patches for CVE-2018-8806 and CVE-2017-8964, likely due to the logical distance between the initial sanitizer message and the root cause. In contrast, DEEPAVR successfully generates correct patches via deep analysis with patch-conditioned fault re-localization.
Answer to RQ1: Compared to CrashRepair, LoopRepair, SAN2PATCH, PatchAgent, and SpecRover, DEEPAVR achieves higher patch quality, producing plausible patches for 100% of cases and correct patches for 92.3%.
5.2. Repair Success Rate on Unseen Vulnerabilities (RQ2)
To answer this research question, we use the SAN2VULN benchmark to evaluate DEEPAVR's ability to repair vulnerabilities that are unseen during training. Due to the high computational cost of running all four LLM-based baselines, we restrict this comparison to SAN2PATCH, which achieved the strongest performance in generating both plausible and correct patches in RQ1 (§ 5.1) among the comparison baselines. For unseen vulnerabilities, we report both plausible and correct patches, manually validating each patch to ensure it resolves the root cause rather than merely suppressing the PoC. As shown in Table 3, DEEPAVR produces 25 plausible patches, slightly exceeding SAN2PATCH's 24. More importantly, DEEPAVR yields fewer plausible but test-specific patches than SAN2PATCH (3 vs. 8 cases) under manual inspection. These results indicate that DEEPAVR can reliably converge to developer-aligned repairs even on vulnerabilities unseen during training.
TABLE 3: Summary of unseen vulnerability repair results.
| Package | Bug ID | Bug Type | SAN2PATCH [14] | DEEPAVR |
|---|---|---|---|---|
| libming | CVE-2024-24148 | ML | ✓ | ✓ |
| CVE-2024-24146 | ML | ✓ | ✓ | |
| Bento4 | NOFIX-2024-002 | BO | ▲-NS | ▲-NS |
| NOFIX-2024-003 | DZ | ✓ | ✓ | |
| NOFIX-2024-004 | DZ | ✓ | ✓ | |
| NOFIX-2024-005 | BO | ✓ | ✓ | |
| NOFIX-2024-006 | BO | ▲-NS | ✓ | |
| NOFIX-2024-007 | DZ | ✓ | ✓ | |
| NOFIX-2024-008 | NPD | ▲-NF | ✓ | |
| NOFIX-2024-009 | NPD | ✓ | ✓ | |
| NOFIX-2024-010 | BO | ✕ | ✓ | |
| Liblouis | NOFIX-2024-001 | NPD | ✓ | ✓ |
| GIT-2024-1530 | NPD | ▲-NF | ✓ | |
| GIT-2024-1531 | NPD | ✓ | ✓ | |
| GIT-2024-1532 | NPD | ✓ | ✓ | |
| GIT-2024-1533 | NPD | ▲-NS | ✓ | |
| GIT-2024-1534 | BO | ▲-NS | ✓ | |
| GIT-2024-1535 | BO | ▲-NS | ▲-NS | |
| GIT-2024-1536 | BO | ▲-NS | ▲-NS | |
| GIT-2024-1537 | BO | ✓ | ✓ | |
| GIT-2024-1539 | BO | ✓ | ✓ | |
| Kamailio | OSV-2024-1206 | BO | ✓ | ✓ |
| OSV-2024-1210 | BO | ✓ | ✓ | |
| OSV-2024-1230 | BO | ✓ | ✓ | |
| OSV-2024-1244 | BO | ✓ | ✓ | |
| Plausible Patches | 24/25 | 25/25 | ||
| Correct Patches | 16/25 | 22/25 |
Answer to RQ2: DEEPAVR successfully repaired unseen vulnerabilities in the SAN2VULN benchmark, producing root-cause fixes in most cases and demonstrating generalization beyond its training data.
5.3. Impact of Specialized Agents on Repair Performance (RQ3)
To answer this research question, we conduct a component ablation study on DEEPAVR's specialized agents and its Patch-conditioned Re-localization (PCRL) capability. As shown in Table 4a, we remove each component in turn and report the resulting numbers of plausible and correct patches. For the Compile Validation Agent (CA), Security Validation Agent (SA), and Functionality Validation Agent (FA), the removed agent is replaced with a simple tool that returns only validation outputs, without agent-guided feedback. We also evaluate a variant that retains the Security Validation Agent but disables PCRL. The results show that all four specialized agents, as well as PCRL, contribute to repair performance. Removing CA, SA, and FA reduces the number of plausible patches by 7, 8, and 7, respectively, while disabling PCRL reduces it by 3. Removing CA, SA, FA, and the Patch Review Agent (RA) reduces the number of correct patches by 6, 7, 7, and 4, respectively, and disabling PCRL reduces it by 2. These results indicate that the agents improve repair not only through validation, but
TABLE 4: Impact of specialized-agent ablation and role merging on AVR performance.
| Setting* | Plausible Patches | Correct Patches |
|---|---|---|
| DEEPAVR | 39 | 36 |
| No CA | 32 (-7) | 30 (-6) |
| No SA | 31 (-8) | 29 (-7) |
| No FA | 32 (-7) | 29 (-7) |
| No RA | 39 (-0) | 32 (-4) |
| SA (w/o PCRL) | 36 (-3) | 34 (-2) |
(a) Component ablation: effect of removing individual agents and disabling Patch-conditioned Re-localization.
| Setting* | Plausible Patches | Correct Patches |
|---|---|---|
| DEEPAVR | 39 | 36 |
| FLA + PGA | 31 (-8) | 27 (-9) |
| SA + FA | 33 (-6) | 32 (-4) |
| CA + FA | 35 (-4) | 34 (-2) |
(b) Agent merging: effect of merging the roles of two agents into a single module.
*FLA: Fault Localization Agent, PGA: Patch Generation Agent, CA: Compile Validation Agent, SA: Security Validation Agent, FA: Functionality Validation Agent, RA: Patch Review Agent, PCRL: Patch-conditioned Re-localization.
also by providing actionable feedback. We also observed that excluding certain agents often caused the system to reach the maximum iteration limit and incur substantial computational costs.
Next, Table 4b evaluates the impact of merging two agents into a single role by combining their prompts. Overall, role merging consistently degrades performance, indicating the importance of specialization even with identical tool access. The largest drop occurs when merging Fault Localization and Patch Generation (FLA+PGA), reducing plausible patches from 39 to 31 and correct patches from 36 to 27 (8 and 9 additional failures). Merging validation roles has a smaller but still negative effect: SA+FA yields 33 plausible and 32 correct patches (6 and 4 additional failures), while CA+FA results in 35 plausible and 34 correct patches (4 and 2 additional failures). These results suggest that separating localization, generation, and validation enables more targeted feedback and improves convergence to correct patches.
Answer to RQ3: Each component in DEEPAVR is indispensable, and its collaboration with the others is essential for generating optimal patches. The Patch Review Agent further contributes by producing more complete patches.
5.4. Cost and Runtime (RQ4)
In this section, we report per-sample API cost and end-to-end runtime for the experiments in § 5.1. Table 5 summarizes token usage, estimated API cost (USD), and end-to-end runtime for each approach. All metrics are averaged over 39 samples. DEEPAVR consumes the largest number of input and cached tokens (1.80M input, 1.52M cached), which reflects the overhead of multi-agent coordination, repeated validation, and patch-conditioned feedback across iterations. However, its output tokens remain small (13.3K), since patches are short and most tokens are spent on analysis and tool-guided reasoning rather than verbose generation.
TABLE 5: Token usage and API costs of AVR tools measured in the experiments described in § 5.1. API costs are reported in USD.
| Approach | Input Tokens | Cached Tokens | Output Tokens | API Cost ($) | run-time (min) |
|---|---|---|---|---|---|
| CrashRepair [9] | - | - | - | - | 11.13 |
| LoopRepair [16] | 82,177 | 53,066 | 50,734 | 0.42 | 99.64 |
| SAN2PATCH [14] | 183,951 | 68,516 | 24,759 | 0.46 | 13.34 |
| PatchAgent [15] | 1,063,448 | 870,357 | 15,543 | 0.95 | 11.13 |
| SpecRover [22] | 1,747,280 | 1,182,950 | 49,198 | 2.11 | 27.05 |
| DEEPAVR | 1,802,952 | 1,515,963 | 13,294 | 1.44 | 14.62 |
In terms of cost, DEEPAVR (0.42), SAN2PATCH (0.95), but cheaper than SpecRover (1 API cost for pre-deployment validation is a trivial investment that is far more cost-effective.
Answer to RQ4: DEEPAVR incurs higher token cost than some baselines, but delivers more developer-aligned repairs, with fewer PoC-only fixes, while maintaining end-to-end runtime comparable to the fastest systems.
6. Discussion
6.1. Sensitivity to the LLM Backend
To assess DEEPAVR's sensitivity to the LLM backend, we swap GPT-4.1 with Gemini-2.5-Pro [40] and Claude Haiku 4.5 [41] while keeping the multi-agent workflow, tool access, loop budget, and validation pipeline fixed. DEEPAVR remains effective across backends: Gemini-2.5-Pro generates plausible patches for all 39 VulnLoc samples, while Claude Haiku 4.5 generates 34 out of 39. This suggests that much of DEEPAVR's effectiveness comes from the workflow design, although backend capability still affects the final repair rate.
We also observe clear differences in token usage and cost. Relative to the default setting, Gemini-2.5-Pro increases the average cost from 2.29, largely because it tends to invoke more tools before producing a final repair decision. Claude Haiku 4.5 raises the average cost further to $3.67, even though it is intended as a fast and relatively low-cost model, because caching was difficult to use effectively in our setup. These results show that backend-specific interaction patterns can significantly affect token efficiency, and that further prompt and tool optimization could reduce cost.
6.2. Case Studies
Patch Location Candidates (ranked) First analysis
- src/util/parse.c (line range: 973–1011) [Confidence: HIGH] • Evidence: This is where act->Params is repeatedly realloc'd, invalidating pointers held elsewhere. • Fix Strategy: Change the allocation strategy to avoid reallocating and moving the array after each parameter. Instead, allocate the full array up front if possible, or use a temporary list and copy at the end. Alternatively, store all parameters in a list and only assign to act->Params after all are parsed.
Patch Location Candidates (ranked) Final analysis
- src/util/decompile.c (line range: 348, 361) [Confidence: HIGH] • Evidence: If act->p.Constant8 or act->p.Constant16 is out of bounds, any access to pool[...] will crash, regardless of NULL checks. • Fix Strategy: Add a check that pool is non-NULL and that act->p.Constant8 (or Constant16) is within the valid range (pool size) before any use in getString and getName. If not, return a static safe string ("(null)").
(a) (CVE-2018-8806) Initial vs. final top-ranked fault-localization candidates of DEEPAVR.
--- /src/src/libjasper/jpc/jpc_cs.c Developer +++ /src/src/libjasper/jpc/jpc_cs.c @@ -512,6 +512,12 @@ jpc_siz_getparams(jpc_ms_t *ms, jpc_cstate_t *cstate, jas_free(siz->comps); return -1; }
-
if (siz->comps[i].hsamp == 0 || siz->comps[i].hsamp > 255) { -
jas_eprintf("invalid XRsiz value %d\n", siz->comps[i].hsamp); -
jas_free(siz->comps); return -1; } -
if (siz->comps[i].vsamp == 0 || siz->comps[i].vsamp > 255) { -
jas_eprintf("invalid YRsiz value %d\n", siz->comps[i].vsamp); -
jas_free(siz->comps); return -1; } -
siz->comps[i].sgnd = (tmp >> 7) & 1; -
siz->comps[i].prec = (tmp & 0x7f) + 1; }
--- /src/src/libjasper/jpc/jpc_cs.c DeepAVR +++ /src/src/libjasper/jpc/jpc_cs.c @@ -512,6 +512,8 @@ jpc_siz_getparams(jpc_ms_t *ms, jpc_cstate_t *cstate, jas_free(siz->comps); return -1; }
-
if (siz->comps[i].hsamp == 0 || siz->comps[i].vsamp == 0) { -
jas_free(siz->comps); return -1; } -
siz->comps[i].sgnd = (tmp >> 7) & 1; -
siz->comps[i].prec = (tmp & 0x7f) + 1; }
(b) (CVE-2016-8691) Correct DEEPAVR patch.
--- src/shred.c Developer +++ src/shred.c @@ -287,7 +287,7 @@ fillpattern (int type, unsigned char *r, size_t size) r[0] = (bits >> 4) & 255; r[1] = (bits >> 8) & 255; r[2] = bits & 255;
- for (i = 3; i < size / 2; i *= 2)
- for (i = 3; i <= size / 2; i *= 2) memcpy(r + i, r, i); if (i < size) memcpy(r + i, r, size - i);
--- src/shred.c DeepAVR +++ src/shred.c @@ -289,7 +289,7 @@ fillpattern (int type, unsigned char *r, size_t size) for (i = 3; i < size / 2; i *= 2) - memcpy(r + i, r, i); + memmove(r + i, r, i); if (i < size) - memcpy(r + i, r, size - i); + memmove(r + i, r, size - i);
(c) (gnubug-26545) Plausible but incorrect DEEPAVR patch.
Figure 5: DEEPAVR case studies on logically distant, physically distant, and failure scenarios.
This section presents three case studies: two that DEEP-AVR successfully repairs, and one that DEEPAVR does not. Resolving a Logically Distant Vulnerability (CVE-2018-8806). The patch generation process for this example highlights both its effectiveness and the need for DEEPAVR due to logical distance. CVE-2018-8806 is a use-after-free bug in libming [42], triggered when the array pool is accessed using act->p.Constant8 as the index. The sanitizer log for this vulnerability reports a use-after-free (UAF) similar to Figure 1a. However, the actual sequence is that an out-of-bounds access on pool overwrites a neighboring freed region, which the sanitizer flags as a UAF. As shown in Figure 5a, the Fault Localization Agent first selects a candidate in parser.c associated with pointer invalidation, assuming the root cause is UAF. Once a patch is generated for this site, the sanitizer instead reports a null pointer dereference. Due to patch-conditioned fault localization, the Fault Localization Agent eventually converges on a final candidate in decompile.c (lines 348–361), identified as the true root cause. The analysis indicates that if act->p.Constant8 or act->p.Constant16 is out of bounds, any access to pool[...] will result in a crash regardless of null checks.
Resolving a Physically Distant Vulnerability (CVE-2016-8691). CVE-2016-8691 is a divide-by-zero bug in Jasper caused by missing validation of cmpt->hstep and cmpt->vstep. Because the optimal location for the check is physically distant from the crash site, localized fixes at jpc_dec.c can suppress the immediate symptom without fixing the root cause. DeepAVR initially produced such a crash-site guard, but the Patch Review Agent identified it as a symptom-level fix and recommended moving the validation to the SIZ parsing logic. Guided by this feedback, DeepAVR relocated the fix to jpc_cs.c, the critical file for the repair but one absent from the sanitizer log, and generated a patch similar to the developer fix. Although our patch omits the developer's upper-bound checks for values > 255, the relevant parameter type (uint_fast8_t, implemented here as unsigned char) makes overflow negligible, so the patch still correctly fixes the reported divide-by-zero root cause.
Failure Case of DEEPAVR (gnubug-26545). This example is a memcpy-param-overlap bug in coreutils [43] triggered when the source and destination regions overlap, causing undefined behavior. Although all patches that DEEPAVR generated pass the project's security and functionality tests, manual analysis revealed that the patches alter functionality. The developer's patch (Figure 5c) adjusts the loop condition to avoid overlap, whereas every LLM-generated patch, including ours, replaces nearby memcpy calls with memmove. Though this prevents undefined behavior, it conflicts with the developer's intent. This case exposes the limits of the project's testing framework and underscores the need for a more comprehensive test suite for the particular project, and reveals the limitation of DEEPAVR that is bounded by the completeness of the test suite.
6.3. Threats to Validity
Internal Validity. We replicated the four LLM-based comparison targets using their released artifacts and benchmarks, and adapted them by substituting the original base models with GPT-4.1 to standardize the LLM backend across methods. Although this was necessary for a fair comparison, it may have affected baseline efficiency and repair performance. Some methods also rely on external localization components. In particular, LoopRepair [16] depends on CrashAnalysis [9] for iterative localization. In our environment, some samples excluded in the original LoopRepair evaluation due to failed localization were initially localizable, but re-localization sometimes failed after candidate patches were applied, which may have negatively affected their performance in our setting.
Patch correctness was assessed primarily through automated validation (security and functionality tests), complemented by manual inspection. To mitigate author bias, manual evaluation was conducted by three Ph.D. students who are not authors of this paper, each independently reviewing patches without knowledge of which tool produced them. Reviewers first identified the violated invariant from the sanitizer report, the execution path derived from the log after executing the PoC, the vulnerable code, the bug type, and any available external evidence, such as the developer's patch, if accessible. We define an invariant as the condition that must hold before vulnerability triggers to prevent the reported violation while preserving intended behavior. A patch was labeled correct only if it enforced this invariant at the semantically responsible point, covered equivalent risky code paths sharing the same invariant, and preserved intended functionality. Reviewers independently labeled the anonymized patches using this rubric, and disagreements were resolved through rubric-based discussion without revealing tool identity.
External Validity. All evaluations were performed on C/C++ vulnerabilities from the VulnLoc, SAN2VULN benchmarks. Thus, the results may not generalize to other programming languages or codebases. Furthermore, DEEP-AVR's performance depends on the choice of LLM backend ( 6.1), and outcomes may differ under alternative models or future model versions.
7. Related Work
Automated Vulnerability Repair (AVR). Several APR studies have specialized in repairing security vulnerabilities [44]. Analysis-based AVR systems relax the need for full test suites by repairing from a single failing input, but often rely on stronger assumptions: SenX [45] requires human-specified safety properties, CPR [46] and VulnFix [6] assume known fix locations, and ExtractFix [7] relies on explicit crash constraints. In contrast, CrashRepair [9] removes these assumptions and instead repairs from only a single PoC using concolic execution, constraint inference, mutation-based patch generation, and differential testing. LLM-based AVR. Early LLM-based AVR studies assume perfect FL, where the buggy function is directly provided [17]–[20], [47]. In this setting, fine-tuning-based approaches [11] learn repair patterns from paired buggy-fixed functions; for example, VulRepair [12] fine-tunes T5 for vulnerability repair. In parallel, prompt-engineering approaches have demonstrated that general-purpose LLMs can also repair vulnerabilities without task-specific training [19], [20].
More recently, end-to-end AVR systems have begun integrating localization, patch generation, and validation directly from weak bug reports such as PoCs or sanitizer logs [48]. Representative examples include LoopRepair [16], which combines CrashAnalysis [9] with iterative repair, SAN2PATCH [14], which decomposes repair into staged LLM reasoning, PatchAgent [15], which frames repair as tool-augmented debugging, and ATLANTIS-Patching [49], which improves robustness through agent ensembling. In contrast, DEEPAVR explicitly interprets intermediate repair outcomes as structured diagnostic feedback for jointly refining localization and patch generation.
LLM for Program Repair. The use of LLMs in program repair has gained significant attention in recent years [4], [24], [50]–[54]. A recent and influential direction is iterative repair, where candidate patches are repeatedly refined using feedback from prior repair attempts. In feedback-driven iterative approaches, the repair process is often guided either by lightweight validation signals, such as the number or ratio of passing tests [23], [32], or by agent-analyzed feedback, where an LLM inspects failed tests, error messages, or other execution artifacts to refine subsequent patch candidates [25], [26], [55], [56]. Despite their effectiveness, most approaches focus on iterative patch generation while treating FL as fixed, either assuming perfect localization or relying on existing tools without actively revisiting it during repair. Although ITER [32] integrates localization, generation, and validation in an end-to-end formulation, their refinement still depends on test-driven signals, which are often weak or unavailable in vulnerability repair scenarios where only a single failing test case (e.g., a PoC) is provided.
Another line of work explores multi-agent collaboration for software engineering tasks, such as test-driven debugging [57] and GitHub issue resolution [22], [58]. These systems show that decomposing complex workflows into specialized roles can improve reasoning, coordination, and review beyond single-agent settings. In repair-oriented systems, this often takes the form of reviewer-style feedback. For example, SpecRover [22] employs a dedicated reviewer agent that analyzes generated patches and provides natural-language feedback for subsequent iterations. This goes beyond simple test-based refinement or single-agent self-reflection, but the feedback remains only partially coupled; it refines patch generation without being propagated back to the localization stage. More generally, existing approaches do not explicitly model the diversity of repair failure modes. They rarely distinguish symptom-level fixes from root-cause corrections, reason about newly introduced vulnerabilities, or decompose feedback into dimensions such as localization.
errors, broken functionality, and security flaws.
8. Conclusion
This paper presented DEEPAVR, a multi-agent framework for end-to-end automated vulnerability repair. By decomposing repair into specialized roles, refining hypotheses through structured feedback, and leveraging patch-conditioned re-localization, DEEPAVR supports deeper analysis under weak initial signals. It further uses patch review to identify superficially valid but semantically incorrect fixes. Experiments on real-world benchmarks show that DEEPAVR outperforms prior end-to-end AVR systems and reduces the number of plausible but incorrect fixes. Overall, our results suggest that structured agent collaboration is a promising direction for robust automated vulnerability repair.
References
[1] Q. Zhang, C. Fang, T. Zhang, B. Yu, W. Sun, and Z. Chen, “Gamma: Revisiting template-based automated program repair via mask prediction,” in 2023 38th IEEE/ACM International Conference on Automated Software Engineering (ASE). IEEE, 2023, pp. 535–547.
[2] H. Ye, M. Martinez, X. Luo, T. Zhang, and M. Monperrus, “Selfapr: Self-supervised program repair with test execution diagnostics,” in Proceedings of the 37th IEEE/ACM International Conference on Automated Software Engineering, 2022, pp. 1–13.
[3] Y. Zhao, Z. Huang, Y. Ma, R. Li, K. Zhang, H. Jiang, Q. Liu, L. Zhu, and Y. Su, “Repair: Automated program repair with process-based feedback,” in Findings of the Association for Computational Linguistics: ACL 2024, 2024, pp. 16415–16429.
[4] Y. Zhang, H. Ruan, Z. Fan, and A. Roychoudhury, “Autocoderover: Autonomous program improvement,” pp. 1592–1604, 2024.
[5] X. Meng, X. Wang, H. Zhang, H. Sun, X. Liu, and C. Hu, “Template-based neural program repair,” in 2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE). IEEE, 2023, pp. 1456–1468.
[6] Y. Zhang, X. Gao, G. J. Duck, and A. Roychoudhury, “Program vulnerability repair via inductive inference,” in Proceedings of the 31st ACM SIGSOFT International Symposium on Software Testing and Analysis, 2022, pp. 691–702.
[7] X. Gao, B. Wang, G. J. Duck, R. Ji, Y. Xiong, and A. Roychoudhury, “Beyond tests: Program vulnerability repair via crash constraint extraction,” ACM Transactions on Software Engineering and Methodology (TOSEM), vol. 30, no. 2, pp. 1–27, 2021.
[8] S. Hong, J. Lee, J. Lee, and H. Oh, “Saver: scalable, precise, and safe memory-error repair,” in Proceedings of the ACM/IEEE 42nd International Conference on Software Engineering, 2020, pp. 271–283.
[9] R. Shariffdeen, C. S. Timperley, Y. Noller, C. Le Goues, and A. Roychoudhury, “Vulnerability repair via concolic execution and code mutations,” ACM Transactions on Software Engineering and Methodology, vol. 34, no. 4, pp. 1–27, 2025.
[10] X. Gao, S. Mechtaev, and A. Roychoudhury, “Crash-avoiding program repair,” in Proceedings of the 28th ACM SIGSOFT International Symposium on Software Testing and Analysis, 2019, pp. 8–18.
[11] X. Zhou, K. Kim, B. Xu, D. Han, and D. Lo, “Out of sight, out of mind: Better automatic vulnerability repair by broadening input ranges and sources,” in Proceedings of the IEEE/ACM 46th international conference on software engineering, 2024, pp. 1–13.
[12] M. Fu, C. Tantithamthavorn, T. Le, V. Nguyen, and D. Phung, "Vulrepair: a t5-based automated software vulnerability repair," in Proceedings of the 30th ACM joint european software engineering conference and symposium on the foundations of software engineering, 2022, pp. 935–947.
[13] M. Shao, Y. Ding, C. Gao, J. Wang, and G. Zhu, “Fix pattern-aware vulnerability patch generation via in-context learning,” ACM Transactions on Software Engineering and Methodology, 2026.
[14] Y. Kim, S. Shin, H. Kim, and J. Yoon, “Logs in, patches out: Automated vulnerability repair via {Tree-of-Thought} {LLM} analysis,” in 34th USENIX Security Symposium (USENIX Security 25), 2025, pp. 4401–4419.
[15] Z. Yu, Z. Guo, Y. Wu, J. Yu, M. Xu, D. Mu, Y. Chen, and X. Xing, “{PATCHAGENT}: A practical program repair agent mimicking human expertise,” in 34th USENIX Security Symposium (USENIX Security 25), 2025, pp. 4381–4400.
[16] Z. Ye, X. Sun, S. Cao, L. Bo, and B. Li, “Well begun is half done: Location-aware and trace-guided iterative automated vulnerability repair,” arXiv preprint arXiv:2512.20203, 2025.
[17] R. Jiao, Y. Zhang, J. Li, and J. Ma, “Hit the bullseye on the first shot: Improving llms using multi-sample self-reward feedback for vulnerability repair,” in 2025 40th IEEE/ACM International Conference on Automated Software Engineering (ASE). IEEE, 2025, pp. 791–803.
[18] X.-C. Wen, Z. Lin, Y. Yang, C. Gao, and D. Ye, “Vul-r2: A reasoning llm for automated vulnerability repair,” arXiv preprint arXiv:2510.05480, 2025.
[19] H. Pearce, B. Tan, B. Ahmad, R. Karri, and B. Dolan-Gavitt, “Examining zero-shot vulnerability repair with large language models,” in 2023 IEEE symposium on security and privacy (SP). IEEE, 2023, pp. 2339–2356.
[20] P. Liu, J. Liu, L. Fu, K. Lu, Y. Xia, X. Zhang, W. Chen, H. Weng, S. Ji, and W. Wang, “Exploring {ChatGPT’s} capabilities on vulnerability management,” in 33rd USENIX Security Symposium (USENIX Security 24), 2024, pp. 811–828.
[21] S. Shen, A. Kolluri, Z. Dong, P. Saxena, and A. Roychoudhury, “Localizing vulnerabilities statistically from one exploit,” in Proceedings of the 2021 ACM Asia Conference on Computer and Communications Security, 2021, pp. 537–549.
[22] H. Ruan, Y. Zhang, and A. Roychoudhury, “Specrover: Code intent extraction via llms,” in 2025 IEEE/ACM 47th International Conference on Software Engineering (ICSE). IEEE, 2025, pp. 963–974.
[23] T. Le-Cong, B. Le, and T. Murray, “Memory-efficient large language models for program repair with semantic-guided patch generation,” arXiv preprint arXiv:2410.16655, 2024.
[24] J. Zhang, K. Huang, J. Zhang, Y. Liu, and C. Chen, “Repair ingredients are all you need: Improving large language model-based program repair via repair ingredients search,” arXiv preprint arXiv:2506.23100, 2025.
[25] C. S. Xia and L. Zhang, “Automated program repair via conversation: Fixing 162 out of 337 bugs for $0.42 each using chatgpt,” in Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis, 2024, pp. 819–831.
[26] X. Yin, C. Ni, S. Wang, Z. Li, L. Zeng, and X. Yang, “Thinkrepair: Self-directed automated program repair,” in Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis, 2024, pp. 1274–1286.
[27] Y. Hu, Z. Liu, K. Shu, S. Guan, D. Zou, S. Xu, B. Yuan, and H. Jin, “{SoK}: Automated vulnerability repair: Methods, tools, and assessments,” in 34th USENIX Security Symposium (USENIX Security 25), 2025, pp. 4421–4440.
[28] Y. Li, F. hossain Shezan, B. Wei, G. Wang, and Y. Tian, “{SoK}: Towards effective automated vulnerability repair,” in 34th USENIX Security Symposium (USENIX Security 25), 2025, pp. 4441–4462.
[29] J. Wei, X. Wang, D. Schuurmans, M. Bosma, F. Xia, E. Chi, Q. V. Le, D. Zhou et al., “Chain-of-thought prompting elicits reasoning in large language models,” vol. 35, 2022, pp. 24824–24837.
[30] X. Wang, J. Wei, D. Schuurmans, Q. Le, E. Chi, S. Narang, A. Chowdhery, and D. Zhou, “Self-consistency improves chain of thought reasoning in language models,” arXiv preprint arXiv:2203.11171, 2022.
[31] S. Yao, D. Yu, J. Zhao, I. Shafran, T. L. Griffiths, Y. Cao, and K. R. Narasimhan, “Tree of thoughts: Deliberate problem solving with large language models,” in Thirty-seventh Conference on Neural Information Processing Systems, 2023. [Online]. Available: https://openreview.net/forum?id=5Xc1ecxO1h
[32] H. Ye and M. Monperrus, “Iter: Iterative neural repair for multi-location patches,” in Proceedings of the 46th IEEE/ACM international conference on software engineering, 2024, pp. 1–13.
[33] W. Han, Y. Kwak, M. Yu, K. Kim, Y. Lee, H. Moon, and Y. Paek, "Rethinking the capability of fine-tuned language models for automated vulnerability repair," arXiv preprint arXiv:2512.22633, 2025.
[34] LangChain, "Langchain," https://www.langchain.com/, accessed: 2025-09-01.
[35] Y. Wang, Y. Wang, D. Guo, J. Chen, R. Zhang, Y. Ma, and Z. Zheng, "Rlcoder: Reinforcement learning for repository-level code completion," in 2025 IEEE/ACM 47th International Conference on Software Engineering (ICSE). IEEE, 2025, pp. 1140–1152.
[36] A. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, Z. Lin, N. Gimelshein, L. Antiga et al., "Pytorch: An imperative style, high-performance deep learning library," Advances in neural information processing systems, vol. 32, 2019.
[37] D. Guo, S. Lu, N. Duan, Y. Wang, M. Zhou, and J. Yin, “Unixcoder: Unified cross-modal pre-training for code representation,” in Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 2022, pp. 7212–7225.
[38] J. Johnson, M. Douze, and H. Jégou, “Billion-scale similarity search with gpus,” IEEE Transactions on Big Data, vol. 7, no. 3, pp. 535–547, 2019.
[39] ChatGPT, "Openai," https://chatgpt.com/, accessed: 2025-09-01.
[40] Google, “Gemini-2.5-pro,” https://gemini.google.com/, 2025, accessed: 2026-03-23.
[41] Anthropic, “Claude haiku 4.5,” https://www.anthropic.com/claude/haiku/, 2025, accessed: 2026-02-05.
[42] T. M. D. Team, “Swf output library,” https://github.com/libming/libming, 2016, accessed: 2025-09-01.
[43] G. Project, “Coreutils - gnu core utilities,” https://www.gnu.org/software/coreutils/, 2017, accessed: 2025-09-01.
[44] K. Huang, Z. Xu, S. Yang, H. Sun, X. Li, Z. Yan, and Y. Zhang, "Evolving paradigms in automated program repair: Taxonomy, challenges, and opportunities," ACM Computing Surveys, vol. 57, no. 2, pp. 1–43, 2024.
[45] Z. Huang, D. Lie, G. Tan, and T. Jaeger, “Using safety properties to generate vulnerability patches.” in IEEE Symposium on Security and Privacy, 2019, pp. 539–554.
[46] R. Shariffdeen, Y. Noller, L. Grunske, and A. Roychoudhury, “Concolic program repair,” in Proceedings of the 42nd ACM SIGPLAN International Conference on Programming Language Design and Implementation, 2021, pp. 390–405.
[47] M. Fu, V. Nguyen, C. Tantithamthavorn, D. Phung, and T. Le, "Vision transformer inspired automated vulnerability repair," ACM Transactions on Software Engineering and Methodology, vol. 33, no. 3, pp. 1–29, 2024.
[48] Y. Zhang, J. Wang, D. Berzin, M. Mirchev, and A. Roychoudhury, "Fixing security vulnerabilities with agentic ai in oss-fuzz," 2026.
[49] T. Kim, H. Han, S. Park, D. R. Jeong, D. Kim, D. Kim, E. Kim, J. Kim, J. Wang, K. Kim, S. Ji, W. Song, H. Zhao, A. Chin, G. Lee, K. Stevens, M. Alharthi, Y. Zhai, C. Zhang, J. Jang, Y. Jang, A. Askar, D. Kim, F. Fleischer, J. Cho, J. Kim, K. Ko, I. Yun, S. Park, D. Baik, H. Lee, H. Heo, M. Gwon, M. Lee, M. Baek, S. Min, W. Kim, Y. Jin, Y. Park, Y. Choi, J. Jung, G. Lee, J. Jang, K. Kim, Y. Cha, and Y. Kim, “Atlantis: Ai-driven threat localization, analysis, and triage intelligence system,” 2025. [Online]. Available: https://arxiv.org/abs/2509.14589
[50] J. Yang, C. E. Jimenez, A. Wettig, K. Lieret, S. Yao, K. Narasimhan, and O. Press, “Swe-agent: Agent-computer interfaces enable automated software engineering,” vol. 37, 2024, pp. 50 528–50 652.
[51] S. Ouyang, W. Yu, K. Ma, Z. Xiao, Z. Zhang, M. Jia, J. Han, H. Zhang, and D. Yu, “Repograph: Enhancing AI software engineering with repository-level code graph,” in The Thirteenth International Conference on Learning Representations, 2025. [Online]. Available: https://openreview.net/forum?id=dw9VUsSHGB
[52] A. Antoniades, A. Örwall, K. Zhang, Y. Xie, A. Goyal, and W. Y. Wang, “SWE-search: Enhancing software agents with monte carlo tree search and iterative refinement,” in The Thirteenth International Conference on Learning Representations, 2025. [Online]. Available: https://openreview.net/forum?id=G7sIFXugTX
[53] J. Xu, Y. Fu, S. H. Tan, and P. He, “Aligning the objective of llm-based program repair,” in 2025 IEEE/ACM 47th International Conference on Software Engineering (ICSE). IEEE, 2025, pp. 2548–2560.
[54] K. Huang, J. Zhang, X. Meng, and Y. Liu, “Template-guided program repair in the era of large language models.” in ICSE, 2025, pp. 1895–1907.
[55] Y. Shi, S. Wang, C. Wan, M. Wang, and X. Gu, “From code to correctness: Closing the last mile of code generation with hierarchical debugging,” arXiv preprint arXiv:2410.01215, 2024.
[56] I. Bouzenia, P. Devanbu, and M. Pradel, “Repairagent: An autonomous, llm-based agent for program repair,” in 2025 IEEE/ACM 47th International Conference on Software Engineering (ICSE). IEEE, 2025, pp. 2188–2200.
[57] C. Lee, C. S. Xia, L. Yang, J.-t. Huang, Z. Zhu, L. Zhang, and M. R. Lyu, “Unidebugger: Hierarchical multi-agent framework for unified software debugging,” in Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, 2025, pp. 18237–18266.
[58] W. Tao, Y. Zhou, Y. Wang, W. Zhang, H. Zhang, and Y. Cheng, "MAGIS: LLM-based multi-agent framework for github issue resolution," in The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. [Online]. Available: https://openreview.net/forum?id=qevq3FZ63J