Heddle: A Distributed Orchestration System for Agentic RL Rollout
Organizations: School of Computer Science, Peking University · Independent Researcher
Abstract
Agentic Reinforcement Learning (RL) enables LLMs to solve complex tasks by alternating between a data-collection rollout phase and a policy training phase. During rollout, the agent generates trajectories, i.e., multi-step interactions between LLMs and external tools. Yet, frequent tool calls induce long-tailed trajectory generation that bottlenecks rollouts. This stems from step-centric designs that ignore trajectory context, triggering three system problems for long-tail trajectory generation: queueing delays, interference overhead, and inflated per-token time. We propose Heddle, a trajectory-centric system to optimize the when, where, and how of agentic rollout execution. Heddle integrates three core mechanisms: trajectory-level scheduling using runtime prediction and progressive priority to minimize cumulative queueing; trajectory-aware placement via presorted dynamic programming and opportunistic migration during idle tool call intervals to minimize interference; and trajectory-adaptive resource manager that dynamically tunes model parallelism to accelerate the per-token time of long-tail trajectories while maintaining high throughput for short trajectories. Evaluations across diverse agentic RL workloads demonstrate that Heddle effectively neutralizes the long-tail bottleneck, achieving up to 2.5 higher end-to-end rollout throughput compared to state-of-the-art baselines.
Figures & tables
| Models | Coding | Search | Math | |
|---|---|---|---|---|
| Qwen3-8B | Tool Exec. (s) | 0.46 | 1.42 | 0.051 |
| Pred. (s) | 0.103 | 0.15 | 0.26 | |
| Migration (s) | 0.26 | 0.12 | 0.24 | |
| Qwen3-14B | Tool Exec. (s) | 0.41 | 1.41 | 0.046 |
| Pred. (s) | 0.099 | 0.15 | 0.27 | |
| Migration (s) | 0.27 | 0.15 | 0.25 |
| Models | Coding | Search | Math | |
|---|---|---|---|---|
| Qwen3-8B | Placement (s) | 0.036 | 0.037 | 0.036 |
| Resource manager (s) | 5.69 | 5.27 | 5.06 | |
| Qwen3-14B | Placement (s) | 0.038 | 0.037 | 0.036 |
| Resource manager (s) | 5.05 | 4.99 | 4.97 | |
| Qwen3-32B | Placement (s) | 0.037 | 0.038 | 0.036 |
| Resource manager (s) | 5.06 | 5.01 | 4.98 |
LLM Agent Orchestration
Large language model agent orchestration coordinates models, tools, and workflows to complete complex tasks reliably and efficiently.
See all 458 papers