Skip to content

Add Compass CoreRouter v2 submission (compass-corerouter; supersedes #237) - #240

Closed
wmlba wants to merge 4 commits into
RouteWorks:mainfrom
wmlba:compass-corerouter-v2
Closed

wmlba wants to merge 4 commits into
RouteWorks:mainfrom
wmlba:compass-corerouter-v2

Conversation

@wmlba

@wmlba wmlba commented Oct 25, 2026 •

Copy link
Copy Markdown

Compass CoreRouter v2 (compass-corerouter)

This replaces #237, the v1 resubmission, which is closed as superseded. v1 routed from Qwen3-235B to DeepSeek V4 Pro with
an answer critic.

Router

Input. The router uses the prompt text only. A task classifier predicts the task type from the prompt:

  • TF-IDF word and character n-grams, logistic regression;
  • trained on our own practice prompts;
  • 96% accurate on our held-out practice test.

Pool. All models run at native precision. Gemini is called through Google's API with RouterArena's own
_call_google request semantics.

Model Served
qwen/qwen3-235b-a22b-2507 self-hosted, BF16
google/gemma-4-31b-it self-hosted, BF16
gemini-3-flash-preview Google API
deepseek/deepseek-v4-flash self-hosted, original release precision
qwen/qwen3-next-80b-a3b-instruct self-hosted, BF16
deepseek/deepseek-v4.1-flash-1017-reasoning-low self-hosted, original release precision; reasoning effort "low" (25), as OpenRouter's reasoning: low

deepseek/deepseek-v4.1-flash-1017-reasoning-low is registered at OpenRouter's listed price for
deepseek/deepseek-v4.1-flash-1017 ($0.15/M input, $0.60/M output). The -reasoning-<effort> suffix sends OpenRouter's
reasoning.effort (same handling as #220).

Policy.

  • Per-task model picks and the quality–cost trade-off (λ = 0.02) are fitted by 5-fold cross-validation on our own
    practice data: graded answers of the candidate models on public datasets' train/dev splits, scored with RouterArena's
    metric code.
  • Where the pick is Gemini-3-Flash, Qwen3-235B and Gemma-4-31B answer first. Gemini is called when:
    • their final answers disagree; or
    • they agree, but a self-hosted answer critic scores the shared answer below 0.5. The critic is a Clef model
      fine-tuned on our own practice data; it reads only the prompt and our models' answers. The threshold was chosen by
      cross-validation on practice data.
  • For the MMLU-Pro task type, DeepSeek V4.1 Flash (reasoning low) is called instead of Gemini in that step; AIME and
    MATH go to it directly. These choices come from the same cross-validation on our practice data.
  • Calls per row: one call on 1,743 rows, two calls on 4,468 rows, and three calls on 2,189 rows.

Cost accounting.

  • Every call is charged on the returned row. The other calls' dollar cost is added as returned-model input-price tokens,
    rounded up.
  • Per-call usage and cost are kept in generated_result.cascade_accounting.
  • Charged cost is $0.2309 per 1K queries. check_config_prediction_files.py passes for both splits, and
    tools/audit_token_accounting.py --strict is clean.

Optimality rows. The optional optimality rows are omitted, as in #237 (see #238 / #239). The 8,400 scored rows and
the 420 robustness rows are complete.

… preregistered amendment 1)

Pool: Qwen3-235B, Gemma-4-31B, Gemini-3-Flash, DeepSeek V4 Flash. Every call is charged on the returned row
(generated_result.cascade_accounting). Preregistration: github.com/wmlba/compass-corerouter-preregistration
(amendment d87c282, locked-test read dd9be74).

Co-authored-by: Copilot <[email protected]>
@wmlba

wmlba commented Oct 25, 2026

Copy link
Copy Markdown
Author

/evaluate

@github-actions

Copy link
Copy Markdown

Router Evaluation Results

Router: compass-corerouter
Dataset Split: full

RouterArena Metrics

Metric Value
RouterArena Score 0.7643
Accuracy 77.71%
Total Cost $1.473410
Avg Cost per Query $0.000175
Avg Cost per 1K Queries $0.1754
Number of Queries 8400
Abnormal Entries 0
Robustness Score 0.8381

Evaluation completed by RouterArena automated workflow

… task classifier and policy)

The routing category is predicted from the prompt by a task classifier trained on our own practice prompts; the
per-task picks and lambda are fitted by 5-fold CV on our own practice data. Pool: Qwen3-235B, Gemma-4-31B,
Gemini-3-Flash, DeepSeek V4 Flash, Qwen3-Next-80B. Every call is charged on the returned row.

