AutoRefine: From Trajectories to Reusable Expertise for Continual LLM Agent Refinement
Libin Qiu, Zhirong Gao, Junfu Chen, Yuhang Ye, Weizhi Huang, Xiaobo Xue, Wenkai Qiu, Shuo Tang
TL;DR
AutoRefine tackles the problem of continual knowledge accumulation for LLM-based agents by introducing dual-form Experience Patterns: Skill Patterns for static procedural knowledge and Subagent Patterns for complex, stateful subtasks. A continuous maintenance mechanism scores, prunes, and merges patterns to prevent repository degradation, enabling scalable and reusable knowledge over time. Empirical results across ALFWorld, ScienceWorld, and TravelPlanner show strong performance gains, including automatic extraction surpassing some manual baselines and substantial reductions in task steps. The framework demonstrates that combining pattern-based procedural guidance with autonomous subagents yields robust cross-task transfer and improved planning under constraints, with practical implications for deploying more reliable and scalable autonomous agents. Future work points to incorporating failure-driven learning, adaptive hyperparameters, and broader domain transfer to further enhance the approach’s applicability.
Abstract
Large language model agents often fail to accumulate knowledge from experience, treating each task as an independent challenge. Recent methods extract experience as flattened textual knowledge, which cannot capture procedural logic of complex subtasks. They also lack maintenance mechanisms, causing repository degradation as experience accumulates. We introduce AutoRefine, a framework that extracts and maintains dual-form Experience Patterns from agent execution histories. For procedural subtasks, we extract specialized subagents with independent reasoning and memory. For static knowledge, we extract skill patterns as guidelines or code snippets. A continuous maintenance mechanism scores, prunes, and merges patterns to prevent repository degradation. Evaluated on ALFWorld, ScienceWorld, and TravelPlanner, AutoRefine achieves 98.4%, 70.4%, and 27.1% respectively, with 20-73% step reductions. On TravelPlanner, automatic extraction exceeds manually designed systems (27.1% vs 12.1%), demonstrating its ability to capture procedural coordination.
