sequential-router-v2 / DATA_CARD.md
divy123's picture
Add files using upload-large-folder tool
f01cda9 verified
|
Raw History Blame Contribute Delete
13.4 kB
# Data card: Sequential Router v2
> **Note for the public release.** This card describes the original 20,000-query build. The public release contains only its 14,752 permissive-license queries (16 of the 20 task families; no classification, information extraction, translation or abstractive summarization, and no master/expansion query pool), so counts, tables and statistics below are larger than the released data. See the README, "Scope of this release".
## Motivation
Existing routing datasets pair a query with one outcome per model. Sequential routing needs *what a candidate adds given what has already been obtained*. Sequential Router v2 supplies, per query, every model's independent answer
and quality so that arbitrary routing states and their candidate outcomes can be derived offline.
## Composition
20,000 generation queries (a fixed-seed stratified sample of a 30,000-query curated master pool; the remaining 10,000 are an untouched expansion pool), 20 task families:
| task_family | queries | sources |
|:-----------------------|----------:|:---------------------------------------------------------------------------------------------------------------------------|
| classification | 1005 | ag_news, emotion, sst5, trec |
| code_generation | 1138 | apps, humaneval, mbpp |
| code_repair | 872 | humanevalfix, mbpp_mutants |
| information_extraction | 1005 | ade_corpus_v2, conll2003 |
| instruction_following | 1074 | ifeval, ifeval_synth_norobots |
| json_generation | 806 | e2e_nlg |
| knowledge | 1140 | mmlu_pro |
| logic_reasoning | 1139 | bbh, commonsenseqa |
| long_context_qa | 546 | longbench_2wikimqa, longbench_hotpotqa, longbench_multifieldqa, longbench_musique, longbench_narrativeqa, longbench_qasper |
| math_competition | 1141 | hendrycks_math |
| math_word | 1006 | gsm8k |
| multilingual | 1009 | global_mmlu_lite, mgsm |
| planning | 940 | blocksworld_synth, hanoi_synth, sudoku_synth |
| reading_comprehension | 1005 | drop, squad_v2 |
| science | 1141 | arc_challenge, mmlu_pro_stem, supergpqa |
| simplification | 1007 | asset |
| summ_abstractive | 1007 | xsum |
| summ_news | 1007 | cnn_dailymail |
| table_reasoning | 1007 | tabfact |
| translation | 1005 | wmt14 |
Models (20), each answering the original query independently (no aggregator, no cross-model context):
| id | model used | family | params | reasoning | license | requested | substitution reason |
|---|---|---|---|---|---|---|---|
| `qwen3_0p6b` | Qwen/Qwen3-0.6B | qwen | 0.6B | no | apache-2.0 | | |
| `qwen3_1p7b` | Qwen/Qwen3-1.7B | qwen | 1.7B | no | apache-2.0 | | |
| `qwen3_4b` | Qwen/Qwen3-4B | qwen | 4.0B | no | apache-2.0 | | |
| `qwen3_8b` | Qwen/Qwen3-8B | qwen | 8.2B | no | apache-2.0 | | |
| `qwen3_14b` | Qwen/Qwen3-14B | qwen | 14.8B | no | apache-2.0 | | |
| `qwen3_32b` | Qwen/Qwen3-32B | qwen | 32.8B | no | apache-2.0 | | |
| `r1_distill_qwen_7b` | deepseek-ai/DeepSeek-R1-Distill-Qwen-7B | deepseek | 7.6B | yes | mit | | |
| `r1_distill_qwen_14b` | deepseek-ai/DeepSeek-R1-Distill-Qwen-14B | deepseek | 14.8B | yes | mit | | |
| `ministral3_8b` | mistralai/Ministral-3-8B-Instruct-2512 | mistral | 8.0B | no | apache-2.0 | | |
| `magistral_small_24b` | mistralai/Magistral-Small-2509 | mistral | 24.0B | yes | apache-2.0 | | |
| `gemma3_4b` | unsloth/gemma-3-4b-it | gemma | 4.3B | no | gemma | google/gemma-3-4b-it | official repo is manually gated and no HF token is available; unsloth mirror hosts the same weights (Gemma license applies) |
| `gemma3_12b` | unsloth/gemma-3-12b-it | gemma | 12.2B | no | gemma | google/gemma-3-12b-it | same as above |
| `phi4_mini_reasoning` | microsoft/Phi-4-mini-reasoning | phi | 3.8B | yes | mit | | |
| `phi4` | microsoft/phi-4 | phi | 14.7B | no | mit | | |
| `granite33_2b` | ibm-granite/granite-3.3-2b-instruct | granite | 2.5B | no | apache-2.0 | | |
| `granite33_8b` | ibm-granite/granite-3.3-8b-instruct | granite | 8.2B | no | apache-2.0 | | |
| `llama31_8b` | unsloth/Llama-3.1-8B-Instruct | llama | 8.0B | no | llama3.1 | meta-llama/Llama-3.1-8B-Instruct | official repo manually gated, no HF token; unsloth mirror hosts the same weights (Llama 3.1 community license applies) |
| `llama32_3b` | unsloth/Llama-3.2-3B-Instruct | llama | 3.2B | no | llama3.2 | another accessible Llama instruct in a different size tier | Llama-3.3-70B would need 2 GPUs and ~5x the compute; 3B gives a distinct small tier |
| `gpt_oss_20b` | openai/gpt-oss-20b | openai | 20.9B (3.6B active) | yes | apache-2.0 | | |
| `olmo3_7b` | allenai/Olmo-3-7B-Instruct | allenai | 7.3B | no | apache-2.0 | | |
## Generation protocol
vLLM 0.31 on 8 x A100-80GB; one model at a time on all GPUs (data-parallel replicas, tensor-parallel 2 for Qwen3-32B); max context 16,384; greedy decoding for non-reasoning models and the vendor-recommended sampling for reasoning models
(R1-distill T=0.6/top-p 0.95, Phi-4-mini-reasoning T=0.8, Magistral T=0.7, gpt-oss T=1.0 with reasoning effort low); Qwen3 hybrid models run with thinking disabled. Per-family max-token budgets
(`max_tokens_nonreasoning` / `max_tokens_reasoning` in the query table). Reasoning models whose answer was truncated by that budget were re-generated once with a 14,336-token budget (capped attempts archived in `responses_truncated/`);
answers that remain truncated are scored on what was produced (an unterminated reasoning trace counts as an empty answer, Q = 0).
## Quality scoring (Q in [0, 10])
Objective wherever possible: exact match (math, multiple choice, BBH, classification, table verification), unit tests (HumanEval, MBPP, APPS, code repair), entity / pair / slot F1 (extraction, JSON), token F1 (reading comprehension, long-context QA),
IFEval-style constraint checkers, programmatic verifiers (Blocksworld, Tower of Hanoi, Sudoku), COMET-22 (translation: `Q = 10 clip((COMET - 0.6)/0.3)`), and SARI plus baseline-rescaled BERTScore (simplification).
Only the two summarization families (CNN/DailyMail, XSum) use a source-grounded LLM judge (Qwen3-30B-A3B-Instruct-2507, claim-level rubric; `Q = 0.4 factuality + 0.4 coverage + 0.2 mean(relevance, coherence, adherence)`
because the latter three saturate near 10). Empty answers score 0 without a judge call. Evaluators were checked by scoring gold-derived answers (10/10) and junk answers (about 0) for every evaluator type (`scripts/seqroute/selftest_evaluators.py`).
### Judge reliability
Within-judge reliability from 3 repeated samples (T=0.7) on a fixed subset (150 queries per family):
| family | reliability (1 - within/total var) | pooled noise sd | within var | total var |
|---|---|---|---|---|
| summ_abstractive | 0.763 | 0.539 | 0.291 | 1.224 |
| summ_news | 0.806 | 0.292 | 0.085 | 0.440 |
`label_confidence` equals this reliability for judge-scored rows and 1.0 for deterministic scorers; `judge_noise_sd` is the pooled noise sd. Cross-judge agreement (gemma-3-27b-it) and control-candidate checks (gold reference vs mismatched reference):
```json
{
"primary_calls": 40644,
"primary_retried_calls": 28,
"primary_unparsed": 3,
"controls_mean_Q": {
"ctrl_neg": {
"summ_abstractive": 0.06,
"summ_news": 1.154
},
"ctrl_ref": {
"summ_abstractive": 6.953,
"summ_news": 8.643
}
},
"control_pairs": 200,
"control_ref_gt_neg_rate": 0.965,
"control_neg_Q_below_3_rate": 0.92,
"Q_saturation": {
"summ_abstractive": {
"mean": 8.427157380218956,
"share_ge_9": 0.28415816960954987,
"share_eq_10": 0.05366824173091271
},
"summ_news": {
"mean": 9.685096864865487,
"share_ge_9": 0.9076418888723372,
"share_eq_10": 0.6604101494612443
}
},
"corr_with_rougeL": {
"summ_abstractive": {
"pearson": -0.041750332255268266,
"spearman": -0.07128032036640407,
"n": 1544
},
"summ_news": {
"pearson": 0.009535633557114627,
"spearman": -0.02585332110931947,
"n": 1456
}
},
"cross_judge": {
"summ_abstractive": {
"n": 1895,
"pearson": 0.42077075304728573,
"spearman": 0.4310991477000373,
"mean_primary": 8.42931440298195,
"mean_alt": 8.303122251539138,
"mean_abs_diff": 0.7698475520375255
},
"summ_news": {
"n": 1920,
"pearson": 0.5266442533662883,
"spearman": 0.24028675962124954,
"mean_primary": 9.663408376924,
"mean_alt": 9.638036830068081,
"mean_abs_diff": 0.39414346937784417
}
},
"cross_judge_model_ranking_spearman": 0.9097744360902256,
"repeat": {
"summ_abstractive": {
"n_responses": 1899,
"within_sd": 0.5390032686710707,
"total_sd": 1.106181783681669
},
"summ_news": {
"n_responses": 1920,
"within_sd": 0.2920496918287298,
"total_sd": 0.6631542394945277
}
}
}
```
The judge is not in the model pool, but it belongs to the Qwen3 family of seven pool models; self-preference toward Qwen-style summaries cannot be excluded.
## Cost
GPU-seconds are allocated from measured wave GPU-time by token share (see README); they include scheduling inefficiency of the batch tail and are specific to this hardware/software stack. Calibrated rates: `manifests/cost_calibration.json`.
## Known limitations
- Hardware is A100, not H100; absolute cost and latency do not transfer.
- Some official repositories (Gemma, Llama) are gated; ungated mirrors with identical weights were used. Llama-3.2-3B stands in for a large Llama. Exact substitutions are in the model table.
- Token budgets truncate some reasoning-heavy cells (see `reports/dataset_report.md`); truncation is part of the label, not noise.
- Synthetic components (Blocksworld, Hanoi, Sudoku puzzles; IFEval-style prompts built from No Robots; MBPP bug-injection mutants) differ in distribution from natural queries.
- Judge-scored summarization labels are noisy and, for CNN/DailyMail, saturated (mean about 9.7, two thirds of responses score 10), so little routing signal exists there; XSum is less saturated (mean about 8.4).
Judge validity evidence: reliability 0.76-0.81 from repeats, gold-vs-mismatched-reference controls separated in 96.5% of pairs, cross-judge agreement moderate at response level (Pearson 0.42-0.53) but strong at model-ranking level (Spearman 0.91),
and no correlation with ROUGE-L against the single reference summary (see `manifests/judge_validation.json`).
- `latency_s` is per-request latency under saturated continuous batching (hundreds of concurrent requests per replica), i.e. it includes queueing; it is not unloaded latency.
- After the extended-budget pass, 0.5-8% of responses per model still end at the token cap (`finish_reason == 'length'`).
- Public benchmarks may be contaminated for some models.
- Partial-credit rules for planning tasks (success = 10, legal-but-incomplete up to 3, illegal = 0) are a design choice.
- Query states with `sample_stratum != 'random'` were selected using quality outcomes and over-represent hard situations.
- Source licenses differ (see LICENSES.md); 5,248 of the 20,000 generation queries come from sources with non-commercial, restricted or unspecified terms.