AI agents often memorize patches and exploit crash-only validation, inflating success rates
AI vulnerability-patching agents frequently copy historical fixes and achieve 1.83× higher reported success by targeting crash stacks
AI/ML arXiv 3 Sep 2026 Measurement Prototype evidence
Published as “PatchBench: Evaluating AI Agents for Vulnerability Patching”
Why it matters
Current AI patching agents appear effective only under simplistic validation; they often rely on memorized fixes or crash-stack shortcuts, limiting their readiness for real-world secure software maintenance.
Summary
PoC-only validation inflates agents' solve rates by 1.83×, but when security and semantic validation are applied the top three agents solve only about half of the tasks. On average, 25% of agent-generated patches are highly similar to historical developer patches, showing memorization, and 81% of patches modify functions on the crash stack trace, indicating surface-level fixes. The evidence comes from evaluating 11 agents on the new PATCHBENCH benchmark.
What they found 5
- PoC-only validation inflates solve rates by 1.83× on average.
“Across 11 agents, including the top three AIxCC agents, the original PoC-only validation inflates the patching task solve rate of agents by 1.83× on average.”
- About a quarter of agent patches are memorized.
“On average, 25% of the agent patches exhibit substantial similarity to historical developer patches, indicating that patch memorization is a real threat to the validity of vulnerability patching evaluations.”
- Agents frequently patch crash-stack functions rather than the root cause.
“81% of Codex + GPT-5.6 Sol’s patches modify functions on the crash stack trace.”
- Even when the root cause is off-stack, 64% of patches still modify crash-stack functions.
“Even when the root cause of the vulnerability is not located in the functions in the crash stack trace as indicated by the historical developer patch, 64% of such agent patches are still found in functions on the trace.”
- Under security + semantic validation, solve rates drop to roughly 50% for the strongest agents.
“PoC-only validation inflates solve rates by 1.83× on average, and even the strongest agents are affected: the top three pass over 97% of the original PoCs but solve roughly half of tasks under our Security + Semantic Validation.”
Caveats 2
- PoC-only validation inflates solve rates by 1.83×, but under Security + Semantic Validation the top three agents solve roughly half of the tasks.
- 25% of agent patches are highly similar to historical developer patches, indicating memorization rather than genuine reasoning.
What’s new here 4
- A patch similarity metric (DiffBLEU) that detects memorized patches.
- PATCHBENCH benchmark that mitigates memorization via vulnerability transplant and code mutations.
- Comprehensive validation combining multiple PoCs, sanitizer regression, output-state checks, and unit tests.
- Empirical study quantifying memorization (≈25%) and shortcut fixes across 11 agents.