cs.SEApr 12, 2026

PatchRecall: Patch-Driven Retrieval for Automated Program Repair

Authors: Mahir Labib Dihan, Faria Binta Awal, Md. Ishrak Ahsan

Organizations: Department of Computer Science and Engineering, Bangladesh University of Engineering and Technology (BUET)

Abstract

Retrieving the correct set of files from a large codebase is a crucial step in Automated Program Repair (APR). High recall is necessary to ensure that the relevant files are included, but simply increasing the number of retrieved files introduces noise and degrades efficiency. To address this tradeoff, we propose PatchRecall, a hybrid retrieval approach that balances recall with conciseness. Our method combines two complementary strategies: (1) codebase retrieval, where the current issue description is matched against the codebase to surface potentially relevant files, and (2) history-based retrieval, where similar past issues are leveraged to identify edited files as candidate targets. Candidate files from both strategies are merged and reranked to produce the final retrieval set. Experiments on SWE-Bench demonstrate that PatchRecall achieves higher recall without significantly increasing retrieved file count, enabling more effective APR.

Figures & tables

Explore similar work

CardsList
  1. RepoRepair: Leveraging Code Documentation for Repository-Level Automated Program Repair

    Mar 1, 2026Zhongqiang Pan, Chuanyi Li, Wenkang Zhong +3Repository-Level Program RepairAutomated Program Repair

  2. QiMeng-PRepair: Precise Code Repair via Edit-Aware Reward Optimization

    Apr 7, 2026Changxin Ke, Rui Zhang, Jiaming Guo +10Automated Program RepairLLM Code Generation