Decider-RAG checkpoints
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 |
Model
- Backbone
Qwen/Qwen3-4B(revision1cfa9a7208912126459214e8b04321603b3df60c), bf16, LoRA r = 16, alpha = 32 onq_proj, k_proj, v_proj, o_proj. - Head
Linear(2560, 512) – GELU – Linear(512, 5)on the last-token hidden state. - Outputs, in order:
fE, fN, fT, dEN, dNT(predicted F1 of the edge, direct-cloud and cloud-reasoning plans, and the gainsfN − fE,fT − fN). The code writes the plans asE, N, T; the paper writes them asE, C, R.- The two gains are separate regression outputs trained on the gain targets. They are not computed by subtracting the quality outputs, and the policies use only the gains.
- A reasoning answer truncated at the token limit has training target 0.
fTtherefore predicts the quality of the reasoning call itself, not the final quality after the recovery plan (recoveryinconfig.json).
- Input: question, pruned evidence (truncated to 6,144 tokens) and the number of retained passages
(
decider.build_text). Decider-Post appends the candidate answer, at most 512 tokens (decider.build_post_text).
Policies
Each config.json holds the validation-calibrated policy used in the paper.
- Decider: cloud iff
dEN > t_EN; reasoning iff alsodNT > t_NT. HotpotQA usesEorN(t_NT = inf); MuSiQue always uses the cloud (t_EN = -inf). - Decider-Post: generate the candidate, then escalate iff the predicted gain exceeds the threshold
(
dENon HotpotQA,dNTon MuSiQue). - The 2Wiki model is evaluated offline under the budget-matched controller (
online_cmp.pyin the code repository), so it has no fixed live threshold. decider-hotpotqaanddecider-musiquecarry two threshold sets inpolicy_profiles:tables_II_III(the defaultpolicy) andtable_IV, recalibrated on validation for the Decider-Post comparison. Usechoose(s, cfg, profile="table_IV")to reproduce the Decider rows of Table IV.
Usage
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.
License
MIT for the files in this repository (see LICENSE). The base model Qwen/Qwen3-4B is
distributed under its own license (Apache-2.0).