Failure Broadens, Success Sharpens: Continual Adaptation of Tool-Use Agents Across Diverse Tasks with Dual-Polarity Memory
Tianmai M. Zhang, Hoda Shajari, Amr Hendy, Xiaohu Liu, Piyush Behre, Omar Zia Khan, Ankur Gupta
Abstract
Large language model agents can self-improve over time by utilizing procedural memory derived from prior task trajectories, yet the distinct utilities of memories derived from local successes and failures remain underexplored. This work studies this question in a realistic setting with heterogeneous streams of multi-domain tool-use tasks and various environment constraints common in real-world scenarios. We develop Dual-Polarity Memory with Periodic Maintenance (DualPM), a simple, retrieval-free memory workflow characterized by (1) customizable reflection and procedural memory generation from both local successes and failures within each trajectory, and (2) periodic memory consolidation over long task streams under a given memory capacity, preventing memory explosion. Online prequential evaluation with fine-grained metrics reveals that failure memory more strongly broadens coverage, success memory better streamlines execution, while combining both polarities effectively integrates both benefits. Further studies demonstrate that DualPM enables cross-domain memory generalization and continual memory adaptation, while external evaluation on EvoMemBench reveals the portability and effectiveness of DualPM as a general long-term procedural memory method.
Create a lesson
Metadata
- Comments
- Accepted at NeurIPS 2026 Workshop: Towards Test-Time Continual Learning Agents
Related papers
Leto: Utility-Centric Agent Memory
Shared title terminologycs.CLShuguang Chen, Salman Paracha
ToolSmith: An Automatic Tool-Generation Framework for Multimodal Search Agents
Shared title terminologycs.CLRui Sun, Junhua Huang, Luca Zancato et al.
Sports Agent: A Self-Evolving System for Conversational Data Analytics
Shared title terminologycs.CLChao Chen, Fuqi Lin, Ze Chen et al.
AI-human hybrid conversations: Can AI Agents Improve Discourse Quality?
Shared title terminologycs.CLIshita Chakraborty, Xingjian You, Shrabastee Banerjee
AIChipBench: Benchmarking LLM Agents for Automated AI Accelerator Design
Shared title terminologycs.CLGuangyuan Wang, Chengran Li, Minchen Luo et al.
Bathys: Advancing Deep Search Agents
Shared title terminologycs.CLZixuan Chen, Shengyou Yuan, Nang Yuan et al.