SWE-Exp: Experience-Driven Software Issue Resolution
Silin Chen, Shaoxin Lin, Yuling Shi, Heng Lian, Xiaodong Gu, Longfei Yun, Dong Chen, Lin Cao, Jiyang Liu, Nu Xia, Qianxiang Wang
TL;DR
SWE-Exp addresses the memoryless exploration limitation of current automated software-engineering agents by introducing an experience-driven framework that distills actionable knowledge from past repair trajectories into a multi-facet Experience Bank. A dual-agent architecture (Instructor and Assistant) leverages retrieved experiences to guide high-level problem understanding, fault localization, and low-level code edits, transforming repair from trial-and-error to strategic planning. Empirical evaluation on SWE-Bench-Verified shows state-of-the-art performance, with $Pass@1=73.0\%$ when using Claude-4 Sonnet, and ablation studies demonstrate the additive value of comprehension and modification experiences as well as the dual-agent setup. The approach enables cross-repository knowledge transfer and provides a scalable, cost-conscious framework for continuous improvement of automated software repair systems, signaling a shift toward experience-guided autonomous coding.
Abstract
Recent advances in large language model (LLM) agents have shown remarkable progress in software issue resolution, leveraging advanced techniques such as multi-agent collaboration and Monte Carlo Tree Search (MCTS). However, current agents act as memoryless explorers - treating each problem separately without retaining or reusing knowledge from previous repair experiences. This leads to redundant exploration of failed trajectories and missed chances to adapt successful issue resolution methods to similar problems. To address this problem, we introduce SWE-Exp, an experience-enhanced approach that distills concise and actionable experience from prior agent trajectories, enabling continuous learning across issues. Our method introduces a multi-faceted experience bank that captures both successful and failed repair attempts. Specifically, it extracts reusable issue resolution knowledge at different levels - from high-level problem comprehension to specific code changes. Experiments show that SWE-Exp achieves a Pass@1 resolution rate of 73.0% on SWE-Bench Verified using the state-of-the-art LLM Claude 4 Sonnet, significantly outperforming prior results under other agent frameworks. Our approach establishes a new paradigm in which automated software engineering agents systematically accumulate and leverage repair expertise, fundamentally shifting from trial-and-error exploration to strategic, experience-driven issue resolution.
