Skip to content

Add chuzom-clean: benchmark-agnostic confidence-gated cascade router#160

Closed
ypollak2 wants to merge 2 commits into
RouteWorks:mainfrom
ypollak2:submit/chuzom-clean
Closed

Add chuzom-clean: benchmark-agnostic confidence-gated cascade router#160
ypollak2 wants to merge 2 commits into
RouteWorks:mainfrom
ypollak2:submit/chuzom-clean

Conversation

@ypollak2

@ypollak2 ypollak2 commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Summary

chuzom-clean is a benchmark-agnostic, confidence-gated cascade router. It supersedes the withdrawn PR #158 with a clean-break design that routes on live model behaviour, never on RouterArena prompt templates.

How it routes

  1. Probe the 2 cheapest models — qwen/qwen3-235b-a22b-2507 and deepseek/deepseek-v4-flash.
  2. Extract each final answer with a generic, format-driven extractor and compare them.
  3. Agree → ship the cheapest (qwen3-235b). Disagree → escalate to deepseek/deepseek-v3.2.

The decision uses cross-model agreement (a label-free confidence signal); the single agreement threshold was frozen on self-generated data before any RA prompt was routed.

Model pool & routing share (full split)

Model in/out $/M share
qwen/qwen3-235b-a22b-2507 0.071 / 0.10 56.5%
deepseek/deepseek-v3.2 (escalation) 0.26 / 0.38 43.5%
deepseek/deepseek-v4-flash 0.14 / 0.28 probe only

Compliance

  • No RouterArena-template matching. The router inspects only intrinsic content + live model agreement. A CI-style guard confirms zero RA-template literals (Context: None, \boxed, task-header strings, etc.) in the router source.
  • Calibrated on self-generated data only. The one threshold was fit on ~700 self-authored computable-ground-truth prompts. SHA-256 contamination audit: 0 overlap between calibration prompts and all 8,400 full + 420 robustness prompts (normalized NFC→strip→collapse-ws→casefold).
  • Shared evaluator files unchangedllm_evaluation/metrics.py, router_inference/compare_router_accuracy.py, llm_inference/model_inference.py are byte-identical to main.
  • No model_cost/ edits — all three models were already in the cost table.
  • Cost disclosure: the router probes 2 cheap models per query before its final pick (same post-generation mechanism as Nadir PR Add Nadir router (verifier-gated cascade + cost-min baseline) #112/Add nadir-tumbler: TUMBLER fit head + cheap-probe agreement gate (supersedes Nadir Router entry) #159). RouterArena charges only the final pick; the probe cost is paid in production.

/evaluate

Probe 2 cheapest models (qwen3-235b + deepseek-v4-flash); ship cheapest on
answer-agreement, else escalate to deepseek-v3.2. No RouterArena prompt-template
matching; the single agreement threshold is calibrated on self-generated data
only. SHA-256 contamination audit: 0 overlap with RA full+robustness prompts.
Shared evaluator files unchanged; all models already in model_cost.json.
@ypollak2

ypollak2 commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

/evaluate

…plit rows

Prior commit shipped generated_result:null placeholders, causing the
evaluate workflow to fail check_config_prediction_files.py's
--check-generated-result validation. Ran the already-decided routing
model per row (no re-probing) via the OpenRouter API to produce real
generated_answer/success/token_usage for every row. Validated locally
against check_config_prediction_files.py (full + robustness, both pass).
@ypollak2

ypollak2 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

/evaluate

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

Router Evaluation Results

Router: chuzom-clean
Dataset Split: full

RouterArena Metrics

Metric Value
RouterArena Score 0.7102
Accuracy 70.67%
Total Cost $0.556650
Avg Cost per Query $0.000066
Avg Cost per 1K Queries $0.0663
Number of Queries 8400
Abnormal Entries 0
Robustness Score 0.6119

Evaluation completed by RouterArena automated workflow

@ypollak2

ypollak2 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Withdrawing this submission to continue development on the router; will resubmit once it clears our internal quality bar. Thanks!

@ypollak2 ypollak2 closed this Jul 6, 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.

1 participant