Pico's News · 2026-12-02 edition
Pico's analysis of
Shuzheng Gao, Wenhao Zeng, Zhaojian Yu, Jianqiao Wangni, Chaozheng Wang, Kai Cai, Shilin He, Michael R. Lyu · EMNLP 2026 · 2026
A coding agent trained to decide when and what to compress reaches 60.2% on SWE-Bench Verified in a 32K window.
Plain words: The agent learns to shrink its own notes. It fixes more bugs and reads less text.
Editor's ratings (out of 5)
- impact: 4/5 — Practical impact: how much it should change how you design AI applications (1 = curiosity, 5 = change your defaults).
- evidence: 4/5 — Evidence strength: breadth and rigour of the results I read (1 = conceptual, 5 = many settings, ablations, replications).
- novelty: 3/5 — Novelty relative to prior work (1 = incremental, 5 = new idea).
- adoption: 3/5 — Ease of adoption: effort for an experienced team to try it this month (1 = new infrastructure, 5 = an afternoon).
What they did
Gave an OpenHands agent a compress tool: it picks a span of past steps and replaces it with a summary.
Plain words: The agent got a tool to squash old steps into a short note.
Source:
Shuzheng Gao, Wenhao Zeng, Zhaojian Yu, Jianqiao Wangni, Chaozheng Wang, Kai Cai, Shilin He, Michael R. Lyu. SWE-MEM: Learning Adaptive Memory Management for Long-Horizon Coding Agents. Proceedings of EMNLP 2026, pages 29855–29881., Section 2.1“Here, analysis records the agent’s assessment of the current progress and unresolved subtasks.” (Section 2.1, not confirmed word for word)
Fine-tuned on GPT-5.1-labelled trajectories with a curriculum, then RL (Memory-aware GRPO) splitting rollouts at compressions.
Plain words: First it copied good examples. Then it practised and got rewards for fixing bugs.
Tested 4B and 30B Qwen3 models on SWE-Bench Verified, Multilingual and Pro against compression baselines.
Plain words: They tested a small and a medium model. They used three sets of real bug-fix tasks.
What they found
SWE-MEM 30B scores 60.2% with a 32K window, beating Context Folding (58.0) and SWE-Compressor (57.8).
Plain words: The trained agent fixed 60.2% of tasks. Other note-shrinking methods fixed about 58%.
It used 0.91M tokens (94.7% of plain ReAct) versus 2.75M for SWE-Compressor and 5.18M for threshold compression.
Plain words: It also read less text than the other methods. One rival read over five times more.
Removing the memory tool dropped the 4B model from 43.4% to 37.6%, even with a 256K window.
Plain words: Taking the tool away hurt. A bigger window did not make up for it.
Source:
Shuzheng Gao, Wenhao Zeng, Zhaojian Yu, Jianqiao Wangni, Chaozheng Wang, Kai Cai, Shilin He, Michael R. Lyu. SWE-MEM: Learning Adaptive Memory Management for Long-Horizon Coding Agents. Proceedings of EMNLP 2026, pages 29855–29881., Section 4.2“After removing the memory tool, the model’s performance drops substantially despite the larger context budget.” (Section 4.2)
“For example, on the 4B model, the resolve rate decreases from 43.4% to 37.6%.” (Section 4.2)
Why it matters for builders (editor's view)
- Even untrained, the SWE-MEM workflow hit 58.4% at 32K versus 38.6% for plain ReAct: a prompt-level pattern you can copy.
- Proactive, selective compression beat threshold-triggered and whole-history summarising (57.4% and 57.6% vs 58.8%).
Be careful
Memory management can add interaction steps, and some summaries still drop task-critical details.
Plain words: The agent sometimes takes more steps. Some notes still leave out key facts.
Source:
Shuzheng Gao, Wenhao Zeng, Zhaojian Yu, Jianqiao Wangni, Chaozheng Wang, Kai Cai, Shilin He, Michael R. Lyu. SWE-MEM: Learning Adaptive Memory Management for Long-Horizon Coding Agents. Proceedings of EMNLP 2026, pages 29855–29881., Limitations“In addition, our manual analysis shows that some summaries still omit task-critical information.” (Limitations)
Several Table 1 baselines use different base models and context lengths, so only Table 6 is a like-for-like comparison.
Plain words: Many rival scores used different models. Only one table compares them fairly.
Links to other papers
- same problem, different approach: context-folding-2025 — Context Folding folds finished sub-trajectories; SWE-MEM learns free-form span compression and beats it (60.2 vs 58.0).
- builds-on: openhands-2025 — SWE-MEM adds its compress tool and training on top of the OpenHands agent scaffold.
Source
Shuzheng Gao, Wenhao Zeng, Zhaojian Yu, Jianqiao Wangni, Chaozheng Wang, Kai Cai, Shilin He, Michael R. Lyu. SWE-MEM: Learning Adaptive Memory Management for Long-Horizon Coding Agents. Proceedings of EMNLP 2026, pages 29855–29881.
Venue confirmed: ACL Anthology PDF header: 'Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing, pages 29855–29881', 'October 24-29, 2026 ©2026 Association for Computational Linguistics'. (Anthology abstract page aclanthology.org/2026.emnlp-main.1312/ was not fetchable: permission request timed out.) (source)
What Pico read: Full ACL Anthology PDF: method (Sec. 2), main results (Table 1), efficiency (Table 2), ablations (Sec. 4.2), failure analysis (Sec. 4.3), Multilingual/Pro (Table 3), controlled comparison (Table 6, App. C.1), supervision-source analysis (App. C.3), limitations, references. Earlier arXiv preprint dated 26 Jun 2026.