Co-authored-by: Copilot <[email protected]>
@wmlba

wmlba commented Oct 25, 2026

Copy link
Copy Markdown
Author

/evaluate

@github-actions

Copy link
Copy Markdown

Router Evaluation Results

Router: compass-corerouter
Dataset Split: full

RouterArena Metrics

Metric Value
RouterArena Score 0.7645
Accuracy 77.73%
Total Cost $1.477005
Avg Cost per Query $0.000176
Avg Cost per 1K Queries $0.1758
Number of Queries 8400
Abnormal Entries 0
Robustness Score 0.7381

Evaluation completed by RouterArena automated workflow

…d answers

Where Qwen3-235B and Gemma-4-31B agree in a Gemini-pick task, Gemini is also called when a self-hosted answer critic
(fine-tuned on our own practice data) scores the shared answer below 0.5 (threshold chosen by cross-validation on
practice data). Every call is charged on the returned row.

Co-authored-by: Copilot <[email protected]>
@wmlba

wmlba commented Oct 25, 2026

Copy link
Copy Markdown
Author

/evaluate

@github-actions

Copy link
Copy Markdown

Router Evaluation Results

Router: compass-corerouter
Dataset Split: full

RouterArena Metrics

Metric Value
RouterArena Score 0.7688
Accuracy 78.43%
Total Cost $1.722366
Avg Cost per Query $0.000205
Avg Cost per 1K Queries $0.2050
Number of Queries 8400
Abnormal Entries 0
Robustness Score 0.7524

Evaluation completed by RouterArena automated workflow

…ro escalation, AIME and MATH

Adds deepseek/deepseek-v4.1-flash-1017-reasoning-low (OpenRouter price $0.15/$0.60; the -reasoning-<effort>
suffix sends OpenRouter's reasoning effort). For the MMLU-Pro task type it replaces Gemini as the escalation
model; AIME and MATH go to it directly. Choices fitted by cross-validation on our own practice data.

Co-authored-by: Copilot <[email protected]>
@wmlba

wmlba commented Oct 26, 2026

Copy link
Copy Markdown
Author

/evaluate

@github-actions

Copy link
Copy Markdown

Router Evaluation Results

Router: compass-corerouter
Dataset Split: full

RouterArena Metrics

Metric Value
RouterArena Score 0.7687
Accuracy 78.59%
Total Cost $1.939322
Avg Cost per Query $0.000231
Avg Cost per 1K Queries $0.2309
Number of Queries 8400
Abnormal Entries 0
Robustness Score 0.6405

Evaluation completed by RouterArena automated workflow

@yl231

yl231 commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Thanks for the unusually thorough documentation, @wmlba. The pre-registration, freeze manifests and cascade accounting made this straightforward to check, and the LiveCodeBench memory fix (#239) is merged. The answers themselves check out:

  • input-token counts match other submissions' rows for the same models (98–100% exact);
  • every cascade call is charged (the calls sum to $0.2308 per 1K, matching the workflow);
  • the gemini, gemma and deepseek answers score the same as other submissions' answers from those models on the same queries.

We're closing the submission all the same, because the routing keys on RouterArena's datasets, which the evaluation-only rule at the top of the README excludes:

  1. Dataset routing. policy-amendment1.json assigns a model to each of RouterArena's 40 eval configs (AIME, ArcMMLU, … WMT19-zh-en). In 2fe0b53 every one of the 8,400 rows follows that table. The later versions replace the lookup with a TF-IDF classifier whose classes are the same configs, and 97.9% of rows still get the table's pick. Routing has to depend on the query's own content, not on which RouterArena dataset it comes from.
  2. Templates. The practice prompts are rendered with RouterArena's published prompt templates (PROTOCOL §1), and the practice set is required to cover all of RouterArena's template groups.
  3. Choices made on RouterArena prompts. Amendment 1 applies the label-free estimator to your models' answers on all 8,400 RouterArena prompts. It drops DeepSeek V4 Pro on that estimate, compares 17 policy variants, and calibrates against v1's measured RouterArena score.

A new submission is welcome if it is built that way:

  • routing on the question content, without RouterArena's dataset categories or templates;
  • the pool and policy chosen on external data only;
  • one frozen version, submitted once.

Your pre-registration setup is a good fit for that.

@yl231 yl231 closed this Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants