A router between a small and a large language model for multi-hop questions: a Strands Decider
(2B) with its LoRA and pointer head fine-tuned to answer one typed question, "Which model should answer this
question?" Given the question and the small model's passages (before the small model answers), it returns P(large model). Send the question to the large model when that probability is
at or above threshold in systemone.json, which is chosen on validation.
seed1/ and seed2/.systemone_decider.route.PairRouter).The SLR split of HotpotQA's dev set: 4,814 training, 1,110 validation and 1,481 test questions. Cost is the AgentTTS Table 5 price per answering call (Qwen2.5-1.5B 0.5, Qwen2.5-7B 10); the judge's own call is priced the same way. AIQ is the area under the accuracy-vs-cost curve. Intervals are 95% paired bootstrap over the test questions.
| AIQ | With its own cost | |
|---|---|---|
| Seed 0 (root folder) | 0.675 [0.655, 0.698] | 0.666 [0.646, 0.688], 1.19 a call |
| Single seeds, mean ± sd | 0.679 ± 0.004 | 0.669 |
| Three-seed ensemble (mean P) | 0.682 | 0.651 (three calls) |
| Three-seed ensemble, the 1,303 questions nano-jev never saw | 0.681 | |
| Entropy threshold on the small model | 0.665 | |
| Logistic-regression router on the question and passages (before) | 0.668 | |
| Best logistic-regression router at the same decision point | 0.669 | |
| Random | 0.638 | |
| Oracle | 0.758 |
Seed 0 minus each baseline:
| Before its own cost | With it | |
|---|---|---|
| Entropy threshold | +0.010 (95% CI -0.001 to +0.024, not significant) | +0.001 (95% CI -0.010 to +0.014, not significant) |
| Logistic-regression router on the question and passages (before) | +0.007 (95% CI -0.003 to +0.015, not significant) | -0.003 (95% CI -0.012 to +0.005, not significant) |
At its published threshold (0.3241), seed 0 on the test set: 64.82% at a cost of 1.21 a question, plus 1.19 for the judge's call, sending 7.5% of questions to the large model. Always-large: 66.64% at a cost of 10.00 a question; always-small: 60.90% at a cost of 0.50 a question. The threshold keeps accuracy within 1% of always-large's on validation; on test, seed 0 lands 2.7% below it, at 24% of always-large's cost with the judge's call included.
pip install git+https://github.com/mohameddhameem/systemone-decider
from systemone_decider.route import PairRouter
# seed 0; subfolder="seed1" or "seed2" for the others
router = PairRouter.from_pretrained("mohameddhameem/systemone-decider-2b-qp")
# passages: ["title: text", ...], the small model's top 2
p = router.p_large(question, passages)
use_large = router.route(question, passages) == "large"
The judge runs the Strands Decider's 2B torso, so a GPU is needed for useful speed. On a GPU (bf16, the judge's default batches of 16), these folders reproduce every seed's saved scores on all 1,481 test questions exactly.
The Strands Decider's LoRA (rank 16) and pointer head, fine-tuned with grouped-softmax cross-entropy on the 4,814
training questions: lr 0.0001, batch 16, up to 2 epochs, with the epoch of lowest NLL on a
10% hold-out kept. Training started from StrandsAgents/strands-decider-2B-hobson-v21 at revision 2b52a6235c1b8306bbfa30b00b9d4b74b63a39f5.
training.json has the full record and the loss per epoch.
Trained and tested on HotpotQA with one model pair. The threshold is chosen on validation for this pair; re-pick it on your own validation data before using another pair or dataset.
Apache-2.0, as the Strands Decider and Qwen/Qwen3.5-2B-Base are. HotpotQA, the training data, is CC BY-SA 4.0. Whether its share-alike terms apply to weights trained on it is not settled, and this card does not claim that they do not.
lora/adapter_model.safetensors 67 MBseed1/lora/adapter_model.safetensors 67 MBseed2/lora/adapter_model.safetensors 67 MBseed1/slot_head.pt 4 MBseed2/slot_head.pt 4 MBslot_head.pt 4 MB