PatchHolmes: An agent-based patch retrieval system using list-style selectionPatchHolmes: Agentic Patch Retrieval via Listwise Selection
Translation in progress — untranslated text is omitted.
PatchHolmes proposes a method that lets an AI agent read the top 100 candidate commits at once and open commits one by one through four budget-constrained tools to locate vulnerability-fixing patches, improving Recall@1 from 34.61% for pointwise systems to 59.95%. The system requires no fine-tuning or paid search APIs, relies solely on frozen open-source weight models running on a local Git clone repository, and consumes about 96,000 input tokens, performs 8 tool calls, and reads 5 commits per run.
- Vulnerability management requires mapping disclosed vulnerabilities to fix commits, but 60%–63% of CVEs in major announcement databases lack patch links. Patch retrieval faces large repositories, long diffs, and little lexical overlap, and pointwise scoring struggles to break ties.
- PatchHolmes works in two phases: BM25 with time decay and Qwen3-Embedding-8B are fused via RRF into a top-100, then an agent with four budgeted tools reads 3–10 commits list-style and submits one best commit.
- On GitHubAD's 809 CVEs, Qwen3-235B's Recall@1 is 59.95%, higher than Favia's 34.61% and IRCoT's 28.55%. On the same candidate set, the agent adds 27.32 percentage points over the retriever's first rank; switching to PatchFinder_top10, it rises from 24.28% to 39.86%.
- The authors note that only CVEs with existing patch links can be evaluated, the recoverable ceiling for PatchFinder_top10 is 46.10%, very large repositories used median imputation in sampling, and multi-fix CVEs record only some legitimate commits. The main evaluation results are on a working subset of 809 CVEs with an open-weight backbone model.
Related events and news
1 events · 0 news mentions
- This event's paper
PatchHolmes:智能体列表式补丁检索