Most agent frameworks nonetheless run a predefined Motive, Act, Observe loop, so the agent can solely use the instruments which might be injected within the immediate. This works for small duties, but it surely fails when the toolset is giant, when the duty is lengthy, and when the agent should change technique in the midst of reasoning. The staff from Renmin College of China and Xiaohongshu proposes DeepAgent as an finish to finish deep reasoning agent that retains all of this inside one coherent reasoning course of.

Unified Reasoning With On Demand Device Discovery
DeepAgent lets the mannequin output 4 motion sorts immediately in textual content, inside thought, software search, software name, and reminiscence fold. When the agent decides to look, it queries a dense index that comprises software descriptions from giant registries, for instance 16,000 plus RapidAPI instruments and three,912 ToolHop instruments, then it receives solely the highest ranked instruments again in context. This makes software entry dynamic, the mannequin doesn’t rely upon a entrance loaded software record, and it stays aligned with actual environments the place instruments change.
Autonomous Reminiscence Folding for Lengthy Horizon Duties
Lengthy sequences of software calls, internet outcomes, and code responses will overflow the context. DeepAgent solves this with an autonomous reminiscence folding step. When the mannequin emits the fold token, an auxiliary LLM compresses the complete historical past into three reminiscences, Episodic Reminiscence that information job occasions, Working Reminiscence that information the present sub objective and up to date points, and Device Reminiscence that information software names, arguments, and outcomes. These reminiscences are fed again as structured textual content, so the agent continues from a compact however data wealthy state.
ToolPO, Reinforcement Studying for Device Use
Supervised traces don’t educate sturdy software use, as a result of appropriate software calls are just a few tokens inside an extended technology. The analysis staff introduce Device Coverage Optimization, ToolPO, to repair this. ToolPO runs rollouts on LLM simulated APIs, so coaching is secure and low-cost, then it attributes reward to the precise software name tokens, that is software name benefit attribution, and it trains with a clipped PPO type goal. That is how the agent learns not solely to name instruments, but in addition to determine when to look and when to fold reminiscence.


Benchmarks, Labeled Instruments vs Open Set Instruments
The analysis staff evaluates on 5 basic software use benchmarks, ToolBench, API Financial institution, TMDB, Spotify, ToolHop, and on 4 downstream duties, ALFWorld, WebShop, GAIA, HLE. Within the labeled software setting, the place each technique is given the precise instruments it wants, DeepAgent 32B RL with a QwQ 32B spine stories 69.0 on ToolBench, 75.3 on API Financial institution, 89.0 on TMDB, 75.4 on Spotify, and 51.3 on ToolHop, which is the strongest 32B degree end result throughout all 5 datasets. Workflow baselines similar to ReAct and CodeAct can match single datasets, for instance ReAct with robust fashions is excessive on TMDB and Spotify, however none of them keep excessive on all 5, so the truthful abstract is that DeepAgent is extra uniform, not that others are all the time low.
Within the open set retrieval setting, which is the reasonable one, DeepAgent should first discover instruments after which name them. Right here DeepAgent 32B RL reaches 64.0 on ToolBench and 40.6 on ToolHop, whereas the strongest workflow baselines attain 55.0 on ToolBench and 36.2 on ToolHop, so the tip to finish agent nonetheless holds the lead. The analysis staff additionally exhibits that autonomous software retrieval itself lifts workflow brokers, however DeepAgent positive factors extra, which confirms that the structure and the coaching are matched to giant toolsets.


Downstream Environments
On ALFWorld, WebShop, GAIA, and HLE, all beneath a 32B reasoning mannequin, DeepAgent stories 91.8 % success on ALFWorld, 34.4 % success and 56.3 rating on WebShop, 53.3 on GAIA, and a better rating than workflow brokers on HLE. These duties are longer and noisier, so the mix of reminiscence folding and ToolPO is the seemingly supply of the hole.
Key Takeaways
- DeepAgent retains the entire agent loop inside one reasoning stream, the mannequin can suppose, search instruments, name them, and proceed, so it isn’t restricted to a set ReAct type workflow.
- It makes use of dense retrieval over giant software registries, 16,000 plus RapidAPI instruments and about 3,900 ToolHop instruments, so instruments wouldn’t have to be pre listed within the immediate, they’re found on demand.
- The autonomous reminiscence folding module compresses lengthy interplay histories into episodic, working, and power reminiscences, which prevents context overflow and retains lengthy horizon reasoning secure.
- Device Coverage Optimization, ToolPO, trains software use finish to finish with simulated APIs and token degree benefit attribution, so the agent learns to concern appropriate software calls, not solely to achieve the ultimate reply.
- On 5 software benchmarks and 4 downstream duties, DeepAgent at 32B scale is extra constant than workflow baselines in each labeled software and open set settings, particularly on ToolBench and ToolHop the place software discovery issues most.


DeepAgent is a sensible step towards agent architectures that don’t rely upon fastened software prompts, as a result of it unifies autonomous considering, dense software retrieval over 16,000 plus RapidAPIs and three,900 plus ToolHop instruments, structured software calling, and reminiscence folding in a single loop. The usage of LLM simulated APIs in ToolPO is an engineering alternative, but it surely solves the latency and instability drawback that hurts prior software brokers. The analysis exhibits constant 32B degree positive factors in each labeled software and open set settings, not remoted peaks. This launch makes giant toolspaces really usable for LLM brokers. General, DeepAgent confirms that finish to finish software brokers with reminiscence and RL are rising because the default sample.
Try the Paper and GitHub Repo. Be happy to take a look at our GitHub Web page for Tutorials, Codes and Notebooks. Additionally, be at liberty to observe us on Twitter and don’t neglect to hitch our 100k+ ML SubReddit and Subscribe to our E-newsletter. Wait! are you on telegram? now you may be a part of us on telegram as nicely.
Asif Razzaq is the CEO of Marktechpost Media Inc.. As a visionary entrepreneur and engineer, Asif is dedicated to harnessing the potential of Synthetic Intelligence for social good. His most up-to-date endeavor is the launch of an Synthetic Intelligence Media Platform, Marktechpost, which stands out for its in-depth protection of machine studying and deep studying information that’s each technically sound and simply comprehensible by a large viewers. The platform boasts of over 2 million month-to-month views, illustrating its reputation amongst audiences.
Elevate your perspective with NextTech Information, the place innovation meets perception.
Uncover the newest breakthroughs, get unique updates, and join with a worldwide community of future-focused thinkers.
Unlock tomorrow’s traits at the moment: learn extra, subscribe to our e-newsletter, and turn into a part of the NextTech group at NextTech-news.com

