Memory-augmented program repair uses past repair experiences to help LLMs fix bugs, but existing approaches have three problems: (1) memory is unevenly distributed across repositories, leaving low-resource repos unsupported; (2) more memories do not always help; relevance and quality matter more; (3) repositories often have abundant reproduction memories but scarce patch or refinement memories. The authors propose AdaRepair-Mem, which addresses these with three mechanisms: coverage-aware retrieval (uses cross-repo memories when same-repo is thin), quality-aware selection (ranks by relevance, utility, specificity, redundancy), and stage-aware routing (retrieves different memories for each repair stage). Evaluated on SWE-Bench-Lite and SWE-Bench-Verified, the framework improves repair on under-covered repositories, reduces noisy retrievals, and better converts failed patches to successful fixes. This is interesting because it shows that careful orchestration of memory retrieval matters more than simply accumulating historical data.
Program repair improves when memories match repository needs and repair stages
AdaRepair-Mem selects historical repair experiences by coverage, quality, and workflow stage rather than relying on same-repository retrieval alone.
Chinese Tech
Z. C. Luo · J. C. Guo · W. J. He · S. Y. Wang · J. C. Yu · F. M. Zhao · +7 more
Zhejiang University · Tencent
Research Digest··2 min read
Thread:Memory Management for Agents
In one line
Adaptive retrieval of repair experiences by coverage, quality, and stage improves repository-level program repair.
Before you read this
Two ideas this paper builds onRead it as
Luo and colleagues developed an adaptive memory-retrieval framework for large-language-model-based repository repair.
The authors first analyzed memory-augmented repository repair and identified three problems: repair histories are unevenly distributed across repositories, larger memory stores do not consistently improve success, and stored experiences are often concentrated in some repair stages but scarce in others.
The Daily Edition
The front page in your inbox each weekday morning: the lead, the picks, and why each one earned its place.