Agent Loop: Recursive Agent Optimization
- 1Recursive Agent Optimization · 2026Recursive Agent Optimization We introduce Recursive Agent Optimization (RAO), a reinforcement learning approach for training recursive agents: agents that can spawn and delegate sub-tasks to new instantiations of themselves recursively. Recursive …PDFarXivPosts about this paper 1
Most agent harnesses support subagents these days. However, there is a huge gap between enabling agents to spawn subagents and teaching them to delegate effectively.
- Delegating a task involves questions like these:
- Should I handle this myself or delegate it?
- How should I break this task down?
- What information should I pass to the subagent?
- Can the subtasks run concurrently, or do they need to run sequentially?
- How should I combine the results?
- Delegating a task involves questions like these:
This paper uses the same model for both parent and child agents.
- Each child is a new instance with a fresh context.
- Children can also spawn their own subagents, creating a recursive execution tree:
Original task
├─ Subtask A
│ ├─ Subtask A1
│ └─ Subtask A2
└─ Subtask B
RAO trains the model to use this recursive structure effectively.
- Each node receives a reward based on its own success signal, plus an optional delegation bonus:
- Reward = own success signal + λ × direct children’s success rate
- Rewarding the number of successful children instead of their success rate encourages reward hacking.
- The agent starts spawning many easy but unnecessary subtasks.
- An illustrative example would be delegating “Calculate 1 + 1” just to earn a bonus.
- Giving every trajectory equal weight creates another problem:
- Numerous child trajectories can dominate training.
- RAO uses inverse-frequency weighting by depth so that each depth contributes equally to the update.
- Each node receives a reward based on its own success signal, plus an optional delegation bonus:
The results are impressive, but the speed trade-off depends on the task.
- On hard TextCraft-Synth tasks with sufficient context:
- Single-agent success rate: 20%
- RAO-trained recursive-agent success rate: 88%
- With an 8K context window:
- Single-agent success rate: 0%
- Recursive-agent success rate: 88%
- On DeepDive web research, success rate improves from 24% to 40%, but execution is much slower.
- On tasks solved by both methods, the single agent takes 13.3 seconds, while the recursive agent takes 233 seconds.
- Recursion can improve capability, but it does not automatically make execution faster.
- On hard TextCraft-Synth tasks with sufficient context:
Featured papers
- [1] Apurva Gandhi, Satyaki Chakraborty, Xiangjun Wang et al. (2026). Recursive Agent Optimization. arXiv:2605.06639