Structurally Aligned Subtask-Level Memory for Software Engineering Agents
Kangning ShenJZJingyuan ZhangChenxi SunWencong ZengYang Yue
Kangning Shen
JZJingyuan Zhang
Chenxi Sun
Wencong Zeng
Yang Yue
+5
Instance-level memory in software engineering agents treats each problem-solving episode as an atomic unit, causing a granularity mismatch: tasks with similar surface descriptions may require different reasoning at specific stages. This paper proposes Structurally Aligned Subtask-Level Memory, which aligns storage, retrieval, and updating with the agent's functional decomposition. On SWE-bench Verified, it outperforms vanilla agents and instance-level baselines, improving mean Pass@1 by +4.7 pp on average (e.g., +6.8 pp on Gemini 2.5 Pro), with gains increasing over more interaction steps.

arXiv ·
· February 25, 2026