Trained Decider and Decider-Post models for Decider-RAG: Learning to Plan Before Generating in
Edge–Cloud Retrieval-Augmented Generation. Each checkpoint holds the LoRA weights and the MLP
head (best.pt, about 51 MB) on top of Qwen/Qwen3-4B; the base model is downloaded separately.
Code, result data and the paper's table and figure generators:
https://github.com/JeonghwaLee/decider-rag.
| Directory | Model | Training data | Used in |
|---|---|---|---|
decider-hotpotqa |
Decider | HotpotQA, 5,800 questions | Tables II, III, IV, VI |
decider-musique |
Decider, joint | HotpotQA + MuSiQue, 3,800 | Tables II, III, IV, VI |
decider-2wiki |
Decider, joint | HotpotQA + MuSiQue + 2Wiki, 5,800 | Table VI |
decider-post-hotpotqa |
Decider-Post (reads the edge answer) | HotpotQA, 5,800 | Table IV |
decider-post-musique |
Decider-Post (reads the direct-cloud answer) | HotpotQA + MuSiQue, 3,800 | Table IV |
Qwen/Qwen3-4B (revision 1cfa9a7208912126459214e8b04321603b3df60c), bf16,
LoRA r = 16, alpha = 32 on q_proj, k_proj, v_proj, o_proj.Linear(2560, 512) – GELU – Linear(512, 5) on the last-token hidden state.fE, fN, fT, dEN, dNT (predicted F1 of the edge, direct-cloud and
cloud-reasoning plans, and the gains fN − fE, fT − fN). The code writes the plans as
E, N, T; the paper writes them as E, C, R.fT therefore predicts
the quality of the reasoning call itself, not the final quality after the recovery plan
(recovery in config.json).decider.build_text). Decider-Post appends the candidate answer, at most 512 tokens
(decider.build_post_text).Each config.json holds the validation-calibrated policy used in the paper.
dEN > t_EN; reasoning iff also dNT > t_NT.
HotpotQA uses E or N (t_NT = inf); MuSiQue always uses the cloud (t_EN = -inf).dEN on HotpotQA, dNT on MuSiQue).online_cmp.py in the
code repository), so it has no fixed live threshold.decider-hotpotqa and decider-musique carry two threshold sets in policy_profiles:
tables_II_III (the default policy) and table_IV, recalibrated on validation for the
Decider-Post comparison. Use choose(s, cfg, profile="table_IV") to reproduce the Decider rows
of Table IV.from decider import load, build_text, score, choose
model, tok, cfg = load("decider-musique")
s = score(model, tok, build_text(question, k, passages, tok))
plan = choose(s, cfg) # "E", "N" or "T"; thresholds of Tables II and III
plan = choose(s, cfg, profile="table_IV") # thresholds of the Table IV comparison
python smoke_test.py scores the bundled examples.json of every model and compares the scores
with those recorded at training time (tolerance 0.03 in bf16) and the chosen plans (scores only
for the 2Wiki model, which has no fixed thresholds). Tested with
torch 2.12.1, transformers 4.56.0, peft 0.15.2 on one GPU.
The complete-pipeline runs served the same weights with vLLM 0.30.0 (pooling runner): merge the
LoRA into the backbone with export_decider_vllm.py from the code repository, serve with
vllm serve <dir> --runner pooling --convert embed --pooler-config '{"pooling_type":"LAST","use_activation":false}'
and apply head.pt to the returned hidden state.
MIT for the files in this repository (see LICENSE). The base model Qwen/Qwen3-4B is
distributed under its own license (Apache-2.0).
decider-2wiki/best.pt 53 MBdecider-hotpotqa/best.pt 53 MBdecider-musique/best.pt 53 MBdecider-post-hotpotqa/best.pt 53 MBdecider-post-musique/best.pt 53 MBQwen/Qwen3-4B