Learning on the Job: An Experience-Driven Self-Evolving Agent for Long-Horizon Tasks

Cheng Yang, Xuemeng Yang, Licheng Wen, Daocheng Fu, Jianbiao Mei, Rong Wu, Pinlong Cai, Yufan Shen, Nianchen Deng, Jia Xu, Botian Shi, Yu Qiao, Haifeng Li

TL;DR

This paper introduces MUSE, a novel agent framework that allows Large Language Models (LLMs) to learn and improve on the job by accumulating experience. Unlike static LLM agents, MUSE continuously refines its capabilities through a "Plan-Execute-Reflect-Memorize" loop, achieving state-of-the-art performance on complex, long-horizon tasks.

What Problem Does This Paper Address?

Deploying LLMs as agents for real-world, long-horizon tasks (like managing projects or automating workflows) is challenging. Current LLM agents are "test-time static," meaning their capabilities are fixed after initial training. They can't learn from their successes or failures during task execution, leading to a lack of continuous improvement and an inability to adapt to new situations or become more efficient over time. This "amnesiac executor" problem limits their practical utility in dynamic environments.

Methods

MUSE tackles this by introducing an experience-driven, self-evolving system built around a hierarchical Memory Module. The core of the framework is a "Plan-Execute-Reflect-Memorize" loop:

  1. Plan-Execute (PE) Agent: Decomposes tasks into sub-tasks and executes them using a minimal, general-purpose toolset. It leverages its memory to guide actions.
  2. Reflect Agent: After each sub-task, this agent autonomously evaluates the PE Agent's performance, checking for truthfulness, completeness, and data fidelity.
  3. Memorize:
    • If a sub-task is successful, the Reflect Agent distills the successful trajectory into Procedural Memory (step-by-step guides for specific tasks).
  4. If a sub-task fails, it generates a failure analysis to inform replanning.
  5. After the entire task, the Reflect Agent synthesizes broader insights into Strategic Memory (high-level principles) and Tool Memory (optimized tool usage).

This continuous cycle allows the agent to learn from its experiences, update its knowledge base, and improve its performance over time without requiring LLM fine-tuning. The memory is stored in natural language, making it LLM-agnostic for potential transferability.

Datasets

  • TheAgentCompany (TAC) benchmark: This is the primary dataset used for evaluation. TAC simulates a high-fidelity corporate environment with 175 complex, long-horizon tasks spanning various employee roles and requiring interaction with multiple applications (chat, cloud storage, project management). It's designed to assess real-world problem-solving and multi-step planning.

Key Insights and Ideas

  • Learning on the Job is Crucial: The paper strongly argues that for real-world agents, the ability to learn and adapt during task execution is paramount, moving beyond static, pre-trained capabilities.
  • Hierarchical Memory is Key: Organizing experience into different levels (strategic, procedural, tool-specific) allows for efficient retrieval and application, enabling more robust and adaptable behavior.
  • Reflection is Essential for Learning: The Reflect Agent's role in autonomously evaluating performance and extracting structured knowledge is critical for the self-evolution process.
  • LLM-Agnostic Memory: Storing memory in natural language allows for potential transfer of learned skills between different LLMs, a significant advantage for future agent development.
  • Generalization through Experience: Accumulated experience not only improves performance on known tasks but also enables zero-shot generalization to new, unseen tasks.

Key Results

  • State-of-the-Art Performance: MUSE achieved new SOTA performance on the TAC benchmark with an average partial completion score ($S_{partial}$) of 51.78%, a nearly 20% improvement over the previous SOTA.
  • Significant Improvement with Memory: Even without memory, the MUSE framework with a lightweight Gemini-2.5 Flash model showed strong performance. However, when equipped with its learned memory, performance improved substantially, demonstrating the effectiveness of the memory mechanism.
  • Continuous Learning: Experiments showed steady and monotonic growth in performance metrics ($S_{ckpt}$ and $S_{partial}$) across three iterative learning cycles, with MUSE outperforming a memory-less baseline by over 10% in the final round.
  • Zero-Shot Generalization: On a challenging subset of TAC tasks ($T_{hard}$), MUSE with its learned memory significantly outperformed a baseline agent without memory, showcasing its ability to transfer knowledge to novel scenarios.

Limitations and Future Work

  • Task Ambiguity and Rigidity: The authors note limitations with the TAC benchmark itself, including ambiguous task descriptions and rigid evaluation scripts that may not account for all valid agent strategies.
  • Memory Architecture Limitations: While powerful, the current memory architecture has limitations in handling very specific tasks like high-level planning or multi-hop search.
  • Human Feedback Integration: MUSE is currently fully autonomous, but its memory module architecture is designed to facilitate the incorporation of human feedback, which could further enhance performance and enable collaborative iteration.
  • Future Vision: The authors envision agents that continuously accumulate experience through long-term practice, learn by contrasting successes and failures, and ultimately realize enduring growth in competence through this continuous learning paradigm.

Summary updated

BibTeX
@inproceedings{yang2026learning,
  author = {Cheng Yang and Xuemeng Yang and Licheng Wen and Daocheng Fu and Jianbiao Mei and Rong Wu and Pinlong Cai and Yufan Shen and Nianchen Deng and Jia Xu and Botian Shi and Yu Qiao and Haifeng Li},
  title = {{Learning on the Job: An Experience-Driven Self-Evolving Agent for Long-Horizon Tasks}},
  booktitle = {LLA @ ICLR},
  year = {2026},
  url = {https://openreview.net/forum?id=qTpFp3ixnv},
}
Figure