Repository navigation
Add AutoModelRouter submission - #285
Open
a-autonomous-tech wants to merge 2 commits into
Open
a-autonomous-tech wants to merge 2 commits into
a-autonomous-tech wants to merge 2 commits into
Conversation
TLD router (KT ModelRouter with an mmBERT-based labeler) over google/gemini-3.8-flash@low, tencent/hy4-flash and google/gemini-3-flash-preview@none. Full split, local harness: Arena 77.69, accuracy 81.59%, $0.7124 per 1K queries. - router_inference: config, full predictions (8,400 rows plus 1,618 optimality rows) and robustness predictions (420 rows) - model_profiles.yaml: tencent/hy4-flash (Tencent endpoint, promotional price, list price noted), kt/mmbert-joint3in1 (local price), and the @low / @none aliases on the existing Gemini rows - model_cost.json regenerated - universal_model_names.py, model_inference.py (hy4-flash via OpenRouter) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Router name, config and prediction files renamed to AutoModelRouter. The config states that the router is closed-source and sets the affiliation to KT. Predictions are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
|
/evaluate |
Router Evaluation ResultsRouter: RouterArena Metrics
Optimality Metrics
Evaluation completed by RouterArena automated workflow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AutoModelRouter is a closed-source router by KT. It is a new entry, separate from our
KT-ModelRouter(#195). We graded it locally on the full split with this repo's harness.
router_usage)google/gemini-3.8-flash@low70.9%,tencent/hy4-flash21.4%,google/gemini-3-flash-preview@none7.6%Official
/evaluateresult on this PR: Arena 77.68, accuracy 81.58%, $0.7124 per 1K, robustness 88.33,Opt. 24.19 / 35.64 / 95.01. The local run differs by about one item.
Leaderboard row
For the README table and
leaderboard_manifest.yaml:Latency was not measured; there is no harness for it for submitted routers.
What the router does
Each query goes through KT ModelRouter's TLD routing:
Domains (D1-D10) and a Level (L1-L3).
serve. A model qualifies when every labeled (task, domain) pair allows the query's level.
This policy has three models:
google/gemini-3.8-flash@lowtencent/hy4-flashgoogle/gemini-3-flash-preview@noneIn effect:
Gemini 3.8 Flash qualifies for every query, so the router never falls back to a default.
HY4 Flash is served by Tencent; both Gemini models are served by Google AI Studio. The suffix after
@is the reasoning effort, as in the existing
deepseek/deepseek-v4.1-flash@low.The labeler call is charged per query in
router_usageaskt/mmbert-joint3in1. Its price follows thelocal-model rule: 0.3B active parameters at 16-bit, $0.0452 / $0.147 per 1M tokens. Its input is the
serialized conversation, 292.5 tokens per query on average, which comes to $0.0132 per 1K queries. An
encoder emits no tokens.
Pricing
tencent/hy4-flashis not in the price table yet, so this PR adds it.scripts/pricing/sync_openrouter.py's rule. Tencent hoststhe model, so the price is the lab's own endpoint.
The entry notes the list price.
google/gemini-3.8-flash@lowandgoogle/gemini-3-flash-preview@noneare aliases of the existingrows, at the same prices: $0.75 / $3.75 and $0.50 / $3.00.
At list prices for Gemini 3.8 Flash and HY4 Flash, this run costs $1.3819 per 1K and scores 76.33.
How the policy was selected
External corpus. We built 2,566 items from 23 public datasets and split them into screen (1,541)
and holdout (1,025). We checked the corpus against every RouterArena split with SHA-256 exact matching
and MinHash near-duplicate detection:
overlap_count: 0.RouterArena format. We rendered every item with RouterArena's public prompt templates and
answer formats (
config/eval_config/,llm_evaluation/utils.py). We graded each answer with the scorerRouterArena picks for that dataset type. For code, we used RouterArena's code extraction and ran the
tests in a network-less Docker sandbox.
Some datasets store gold answers as an index,
0.0/1.0or Yes/No (Ethics, PubMedQA, SuperGLUE).For those, we read the set of label values in RouterArena's dataset files so our gold answers
would use the same format. No per-item label was used.
Scoring. We computed the Arena Score directly on the corpus:
labeler.
Every run went through OpenRouter, pinned to the provider whose price the repo uses, with uncapped
output.
Candidates, in the order we tested them.
(DeepSeek, MiniMax, Tencent, inclusionAI and Google), plus Gemini 3 Flash Preview and GPT-6.1 Sol
(low) as references. HY4 Flash ranked first on the corpus.
Flash Preview. We evaluated it locally with this repo's harness on the full split (76.23: 78.35%,
$0.3210 per 1K) and did not submit it. Its aggregate accuracy is used in the HY4 Flash correction
below.
Preview and DeepSeek V4 Flash at none, minimal or low) and twelve more low-priced models. None of
them was run on RouterArena.
(Add BizRouter submission (balanced Smart Routing) #229) that routes mostly to Gemini 3.7 Flash.
Single settings on the corpus, labeler included:
tencent/hy4-flashgoogle/gemini-3.8-flashlowgoogle/gemini-3-flash-previewnonegoogle/gemini-3.7-flashlowgoogle/gemini-3-flash-previewdefaultCorrection for HY4 Flash. The corpus overstates RouterArena accuracy by different amounts per
model family. We compared aggregate accuracies:
Relative to Gemini, the corpus favors HY4 Flash by about 1.81 pp. In the final search we subtracted
0.0181 from HY4 Flash's score on every corpus item. Only the aggregates above were used, never a
per-query RouterArena result.
Final policy: selection rule, written down before the search.
a domain column, or a cell with at least 20 items. ModelRouter picks the cheapest qualifying model,
so this is the only kind of rule it can express.
+0.05.
cross-validation (mean gain above 0).
Results (HY4 Flash corrected, labeler included):
(+0.41, +0.46, −0.12, +0.60, +1.33).
+0.63.
We then checked the deployed router on 300 corpus items. Its choice matched the simulation on every
item, with no fallback. On the corpus, the shares were 66.1% Gemini 3.8 Flash, 24.4% HY4 Flash and
9.5% Gemini 3 Flash Preview.
Fidelity (not used for selection). The adopted policy read 84.20% at $0.689 per 1K on the corpus.
On RouterArena it scored 81.59% at $0.7124: 2.61 pp lower accuracy, at 1.03 times the cost.
Compliance
answer, label or per-query result was used. These inputs came from RouterArena or other entries:
and Add BizRouter submission (balanced Smart Routing) #229, used for the HY4 Flash correction
errors, provider content blocks, empty outputs). We retried each failed item once. Eight succeeded.
The one left, a HY4 Flash content-filter refusal, stays empty and is scored as wrong.
for_optimality: true) hold the two unpicked models' answers for each of the 809sub_10 queries, generated with the same settings.
Files
router_inference/config/AutoModelRouter.jsonrouter_inference/predictions/AutoModelRouter.json: 8,400 rows plus 1,618 optimality rowsrouter_inference/predictions/AutoModelRouter-robustness.json: 420 rowsmodel_cost/model_profiles.yaml:tencent/hy4-flash(OpenRouter, Tencent, promotional price; list price noted)kt/mmbert-joint3in1(local price)google/gemini-3.8-flash@lowandgoogle/gemini-3-flash-preview@noneon the existing rowsmodel_cost/model_cost.json(regenerated)universal_model_names.py: the three model namesllm_inference/model_inference.py:tencent/hy4-flashrouted via OpenRouter