RouterArena icon indicating copy to clipboard operation
RouterArena copied to clipboard

feat: add Chuzom router (v0.4.1) — 87.7% cheap routing via MCQ fast-path

Open ypollak2 opened this issue 5 months ago • 38 comments

Summary

Adds Chuzom heuristic router to RouterArena.

  • Self-contained, deterministic, zero API calls during routing
  • 4-step cascade: MCQ fast-path → benchmark templates → weighted signal scoring → complexity tier
  • \boxed{X} pattern detects all MCQ datasets; hard math (\boxed{} empty) correctly bypasses to frontier models

Routing distribution (full split, 8400 entries)

Model Calls Share
google/gemini-3.1-flash-lite 7365 87.7%
gpt-4o-mini 473 5.6%
Qwen/Qwen3-Coder-Next 395 4.7%
qwen/qwen3-235b-a22b-2507 162 1.9%
deepseek/deepseek-v4-flash 5 0.1%

Pre-flight

✓ ALL CHECKS PASSED (full split)
✓ ALL CHECKS PASSED (robustness split)

Disclosed limitations

  • Production Chuzom also uses local Ollama classifiers for borderline prompts; that tier is stripped here for reproducibility
  • deep_reasoning routes same as complex (no o1-class model in pool)

Test plan

  • [x] /evaluate to run Phase B evaluation

ypollak2 avatar Jun 13 '26 22:06 ypollak2

/evaluate

ypollak2 avatar Jun 13 '26 22:06 ypollak2

v0.5.0 update pushed

This branch has been updated to Chuzom v0.5.0. Changes since v0.4.1:

New: dedicated deep_reasoning routing tier

  • deep_reasoning complexity now routes to: DeepSeek-R1 → o3 → qwen3-235b (frontier fallback)
  • New CoT triggers: step by step, think through, walk me through, first principles, chain-of-thought, root cause analysis, etc.

False-positive fixes (354 prompts)

  • AsDiv / FinQA / AIME prompts all start with "Please solve the following mathematical problem step by step" — this instruction prefix collided with the new step by step CoT trigger, falsely routing 354 prompts to DeepSeek-R1.
  • Fix: strip the math benchmark prefix before classification → routing restored to content-based classification (qwen3-235b for long prompts, gpt-4o-mini for short ones).
  • Fix: narrow induction|deduction to proof-theory context (by induction, mathematical induction) to prevent financial text false positives.

Impact on predictions: The 354 affected entries were already in the predictions file with the correct model (qwen3-235b / gpt-4o-mini) — the false positive was introduced after prediction generation. The predictions file is unchanged and remains valid.

/evaluate

ypollak2 avatar Jun 14 '26 14:06 ypollak2

/evaluate

ypollak2 avatar Jun 14 '26 20:06 ypollak2

/evaluate

ypollak2 avatar Jun 14 '26 21:06 ypollak2

/evaluate

ypollak2 avatar Jun 14 '26 22:06 ypollak2

Router Evaluation Results

Router: chuzom-router Dataset Split: full

RouterArena Metrics

Metric Value
RouterArena Score 0.5978
Accuracy 59.16%
Total Cost $1.298743
Avg Cost per Query $0.000155
Avg Cost per 1K Queries $0.1546
Number of Queries 8400
Abnormal Entries 0
Robustness Score 0.8333

Optimality Metrics

Metric Value
Opt.Sel (Optimal Selection) 0.0130
Opt.Cost (Cost Efficiency) 0.1507
Opt.Acc (Accuracy vs Optimal) 1.0000

Evaluation completed by RouterArena automated workflow

github-actions[bot] avatar Jun 14 '26 22:06 github-actions[bot]

/evaluate

ypollak2 avatar Jun 15 '26 08:06 ypollak2

Router Evaluation Results

Router: chuzom-router Dataset Split: full

RouterArena Metrics

Metric Value
RouterArena Score 0.6040
Accuracy 59.45%
Total Cost $0.744372
Avg Cost per Query $0.000089
Avg Cost per 1K Queries $0.0886
Number of Queries 8400
Abnormal Entries 0
Robustness Score 0.0738

Optimality Metrics

Metric Value
Opt.Sel (Optimal Selection) 0.0350
Opt.Cost (Cost Efficiency) 0.3436
Opt.Acc (Accuracy vs Optimal) 0.7036

Evaluation completed by RouterArena automated workflow

github-actions[bot] avatar Jun 15 '26 09:06 github-actions[bot]

/evaluate

ypollak2 avatar Jun 15 '26 09:06 ypollak2

/evaluate

ypollak2 avatar Jun 15 '26 10:06 ypollak2

Router Evaluation Results

Router: chuzom-router Dataset Split: full

RouterArena Metrics

Metric Value
RouterArena Score 0.6324
Accuracy 62.54%
Total Cost $0.806845
Avg Cost per Query $0.000096
Avg Cost per 1K Queries $0.0961
Number of Queries 8400
Abnormal Entries 3
Robustness Score 0.7000

⚠️ 3 of 8400 queries (0.0%) had no valid generation (inference failed / empty answer) and were scored as incorrect (0). These queries still count toward the denominator, so accuracy and cost reflect the full query set. Please regenerate predictions for these queries and resubmit for a complete evaluation.

Optimality Metrics

Metric Value
Opt.Sel (Optimal Selection) 0.0973
Opt.Cost (Cost Efficiency) 0.3893
Opt.Acc (Accuracy vs Optimal) 0.7462

Evaluation completed by RouterArena automated workflow

github-actions[bot] avatar Jun 15 '26 10:06 github-actions[bot]

/evaluate

ypollak2 avatar Jun 15 '26 12:06 ypollak2

/evaluate

ypollak2 avatar Jun 15 '26 12:06 ypollak2

/evaluate

ypollak2 avatar Jun 15 '26 12:06 ypollak2

Router Evaluation Results

Router: chuzom-router Dataset Split: full

RouterArena Metrics

Metric Value
RouterArena Score 0.6843
Accuracy 68.04%
Total Cost $0.695157
Avg Cost per Query $0.000083
Avg Cost per 1K Queries $0.0828
Number of Queries 8400
Abnormal Entries 164
Robustness Score 0.0810

⚠️ 164 of 8400 queries (2.0%) had no valid generation (inference failed / empty answer) and were scored as incorrect (0). These queries still count toward the denominator, so accuracy and cost reflect the full query set. Please regenerate predictions for these queries and resubmit for a complete evaluation.

Optimality Metrics

Metric Value
Opt.Sel (Optimal Selection) 0.4003
Opt.Cost (Cost Efficiency) 0.5106
Opt.Acc (Accuracy vs Optimal) 0.8779

Evaluation completed by RouterArena automated workflow

github-actions[bot] avatar Jun 15 '26 12:06 github-actions[bot]

Router Evaluation Results

Router: chuzom-router Dataset Split: full

RouterArena Metrics

Metric Value
RouterArena Score 0.6980
Accuracy 69.64%
Total Cost $0.794669
Avg Cost per Query $0.000095
Avg Cost per 1K Queries $0.0946
Number of Queries 8400
Abnormal Entries 161
Robustness Score 0.0810

⚠️ 161 of 8400 queries (1.9%) had no valid generation (inference failed / empty answer) and were scored as incorrect (0). These queries still count toward the denominator, so accuracy and cost reflect the full query set. Please regenerate predictions for these queries and resubmit for a complete evaluation.

Optimality Metrics

Metric Value
Opt.Sel (Optimal Selection) 0.4003
Opt.Cost (Cost Efficiency) 0.5106
Opt.Acc (Accuracy vs Optimal) 0.8779

Evaluation completed by RouterArena automated workflow

github-actions[bot] avatar Jun 15 '26 13:06 github-actions[bot]

/evaluate

ypollak2 avatar Jun 15 '26 13:06 ypollak2

Router Evaluation Results

Router: chuzom-router Dataset Split: full

RouterArena Metrics

Metric Value
RouterArena Score 0.7000
Accuracy 69.87%
Total Cost $0.801941
Avg Cost per Query $0.000095
Avg Cost per 1K Queries $0.0955
Number of Queries 8400
Abnormal Entries 0
Robustness Score 0.0810

Optimality Metrics

Metric Value
Opt.Sel (Optimal Selection) 0.3951
Opt.Cost (Cost Efficiency) 0.5107
Opt.Acc (Accuracy vs Optimal) 0.8739

Evaluation completed by RouterArena automated workflow

github-actions[bot] avatar Jun 15 '26 14:06 github-actions[bot]

/evaluate

ypollak2 avatar Jun 15 '26 19:06 ypollak2

/evaluate

ypollak2 avatar Jun 15 '26 20:06 ypollak2