How much inference expenditure can engineering teams eliminate by offloading routine execution branches from frontier models to compact local classifiers?
Deploying autonomous agents currently forces a punishing infrastructure trade-off: mainstream architectures invoke a massive reasoning model at every incremental step along an expanding execution trace. In a research paper released by Rui Li, Liyang He, Zhenya Huang, and Qi Liu from the University of Science and Technology of China, alongside Zheng Zhang from Nanyang Technological University, the authors demonstrate that routing bounded decisions through a single calibrated 4B parameter module slashes episode costs by 75% to 91% while preserving task success rates. By replacing uncompiled System-2 calls on deterministic branches with single forward passes, the framework demonstrates that enterprise agentic stacks no longer need to burn heavy compute budgets on trivial intermediate forks.
The Bottleneck of Uncompiled Trajectories
Mainstream autonomous agents route every trajectory step through frontier foundation models, even when the immediate task demands choosing among a narrow set of predefined options rather than generating complex plans. In the analysis by Rui Li and colleagues, the team notes the core problem:
"Autonomous LLM agents incur substantial cost and latency by invoking a large model (System-2) at every step"
This continuous invocation accumulates financial overhead across enterprise deployments, as every intermediate prompt passes expanding context windows into premium APIs. Prior attempts to mitigate these expenses relied on dual-system setups where engineers authored manual decision hooks for isolated workflows. However, manual hook engineering failed to scale across dynamic production environments, breaking agent logic when unmapped procedures defaulted back to full-model calls. How does an autonomous pipeline eliminate this manual integration tax across unseen workflows?
Automated Decision Mining Across Skills
AnyS1 resolves the scaling problem by extracting structured decision points directly from procedural documentation rather than manual application code. Offline, the framework parses instructions across over 1,000 public skills, capturing execution-grounded trajectory states inside isolated containers to assemble a unified training set named Any-DP.
Using this mined corpus, the researchers trained a single 4B parameter pointer model equipped with label smoothing to serve as a domain-general System-1 engine. Instead of generating token sequences, the compact model scores candidate branches in a single forward pass. Deterministic instructions execute as raw code, open-ended generative requirements pass directly to the primary System-2 model, and bounded multiple-choice forks route to the 4B component. When the compact model evaluates an action, an internal confidence gate monitors output certainty against a calibrated threshold. If certainty drops below this boundary, the workflow immediately falls back to System-2, preventing execution drift.
Economic Returns and Transferability
Compact models do not require per-environment retraining to maintain zero-shot decision integrity across unfamiliar tools. When evaluated end-to-end on three unseen benchmarks, AnyS1 maintained task performance under zero-shot threshold transfer across distinct System-2 model families.
"cutting episode cost by 75–91% and model-call time by 63–92% relative to an uncompiled System-2 agent"
These gains translate into operational runway for autonomous workflows, as model-call latency drops by 63% to 92% alongside the 75% to 91% cost contraction. By confining expensive frontier tokens strictly to open-ended planning and edge-case fallbacks, organizations can stabilize the unit economics of long-horizon enterprise deployments without degrading procedural accuracy. As teams transition agent experiments into high-throughput production, replacing uniform frontier model queries with calibrated dual-system execution defines the financial dividing line between commercially sustainable automation and unviable compute expenditure.
What came before
Replacing token generation with a single forward pass through a 4B parameter model pinpoints exactly where autonomous agent stacks waste their operational budgets. While in early October a benchmark spanning 7,283 base cases exposed agent failure under brittle hand-coded decision classifiers, AnyS1 removes manual glue code by parsing instructions across more than 1,000 public skills. The architecture stops invoking heavy reasoning for deterministic branch points, falling back to System-2 calls only when confidence drops below its calibrated threshold. Routing routine branch points through a compact pointer model preserves baseline task success while cutting session costs by up to 91%.
Our stories: System-1 Classifiers Break Agent Logic: The True Cost of LLM Swaps (05.10.2026).