SCX Router: Streaming Zero-Shot Model Selection with a Decoder-KV Classifier and a Real-World Task Ontology
cs.AI, cs.CL
Submitted: 2026-09-02
Updated: 2026-09-02
Comments: 20 pages, 10 tables, 6 figures
Code: https://github.com/Knowledgator/GLiClass
License: http://creativecommons.org/licenses/by/4.0/
The gist: The rapid proliferation of large language models (LLMs) and the growing diversity of their applications presents a unique optimization opportunity: selecting the right model for the task, while
Terminology
Abstract
The rapid proliferation of large language models (LLMs) and the growing diversity of their applications presents a unique optimization opportunity: selecting the right model for the task, while optimizing for speed, cost, and quality at a per-task level. However, inference endpoints can vary widely in quality, price, latency, context support, tool use, domain expertise, and reasoning behavior. This heterogeneity makes manual heuristics difficult to maintain and unlikely to achieve consistently favorable speed--cost--quality trade-offs on their own. We introduce, a lightweight GLiClass-based router that assigns a suitability score to each inference-time model label without autoregressive generation. The released 0.6B-parameter checkpoint combines a Qwen3 decoder with a shallow bidirectional scorer. Its decoder-KV execution path preserves a text-only key--value cache across a session, encodes only new dialogue turns, and evaluates transient candidate-label tokens without adding them to the persistent cache. The same checkpoint also predicts task type, difficulty, reasoning mode, and expected output length, and supports custom zero-shot labels. For task generation, we construct a task ontology with 23 families, 115 task types, 345 routable subtypes, 1,173 synthetic examples, and an orthogonal axis of 30 domains. Using this structure, we generate 150,000 verifier-scored tasks and 15,000 open-ended tasks. We then train the Qwen3 decoder on these tasks, while explicitly separating learned request prediction from per-task policies for attributes such as eligibility, cost, cache reuse, safety, and sovereignty. Across six LiveBench subsets, the router outperforms the mean candidate; on the selected 1,000-task subset, it achieves an aggregate top-1 score of 0.707 versus 0.696 for the strongest fixed model, with benchmark-dependent gains.
Sources
- AutoMix: Automatically Mixing Language Models
- FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performance
- A Unified Approach to Routing and Cascading for LLMs
- DeBERTa: Decoding-enhanced BERT with Disentangled Attention
- RouterBench: A Benchmark for Multi-LLM Routing System
- SWE-bench: Can Language Models Resolve Real-World GitHub Issues?
- BIG-Bench Extra Hard
- Focal Loss for Dense Object Detection
- AgentBench: Evaluating LLMs as Agents
- GAIA: a benchmark for General AI Assistants
- RouteLLM: Learning to Route LLMs with Preference Data
- Qwen3 Technical Report
- MuSR: Testing the Limits of Chain-of-thought with Multistep Soft Reasoning
- GLiClass: Generalist Lightweight Model for Sequence Classification Tasks
- Replacing Judges with Juries: Evaluating LLM Generations with a Panel of Diverse Models
- LiveBench: A Challenging, Contamination-Limited LLM Benchmark
- OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environments
- GLiNER: Generalist Model for Named Entity Recognition using Bidirectional Transformer
- Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena
- Instruction-Following Evaluation for Large Language Models
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- Agents' Last Exam
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems