SystemOne-Jev qp

A router between a small and a large language model for multi-hop questions. It is a 33M MiniLM cross-encoder fine-tuned from nano-jev v1.0. Given the question and the small model's passages (before the small model answers), it returns P(large model): the probability that the large model should answer. Send the question to the large model when that probability is at or above threshold in systemone.json, which is chosen on validation.

  • Small model: Qwen2.5-1.5B-Instruct on nano-jev's top-2 HotpotQA paragraphs. Large model: Qwen2.5-7B-Instruct on all 10.
  • Label: the large model is needed, meaning the small one is wrong and the large one is right (lenient scoring, tau = 0.5).
  • Seeds: seed 0 is in the root folder; seeds 1 and 2 are in seed1/ and seed2/.
  • Code: github.com/mohameddhameem/systemone-jev (training, evaluation, route.py).

Results

HotpotQA SLR split, 1,481 test questions (178 of them were in nano-jev's own training, so the clean figure on 1,303 questions is shown too). Cost is AgentTTS Table 5 price per answering call. AIQ is the area under the accuracy-vs-cost curve.

AIQ
Seed 0 (root folder) 0.670
Three-seed ensemble, 95% CI 0.674 [0.654, 0.697]
Three-seed ensemble, 1,303 clean questions 0.670
Single seeds, mean ± sd 0.672 ± 0.001
Entropy threshold on the small model, 95% CI 0.665 [0.645, 0.686]
Best logistic-regression router, same decision point (before the small model), 95% CI 0.669 [0.649, 0.689]
Oracle (upper bound) 0.758

Intervals are paired bootstrap over the 1,481 test questions.

Router minus baseline, 95% paired bootstrap:

  • against the entropy threshold: +0.009 (95% CI -0.003 to +0.022, not significant)
  • against the best logistic-regression router at the same decision point: +0.005 (95% CI -0.002 to +0.015, not significant)

Neither difference is significant, so these results show no accuracy gain over the baselines. Its own cost is 0.000 units a question on this scale.

The saved scores were computed in bf16 on a GPU, where route.py reproduces them exactly. On a CPU in fp32 they differ by up to 6.5e-03 across the three seeds. At the root folder's threshold, the routing decision flips for 1 of the 1,481 questions, and for at most 1 at any seed's own threshold.

AIQ of each policy with its 95% interval

Accuracy against cost

Use

# pip install git+https://github.com/mohameddhameem/systemone-jev
from systemone_jev.route import Router

router = Router.from_pretrained("mohameddhameem/systemone-jev-qp")
p = router.p_escalate(question, passages)   # passages: ["title: text", ...], the small model's top 2

The three-seed ensemble in the table averages the seeds' P(large model):

from pathlib import Path
from huggingface_hub import snapshot_download

root = Path(snapshot_download("mohameddhameem/systemone-jev-qp"))
seeds = [Router.from_pretrained(str(folder)) for folder in (root, root / "seed1", root / "seed2")]
p = sum(r.p_escalate(question, passages) for r in seeds) / 3

No threshold is published for the ensemble; pick one on your own validation data.

Training

Grouped-softmax cross-entropy on the 4,814 training questions of the SLR split (HotpotQA dev). The label comes from whether each model was right. lr 5e-5, batch 16, up to 3 epochs. The epoch with the lowest NLL on a 10% hold-out is kept. training.json has the full record and the loss per epoch.

Limits

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.

Licence

The weights and code are MIT-licensed, the same as nano-jev v1.0. 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.

Downloads last month
35
Safetensors
Model size
33.4M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for mohameddhameem/systemone-jev-qp

Finetuned
sdmlai/nano-jev
Finetuned
(2)
this model

Dataset used to train mohameddhameem/systemone-jev-qp