AgentBaton: Efficient Model Collaboration in Agentic Tasks
Junlong Li, Jindong Jiang, Yonggan Fu, Jiarui Yao, Hanrong Ye, Wonmin Byeon, Peter Belcak, Hao Zhang, Pavlo Molchanov
cs.MA, cs.AI
2026-10-25
A 2B detector learns when a capable agent should hand off to a cheap model: across 11 model pairs it cuts API cost 65.9% on average, with accuracy up 8.8 points in the best case.
Long-horizon agent tasks today are driven end to end by expensive frontier models. Dozens of tool-call rounds push API cost to $3-10 per task on DeepSWE, while cheap models (lower-tier cloud tiers, 27B-class open-weight models that run on local hardware) cost far less but lose accuracy on their own. The standard savings trick is query-level routing: pick a model from the initial request. But every agent action mutates the workspace, so the capability needed mid-task differs from the one needed at turn one, and a decision made at request time is inherently stale. This NVIDIA work moves the question inside the task: can an expensive and a cheap model relay within a single task and cut cost sharply without losing accuracy?
The paper first runs controlled experiments on two design variables, then trains a detector.
Handoff direction turns out to be asymmetric. Efficient-to-capable handoffs (cheap model starts, capable model rescues) generally trail capable-only runs, sometimes at higher cost. Capable-to-efficient handoffs at the right progress point preserve accuracy and cut cost a lot. Case studies surface three readiness signals: a substantive implementation or artifact exists; real execution or testing has produced concrete feedback (negative feedback counts if it narrows the problem); and the remaining work has collapsed into localized repair, validation, or wrap-up.
Context comes in two flavors. In-context transfer pastes the full pre-handoff conversation into the receiver's context. Logfile transfer writes the history to a .jsonl file in the workspace; the receiver starts a fresh session and inspects it with cat and grep as needed. Logfile wins for efficient-to-capable; for capable-to-efficient it depends on the source model. GPT-5.6 Sol, which hides its chain of thought, does better with logfile, while GLM-5.3 and Kimi K3 do better in-context.
Prompting the capable model to hand off on its own fails: Kimi K3 handed off on 0 of 113 tasks, GLM-5.3 on 6, and GPT-5.6 Sol on all 113 while cutting cost only from $5.32 to $3.75. So AgentBaton is a learned detector: a Qwen 3.5 2B model that reads the trajectory after every turn and outputs HANDOFFREADY or HANDOFFNOTREADY. Training data comes from 2,000 SWE-rebench V2 tasks, with two capable models sampled from a pool of five per task, yielding 4,000 trajectories; Codex annotates the earliest suitable handoff point under the three signals above. At inference the capable model starts, the detector fires once, and the efficient model inherits the workspace and runs to completion, with no switching back. Median detector latency is 338 ms on a single H100, on inputs up to 121K tokens.
| Setting | Metric | Result |
| 11 model pairs, 2 benchmarks | avg API cost | -65.9% vs capable-only, accuracy up to +8.8 points |
| Kimi K3 -> Qwen 3.8 27B (DeepSWE) | acc / cost | 72.6% vs 73.5%; $4.73 to $1.28 (-72.9%) |
| Claude Opus 5 -> GPT-5.6 Luna (DeepSWE) | acc / cost | 67.3% to 76.1%; cost -70.5% |
| vs MTRouter (per-turn routing) | cost / acc | 46.7%-86.6% cheaper, accuracy matched or better in all 4 settings |
| vs fixed-progress handoff (which peeks at the future) | cost / acc | equal or lower cost at close accuracy |
Twelve of the 22 (pair, benchmark) settings improve accuracy or lose less than 5% relative; the other ten lose more, with GPT-5.6 Sol -> Qwen dropping 11.6% relative on DeepSWE. Sweeping reasoning effort, AgentBaton pushes the empirical Pareto frontier past every single-model configuration: Kimi handing off to GPT-5.6 Luna reaches 79.6% at $1.60 per task, beating the best single model in the sweep, Opus at xhigh effort, 75.2% at $8.90. A telling negative control: a fine-tuned query-level router with 99.55% training accuracy picks the cheap model on exactly one task, collapsing back to capable-only execution.
The takeaway for agent builders is that one well-timed handoff is enough. Once the capable model has built the skeleton and the rest is cleanup, hand over; no per-turn routing, no orchestration framework, one 2B detector. It beats per-turn routing (MTRouter) on both axes in the evaluated settings. Teams that self-host small models get the cleanest deal: Qwen 3.8 27B is billed at zero under the paper's accounting, and the capable model runs only 26.6%-68.9% of its trajectory before handing off, depending on the benchmark. The common manual pattern of planning with a big model and executing with a small one becomes a learnable timing decision here.