The Commonplace
Home Papers Evidence Explore Trends Syntheses Digests References Docs 🎲 Workforce Futures
← Papers
Direction, evidence grade, and study type are AI-generated labels (gpt-5-mini), not human-verified. Syntheses are LLM-written. "Tensions" are machine-detected candidates, not confirmed contradictions. A research-acceleration tool, not peer review. How this is built →

A lightweight streaming router uses a decoder-KV GLiClass to pick the best LLM per task, squeezing modest quality gains from cache-aware, zero-shot model scoring; on a 1,000-task subset it edges out the best fixed model (top-1 0.707 vs 0.696) and supports cost- and policy-aware endpoint selection.

SCX Router: Streaming Zero-Shot Model Selection with a Decoder-KV Classifier and a Real-World Task Ontology
Ihor Stepanov, Aleksandr Smechov, Mykhailo Shtopko, Dmytro Vodianytskyi, Oleksandr Lukashov · September 02, 2026
arxiv descriptive medium evidence 7/10 relevance Full text usable extracted full text Source PDF

Structured author observations

Linked only from stored provider relations; the raw author line above is never matched by name.

Arxiv

Latest observation:

  1. Ihor Stepanov unresolved corpus identity
  2. Aleksandr Smechov unresolved corpus identity
  3. Mykhailo Shtopko unresolved corpus identity
  4. Dmytro Vodianytskyi unresolved corpus identity
  5. Oleksandr Lukashov unresolved corpus identity

Semantic Scholar

Latest observation:

  1. Ihor Stepanov provider ID
  2. Aleksandr Smechov provider ID
  3. Mykhailo Shtopko provider ID
  4. Dmytro Vodianytskyi provider ID
  5. O. Lukashov provider ID
SCX Router is a streaming decoder-KV GLiClass router that scores candidate LLM endpoints zero-shot and, across benchmark and synthetic task suites, delivers modest improvements in per-task model selection (e.g., top-1 0.707 vs 0.696 for the strongest fixed model on a 1,000-task subset) while enabling cache reuse and cost-aware policies.

Citation observations

Cumulative provider counts captured on specific dates; providers are never combined.

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 \router{}, 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.

Summary

Main Finding

SCX Router is a lightweight, streaming, zero-shot model-selection router that uses a causal decoder with a persistent text-only KV cache and a shallow bidirectional scorer to produce non-generative, per-label suitability scores. It enables per-request routing across heterogeneous inference endpoints (varying in cost, latency, context length, tools, domain expertise, safety/residency constraints) and—when coupled with a deterministic policy layer that applies eligibility and cost/latency/cache trade-offs—produces small but consistent end-to-end gains over fixed-model baselines in LiveBench-style evaluations (selected 1,000-task subset: top-1 = 0.707 vs 0.696 for the strongest fixed model). The model, code, and data tooling are released (Apache 2.0).

Key Points

  • Architecture
    • A GLiClass-derived decoder-KV design built on a Qwen3 causal backbone (~0.6B parameters).
    • Decoder processes only new context tokens into a persistent KV cache; candidate labels are appended transiently, scored, and discarded (label KV not written back).
    • A shallow DeBERTa-v2-style bidirectional scorer over transient label suffix produces per-label logits via a shared MLP (non-generative classification).
    • Labels are text inputs (dynamic), enabling zero-shot scoring of arbitrary candidate endpoints and auxiliary labels (task type, difficulty, reasoning mode, output length, custom labels).
  • Separation of concerns
    • Learned predictor (suitability scores and auxiliary signals) is kept separate from a deterministic decision/policy layer that enforces hard constraints (tools, modality, region/privacy/safety) and trades predicted performance against incremental token cost, latency, and cache reuse.
  • Streaming & operational design
    • Persistent text-only KV cache amortizes request-side encoding across turns; triggers (chunk/delimiter/window) control when classification runs.
    • Implementation supports batched sessions with left-padding, TTL/LRU cache policies, optional CPU offload, and physical truncation with increasing rotary positions.
  • Task ontology & synthetic data
    • Ontology: 23 families, 115 task types, 345 routable subtypes, 1,173 synthetic example specifications, and 30 domains (orthogonal axis).
    • Generates structured task packages (context, artifacts, checks) rather than bare prompts, to approximate real-world workflows.
    • Synthetic corpus: 150,000 verifier-scored tasks (deterministic/executable checks) and 15,000 open-ended tasks judged by gpt5.6-sol.
  • Training & supervision
    • Mixed training: a broad 524k-record GLiClass mixture followed by a focused 65k-record routing mixture (22k routing labels, 17k difficulty, 15k task-type, plus other auxiliary labels).
    • Benchmark-derived supervision: existing benchmark prompts executed across candidate models; positive target set defined as models tied for best observed outcome (with tolerance ε). Missing evaluations are treated as masked (masked cross-entropy loss).
  • Empirical results
    • Outperforms mean-candidate across six LiveBench subsets.
    • On a selected 1,000-task subset, aggregate top-1 = 0.707 vs 0.696 for the strongest fixed model (benchmark-dependent gains).
  • Release
    • Checkpoint and code released under permissive Apache 2.0 (links provided in paper).

