TLDR: DeepAgent is a novel AI agent that integrates autonomous thinking, tool discovery, and action execution into a single, coherent reasoning process. It features an autonomous memory folding mechanism to compress interaction history, preventing context overload and error accumulation. DeepAgent is trained using ToolPO, an end-to-end reinforcement learning strategy that employs LLM-simulated APIs and fine-grained credit assignment for stable and efficient tool learning. Extensive experiments show DeepAgent consistently outperforms baselines on various general tool-use and downstream application benchmarks, demonstrating its superior capability in handling complex, long-horizon tasks with scalable toolsets.
In the rapidly evolving world of artificial intelligence, large reasoning models have shown incredible abilities to solve problems. However, real-world tasks often demand more than just raw processing power; they require the ability to use external tools and engage in long, complex interactions. This is where a new framework called DeepAgent steps in, offering a fresh perspective on how AI agents can tackle these challenges.
Developed by researchers Xiaoxi Li, Wenxiang Jiao, Jiarui Jin, Guanting Dong, Jiajie Jin, Yinuo Wang, Hao Wang, Yutao Zhu, Ji-Rong Wen, Yuan Lu, and Zhicheng Dou, DeepAgent is designed as an end-to-end deep reasoning agent. Unlike traditional AI frameworks that follow rigid, predefined steps, DeepAgent operates with a single, continuous reasoning process. This means it can autonomously think, discover the tools it needs, and execute actions, all within a coherent flow.
Addressing the Challenges of Long Interactions
One of the biggest hurdles for AI agents in real-world scenarios is managing long-horizon interactions. This often leads to a ‘context length explosion’ – too much information from multiple tool calls and interaction history, which can overwhelm the model and lead to errors. DeepAgent introduces an innovative solution: an autonomous memory folding mechanism. This mechanism compresses past interactions into structured episodic, working, and tool memories. By doing so, it significantly reduces the accumulation of errors while preserving all the critical information the agent needs. It’s like the agent taking a ‘deep breath’ to consolidate its thoughts and reconsider its strategy, preventing it from getting stuck in unproductive paths.
Learning to Use Tools Efficiently with ToolPO
To ensure that DeepAgent can learn to use a wide variety of tools both efficiently and stably, the researchers developed an end-to-end reinforcement learning strategy called ToolPO. This method addresses two key challenges in training AI agents for tool use. First, relying on thousands of real-world APIs during training can be unstable, slow, and costly. ToolPO overcomes this by leveraging LLM-simulated APIs, creating a stable and efficient training environment. Second, a simple reward for the final outcome isn’t enough to guarantee that intermediate tool calls are correct. ToolPO tackles this by using ‘tool-call advantage attribution,’ which assigns precise credit to the specific parts of the agent’s thought process that led to correct tool invocations, providing a more effective learning signal.
Also Read:
- A New Standard for Evaluating AI’s Scientific Research Capabilities
- DeepMind’s Dreamer 4 AI Agent Masters Complex Tasks Through Scalable World Models and Offline Learning
Superior Performance Across Diverse Tasks
DeepAgent’s capabilities were put to the test across a wide range of benchmarks, including general tool-use tasks like ToolBench, API-Bank, TMDB, Spotify, and ToolHop, as well as downstream applications such as ALFWorld, WebShop, GAIA, and Humanity’s Last Exam (HLE). The results were impressive, showing that DeepAgent consistently outperforms existing baselines. This holds true for scenarios where tools are explicitly labeled and for more challenging ‘open-set’ scenarios where the agent must dynamically discover tools from a vast collection.
The research highlights that DeepAgent’s end-to-end reasoning process is more effective than rigid, workflow-based methods, especially in complex tasks requiring dynamic tool discovery. The ToolPO training further enhances its tool-usage capabilities, and the autonomous memory folding mechanism proves crucial for robust long-term interaction. Furthermore, DeepAgent demonstrates strong scalability, with its performance gap widening against baselines as the maximum number of actions increases, indicating its strategic approach to task-relevant actions.
This work marks a significant step towards creating more general and capable AI agents that can truly thrive in real-world applications. For those interested in diving deeper into the technical details, the full research paper can be found here.


