arXiv(opens in a new tab)cs.LGSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.01428

TRIAGE: Three-level Routing and Intelligent Agent Guidance for Efficient Execution

Ruocan Wei

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large Language Model (LLM) agents based on the ReAct paradigm have demonstrated remarkable capabilities in tool use and task execution. However, ReAct suffers from a fundamental efficiency problem: every query triggers a complete reasoning loop from scratch, and similar queries repeat identical steps without leveraging historical experience. We propose TRIAGE—a three-level routing framework that reduces token consumption by reusing historical execution trajectories. The core innovation of TRIAGE is TaaS (Trajectory-as-a-Skill), which abstracts historical execution trajectories into reusable skills, realizing “experience as a service.” TRIAGE classifies input queries into three levels: (1) Direct Reuse—identical queries, 0 tokens; (2) Skill Substitution—similar queries, 0 tokens through deterministic parameter substitution when the matched trajectory has been distilled into a Skill; (3) Full ReAct—novel queries, automatically stored for future reuse. In large-scale experiments on 1,007 security monitoring queries using a semantic encoder (all-MiniLM-L6-v2) for similarity retrieval, TRIAGE achieves 62.3% token savings (199,782 → 75,238), with 56.0% of queries executed at Level 2 (Skill parameter substitution, 0 tokens) and 5.5% at Level 1 (direct reuse, 0 tokens). Cross-domain validation on ToolBench (15 domains, 345 queries, real threshold routing) achieves an average of 76.3% token reduction, confirming the generalizability of the semantic routing framework (424,792 → 100,875), with 84.6% of queries executed at Level 1 and 11.6% at Level 2. An online learning experiment over 1,007 queries demonstrates the cold-start-to-mature evolution: the L2 hit rate rises from 0% to 57% within the first 100 queries, and the average token cost drops from 198 to 74.7. Additionally, we propose an automatic Skill extraction mechanism that distills high-frequency trajectory patterns into fine-grained deterministic Skills, creating a positive feedback loop of "the more you use it, the more efficient it becomes." The open-source implementation of TRIAGE is available at https://github.com/weiruocan/triage.

1 Introduction

References (13)