Data & Methods

  • Model details
    • Backbone: Qwen3-0.6B causal decoder (28 layers, hidden size 1024, 16 query heads, 8 KV heads), trained up to 4,096 tokens.
    • Scorer: two-layer DeBERTa-v2 encoder (no separate embeddings), projections, shared MLP head (2h → 1024 → 512 → 1).
    • Special tokens: «LABEL», «SEP», «EXAMPLE».
  • Sequence & scoring flow
    • Persistent context formatted as c≤t = format(prompt, examples, h<t, xt).
    • Label suffix q(L) = «SEP» ℓ1 «LABEL» … ℓK «LABEL» «SEP».
    • Persistent cache updated with new context tokens: (Hx_t, Kt, Vt) = Dθ(Δc_t; Kt−1, Vt−1).
    • Label tokens evaluated conditionally: Hℓ_t = Dθ(q(L); Kt, Vt) — label-stage keys/values not written back.
    • Bidirectional scorer Bϕ processes Hℓ_t → joint representations → per-label MLP gives logits at,k → sigmoid/softmax as appropriate.
  • Training supervision and loss
    • Target set Yi per task: models with si,m ≥ max_j si,j − ε (ties allowed).
    • Masked binary cross-entropy for multi-label targets to handle missing observations: Lmasked = − (1 / Σ oi,m) Σ oi,m [yi,m log pi,m + (1 − yi,m) log(1 − pi,m)].
    • Thresholding default τ = 0.5 for multi-label emission; softmax/argmax for single-label tasks.
  • Data sources
    • Benchmark-derived: prompts from many benchmarks (classification, QA, reasoning, code, summarization, translation, instruction-following, multi-turn) executed on candidate models; ~104–524k records in mixtures (broad + focused splits).
    • Synthetic: ontology-driven generation producing structured packages; 150k verifier-scored tasks and 15k judge-scored open-ended tasks.
  • Evaluation protocol
    • Multiple LiveBench-like subsets and an 11-endpoint expanded collection with observation masks to avoid treating missing outcomes as negatives.
    • Router compared to mean-candidate and fixed-model baselines; also reports auxiliary signal accuracy (task type, difficulty, reasoning mode, expected output length).

Implications for AI Economics

  • Per-task cost-quality optimization
    • SCX Router operationalizes per-request model selection, allowing platforms to push requests to cheaper endpoints when predicted quality is sufficient and reserve expensive endpoints for tasks that need them—directly improving cost-efficiency of ML inference supply.
    • By integrating predicted performance with incremental token cost, latency, and cache-reuse considerations, routers can materially alter marginal economics of serving multi-turn workflows (lowering average cost per user session).
  • Market dynamics & productization
    • Dynamic, semantic label scoring (zero-shot) enables plugging in new endpoints quickly—supporting broader marketplaces of models and APIs without retraining the router—though empirical calibration still requires outcome data.
    • Router-as-a-service becomes feasible: value accrues to systems that can reliably improve end-to-end quality-per-dollar and respect operational constraints (privacy, residency, tool access).
  • SLAs, pricing, and competition
    • Fine-grained routing supports differentiated SLAs (latency- or cost-sensitive routing), more accurate price discrimination, and richer billing models (e.g., premium routing guarantees).
    • Vendors will compete not only on peak model quality but on marginal quality/cost trade-offs that routers exploit, potentially reshaping endpoint pricing strategies.
  • Operational externalities & design choices
    • Cache reuse reduces marginal encoding cost within sessions—this changes the effective switch-cost of moving between endpoints (routers must expose downstream cache state and account for replay costs).
    • Separation of learned predictor and deterministic policy supports governance (safety, sovereignty, legal constraints) and monetization decisions independently from the model’s semantics.
  • Risks and limitations (economic relevance)
    • Calibration dependency: semantic zero-shot scoring allows immediate adoption of new endpoints but does not guarantee calibrated performance; empirical outcome data is necessary to avoid suboptimal economic choices.
    • Unequal coverage/missing data problems: marketplaces with uneven endpoint coverage complicate reliable routing and performance estimation; misrouting can impose hidden costs (retries, downstream replays).
    • Potential for gaming and incentive misalignment: providers might optimize for the classifier’s semantic labels rather than true downstream utility, or pricing schemes could be exploited without proportional quality improvements.
    • Complexity & maintenance costs: maintaining the router, ontologies, verifiers, and outcome collection pipelines adds operational overhead that must be weighed against expected cost-savings.
  • Strategic opportunity
    • Firms operating multi-endpoint deployments (multi-cloud/multi-vendor inference) can extract short-term returns by deploying a lightweight streaming router like SCX Router to improve utilization and reduce average inference spend, while preserving safety and regulatory constraints via the policy layer.

References / artifacts (from paper) - Checkpoint: https://huggingface.co/scx-admin/scx-router-v0.1 - Code: https://github.com/Knowledgator/GLiClass-Model-Router

If you want, I can: - Extract quantitative tables (data counts, model specs) into a CSV for further analysis. - Produce a short decision-tree for when an organization should adopt a router like SCX from an economic ROI perspective.

