ObsSpec: Accelerating Agentic Reinforcement Learning with Observation Speculation
Organizations: UC Santa Cruz · ByteDance Inc.
Abstract
Tool-using agents alternate between model generation and tool execution, waiting for each tool call to complete before starting the next generation. This sequential execution is costly during agentic reinforcement learning (RL), which requires large batches of multi-turn rollouts. We introduce ObsSpec, an observation speculation pipeline for agentic RL that uses a small world model to predict tool outputs while the environment executes, allowing the policy to begin its next generation early. ObsSpec retains speculative work only when the predicted and actual observations match exactly, making rollout collection lossless, while co-training keeps the world model up to date as the policy learns. On terminal-use tasks, predictions from a 0.6B world model exactly match actual observations in 66.4% of attempts and arrive roughly 16 times faster. Using these predictions, ObsSpec reduces agent latency by 9.3% and 14.2% for 8B and 32B policies. Across controlled experiments, we characterize the regimes in which ObsSpec reduces agent latency under shared policy resources. Finally, because ObsSpec overlaps policy generation with tool execution, it is architecturally compatible with existing techniques for accelerating RL. Code is available at https://github.com/kylemontgomery1/verl-recipe/tree/obsspec/obsspec.
Figures & tables
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Parameter | Value |
|---|---|
| Data | |
| Batch size | 16 prompts |
| Group size | 16 rollouts per prompt |
| Prompt budget | 2,048 tokens |
| Response budget | 16,384 tokens |
| Per-turn generation budget | 2,048 tokens |
| Policy | Pipeline | Reward (%) | Agent (s) | Batch (s) | Rollouts/h |
|---|---|---|---|---|---|
| Qwen3-8B | Sequential | ||||
| ObsSpec | |||||
| Qwen3-32B | Sequential | ||||
| ObsSpec |
| Command | Count | Tool (s) | WM (s) | Match (%) | Rollback (%) | Cancel (%) |
|---|---|---|---|---|---|---|
| cat | 19,544 | |||||
| ls | 10,681 | |||||
| mkdir | 2,943 | |||||
| echo | 1,169 | |||||
| sha256sum | 946 | |||||
| sqlite3 | 668 |
| WM | WM latency (s) | Agent latency (s) | Match | Rollback | Cancel |
|---|---|---|---|---|---|
| 0.6B | % | % | % | ||
| 1.7B | % | % | % | ||
| 4B | % | % | % | ||
| 8B | % | % | % |
| Depth | Agent latency (s) | Realized depth | Policy tok/s | Discarded policy tok. |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 4 | ||||
| 8 |
| Agent latency (s) | Match | Realized breadth | Policy tok/s | Discarded policy tok. | |
|---|---|---|---|---|---|
| 1 | % | 1.0 | |||
| 2 | % | ||||
| 4 | % | ||||
| 8 | % |
| Policy step | Reward (%) | Updated match (%) | Frozen match (%) | Sequential agent (s) | Updated agent (s) | Frozen agent (s) |
|---|---|---|---|---|---|---|
| 100 | ||||||
| 200 | ||||||
| 300 | ||||||
| 400 | ||||||
| 500 |
| Sandbox | Tool latency (s) | Sequential agent (s) | ObsSpec agent (s) | Reduction |
|---|---|---|---|---|
| Default | 9.3% | |||
| Modal | 10.6% | |||
| Daytona | 11.3% |
| Method | Reward (%) | Agent (s) | WM (s) | Match (%) | Rollback (%) | Cancel (%) |
|---|---|---|---|---|---|---|
| Sequential | – | – | – | – | ||
| ObsSpec , 0.6B | ||||||
| ObsSpec , 8B |
Agentic RL
Agentic reinforcement learning trains AI agents to plan, use tools, and adapt through feedback from multi-step interactions.
See all 231 papers