The Control-Flow Tax: Specialized Decision Routing for LLM Agent Workflows
Abstract
An agent can spend almost as much deciding what to do as doing it. In our documentation workflow, control-flow routing accounts for 42.5% of baseline reference cost on the initial task. Lower token prices alone do not solve this control-flow tax: inexpensive general-purpose routers can trigger additional calls to the expensive generator. We evaluate a heterogeneous architecture in which Jev, a specialized System 1 decision model, controls finite actions while Sol generates documents. Across four software tasks, 480 valid runs comprise 470 completions and ten request-limit endpoints. Jev full routing achieves the lowest mean cost and elapsed time on every task, completing all 40 specialist-controlled runs along the shortest trajectory. On the initial task, mean cost falls by 49.6% (95% paired-bootstrap interval: 42.9% to 56.3%) and elapsed time by 33.2% (19.6% to 46.7%). Across three further tasks, cost reductions are 40.5% to 42.9% and concurrent elapsed-time reductions are 12.9% to 14.4%. Existence-only specialization saves just 1.8% on the initial task. Separately, Sol and Jev each select accepted actions on 100/100 reviewed retail states, with Jev using 97.88% less reference cost and 72.30% less mean request time. The results identify two requirements for efficient agent control: inexpensive decisions and trajectories that preserve those savings.
Create a lesson
Metadata
- Comments
- 20 pages, 4 figures, 9 tables. Shuanghu Wang and Li Jiang share second authorship
Related papers
From Rule-based to Agentic: LLM Agent based Real-time Control of Urban Drainage Systems for Flooding and Sewer Overflow Mitigation
Shared title terminologycs.AIWenchong Tian, Shixun Li, Ruozhou Lin et al.
MedUIGym: Evaluating and Training GUI Agents for Clinical Workflows
Shared title terminologycs.AIYitong Qiao, Lei Liu, Yue Shen et al.
RubikSQL-HB: Agentic Text-to-SQL with Knowledge in the Loop
Shared title terminologycs.AIHaorui Jia, Zihan Qu, Yundi Dong et al.
EviCraft: Can Minecraft Agents Find What They Cannot See?
Shared title terminologycs.AIWenyou Yi, Lantian Zhang, Guanlin Chen et al.
CAPTA: Identifying LLMs Behind AI Agents
Shared title terminologycs.AIKailun Yan, Yue Huang, Sisi Duan
FigmaEval: A Benchmark for Evaluating AI Agents in Professional UI Design
Shared title terminologycs.AIXinyue Huang, Yongyong Gao, Zhengyuan Pan et al.