Assessment

Paper Typedescriptive Evidence Strengthmedium — The paper provides systematic benchmark-derived and synthetic evaluations comparing the router to fixed-model baselines and a mean-candidate baseline, showing modest aggregate gains; however the evidence is not causal, relies on synthetic task generation and LLM judges for some labels, has uneven endpoint coverage, and does not report statistical significance or broad real-world deployment metrics. Methods Rigormedium — The authors describe a thoughtful architecture and training/evaluation pipeline (masking missing outcomes, separating learned signals from policy, cache-aware execution), and they evaluate on multiple built and public benchmark subsets plus large synthetic suites; but potential issues remain: synthetic tasks and LLM judges introduce bias, endpoint roster and evaluator choices limit comparability, paired coverage is incomplete for some analyses, and the paper does not fully report statistical uncertainty or external deployment validation. SampleTraining and evaluation mix: a broad GLiClass mixture (~524k classification records) and a focused routing mixture (~65k records) composed of: ~22.3k model-routing records, ~17.3k difficulty labels, ~15.0k task-type labels, plus auxiliary records; synthetic ontology-driven data of 150,000 verifier-scored tasks and 15,000 open-ended judge-scored tasks (gpt5.6-sol); benchmark-derived prompts from training partitions of existing benchmarks (classification, QA, reasoning, code, summarization, translation, multi-turn); evaluations across six LiveBench subsets and an 11-endpoint collection with unequal coverage; released checkpoint is a ~0.6B-parameter Qwen3-based decoder-KV GLiClass. Themesadoption productivity GeneralizabilitySynthetic task generation and LLM-based judges may not reflect real user distributions or failure modes., Evaluations are limited to the candidate roster and endpoints studied; results may not hold for different or closed-source frontier models., Unequal coverage across endpoints and masked missing outcomes limit direct multi-way comparisons and may bias performance estimates., Router performance depends on conversation length, cache policies, and deployment latency/cost constraints that vary across production systems., Reported aggregate gains are modest and benchmark-dependent; domain-specific workloads or higher-stakes tasks may show different trade-offs.

Claims (11)

ClaimDirectionOutcomeConfidence & EvidenceDetails
Across six LiveBench subsets, SCX Router outperforms the mean candidate model. Output Quality positive Aggregate benchmark performance relative to the mean candidate model
Reading fidelity high
Study strength medium
not reported
0.18
On the selected 1,000-task LiveBench subset, SCX Router achieves an aggregate top-1 score of 0.707, compared with 0.696 for the strongest fixed model. Output Quality positive Aggregate top-1 benchmark score
Reading fidelity high
Study strength medium
n=1000
0.707 aggregate top-1 score versus 0.696 for the strongest fixed model
0.18
The task ontology contains 23 task families, 115 task types, and 345 routable subtypes. Task Allocation positive Scope and granularity of the task ontology
Reading fidelity high
Study strength high
n=345
23 task families, 115 task types, and 345 routable subtypes
0.3
The ontology includes 1,173 synthetic example specifications and an orthogonal domain axis comprising eight sectors and 30 domains. Task Allocation positive Coverage of synthetic examples and application domains
Reading fidelity high
Study strength high
n=1173
1,173 synthetic example specifications; 8 sectors and 30 domains
0.3
The authors generated 150,000 verifier-scored synthetic tasks and 15,000 synthetic open-ended tasks judged by gpt5.6-sol. Training Effectiveness positive Scale of synthetic routing-task data generation
Reading fidelity high
Study strength high
n=165000
150,000 verifier-scored tasks and 15,000 judge-scored tasks
0.3
The released SCX Router checkpoint has approximately 0.6 billion parameters and uses a Qwen3-0.6B causal backbone. Other positive Model architecture and parameter scale
Reading fidelity high
Study strength high
approximately 0.6B parameters
0.3
In the decoder-KV execution path, only newly added dialogue-context tokens update the persistent cache; candidate-label tokens are scored transiently and are not written back to that cache. Organizational Efficiency positive Persistent-cache reuse during streaming classification
Reading fidelity high
Study strength high
not reported
0.3
The router supports dynamic candidate labels and can produce independent suitability scores for multiple acceptable endpoints rather than relying on fixed output neurons. Task Allocation positive Flexibility of model-selection and auxiliary-label classification
Reading fidelity high
Study strength medium
not reported
0.18
A newly introduced candidate label is semantically scorable by the router but is not automatically calibrated without supporting outcome evidence. Decision Quality mixed Calibration of suitability predictions for new model endpoints
Reading fidelity high
Study strength high
not reported
0.3
For the expanded 11-endpoint collection, unequal endpoint coverage is handled by treating unobserved outcomes as missing data rather than failed responses. Decision Quality positive Validity of routing-supervision and comparative evaluation under incomplete endpoint coverage
Reading fidelity high
Study strength high
n=11
0.3
The focused training mixture contains 65,099 classification records, including 22,303 model-routing records, 17,318 difficulty records, and 15,015 task-type records. Training Effectiveness positive Scale and composition of routing-classification training data
Reading fidelity high
Study strength high
n=65099
65,099 total focused records
0.3

Notes