CATER: Confidence-Aware Trajectory Early-Exit and Tri-Signal Routing for Cost-Efficient Agentic Large Language Models
Autonomous Large Language Model (LLM) agents operatingunder interleaved reasoning and tool-execution paradigms (suchas ReAct, Reflexion, and Tree of Thoughts) achieve strongperformance on multi-hop question answering, APIorchestration, and automated code repair. However, deployingfrontier cloud LLMs across every step of a multi-step agentictrajectory incurs prohibitive monetary cost and latency, whereasexecuting trajectories purely on quantized edge Small LanguageModels (SLMs) leads to severe schema hallucinations andrepetitive action deadlocks (71.6% loop trap rate). Existing LLMrouters (e.g., FrugalGPT and RouteLLM) are designed for single-turn prompts: they route an entire query statically at t = 1 or relysolely on scalar token entropy, which fails to detect silent toolexceptions or confident cyclic loops. In this paper, we proposeCATER (Confidence-Aware Trajectory Early-Exit and Routing), asteplevel Markovian routing framework for hybrid edge–cloudagentic systems. At each reasoning step t, CATER evaluates acomposite Trajectory Divergence Score D(st)∈[0,1] that fusesthree orthogonal signals: (1) length-normalized action-tokenentropy H¯t, (2) a deterministic tool-execution and AbstractSyntax Tree (AST) schema verifier Vtool,t, and (3) a denseembedding looprepulsion penalty Rloop,t. Based on D(st), CATERdynamically dispatches each step across three execution tiers:Tier 0 commits the local Edge SLM (66.2% of steps), Tier 1triggers constrained local AST/schema self-repair (20.1% ofsteps), and Tier 2 escalates only high-divergence steps to a CloudFrontier LLM
Authors
- Ankit Halder
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-30
- DOI
- https://doi.org/10.5281/zenodo.24691793
- Primary Topic
- Natural Language Processing Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00