ZooWork-Instinct-Reranker-4B
A 4B-parameter generalist reranker from the paper
Instinct-Reranker: From Ranking to Decisions in Retrieval
that also works as a decision model: its score P(yes) ranks
candidates, and the single threshold 0.5 decides which ones to keep, across tasks and without per-task
tuning. One forward pass per (query, document) pair, documents up to 2,048 tokens, scores cacheable per pair.
Fine-tuned from Qwen/Qwen3.5-4B with LoRA on curated public
retrieval data (labels from source gold, rules, or locally run LLMs),
then merged into an average model soup of its final runs.
This repository holds the merged full weights; no adapter or extra download is needed.
Highlights
- 🏆 Best average at its size: 66.98 on nine benchmark families, vs 63.49 for
Qwen3-Reranker-4B, the strongest open reranker of 4B or less that we evaluated (+3.49). - 🥇 First on 6 of 9 benchmarks among models of its size; largest leads: STaRK +16.86, ShopRank +6.95, Struct-IR +5.10.
- 📈 Competes with larger models: above
Qwen3-Reranker-8B(64.22), 2× its size. - ⚖️ Decides, not only ranks: one threshold,
P(yes) >= 0.5, across tasks; set F1 67.2 vs 55.0 and abstention 75.3 vs 65.1 forQwen3-Reranker-4B.
Ranking results
nDCG@10 x100 (STaRK: hit@1; ShopRank: pairwise accuracy), averaged over each benchmark's sets. All models rerank the same candidates with their own documented interface. MTEB-R is the official ten-task mean. Avg: mean of the nine benchmarks. Bold: best among models of the same size or smaller; larger models (italic) are shown for reference.
Highest average among rerankers up to 4B (66.98 vs 63.49 for Qwen3-Reranker-4B), best on 6 of 9 benchmarks; also above the larger Qwen3-Reranker-8B (64.22).
| Model | Avg | BEIR | MTEB-R | BRIGHT | RTEB | MIRACL | Struct-IR | STaRK | CoREB | ShopRank |
|---|---|---|---|---|---|---|---|---|---|---|
| zoowork-instinct-reranker-4b | 66.98 | 66.81 | 68.65 | 27.57 | 79.23 | 74.82 | 62.96 | 65.18 | 71.18 | 86.44 |
Qwen3-Reranker-4B | 63.49 | 66.68 | 69.85 | 23.32 | 79.43 | 75.43 | 57.86 | 48.32 | 71.03 | 79.49 |
Qwen3-Reranker-8B (larger) | 64.22 | 67.97 | 69.37 | 23.16 | 80.15 | 75.18 | 60.39 | 48.09 | 72.10 | 81.55 |
Decisions at a fixed threshold
Agentic pipelines need a yes/no answer, not just an order. Kept = P(yes) >= 0.5, with no per-task tuning
(test splits; the competitor at its own 0.5):
| Model | Set F1 | Abstention (correctly returns nothing) |
|---|---|---|
| zoowork-instinct-reranker-4b | 67.2 | 75.3 |
Qwen3-Reranker-4B | 55.0 | 65.1 |
Usage
Requires transformers with Qwen3.5 support. The score is P(yes | yes or no) at the last position of the chat
prompt below, which is the scorer behind the numbers above. Change INSTRUCTION to describe the task (e.g.
"Given a claim, find documents that refute the claim").
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "srpone/zoowork-instinct-reranker-4b"
tok = AutoTokenizer.from_pretrained(model_id, padding_side="left")
model = AutoModelForCausalLM.from_pretrained(model_id, dtype=torch.bfloat16).cuda().eval()
SYSTEM = ('Judge whether the Document meets the requirements based on the Query and '
'the Instruct provided. Note that the answer can only be "yes" or "no".')
INSTRUCTION = "Given a web search query, retrieve relevant passages that answer the query"
MAX_DOC_TOKENS = 2048 # the length the model was trained and evaluated at
def token_ids(words):
ids = set()
for w in words:
for s in (w, " " + w):
enc = tok.encode(s, add_special_tokens=False)
if len(enc) == 1:
ids.add(enc[0])
return sorted(ids)
YES, NO = token_ids(["yes", "Yes"]), token_ids(["no", "No"])
def prompt(query, doc, instruction=INSTRUCTION):
doc = tok.decode(tok.encode(doc, add_special_tokens=False)[:MAX_DOC_TOKENS])
user = f"<Instruct>: {instruction}\n<Query>: {query}\n<Document>: {doc}"
msgs = [{"role": "system", "content": SYSTEM}, {"role": "user", "content": user}]
return tok.apply_chat_template(msgs, tokenize=False, add_generation_prompt=True, enable_thinking=False)
@torch.no_grad()
def p_yes(query, docs, instruction=INSTRUCTION):
enc = tok([prompt(query, d, instruction) for d in docs], return_tensors="pt", padding=True,
add_special_tokens=False).to(model.device)
logp = torch.log_softmax(model(**enc).logits[:, -1, :].float(), dim=-1)
yes, no = logp[:, YES].logsumexp(-1), logp[:, NO].logsumexp(-1)
return torch.sigmoid(yes - no).tolist() # P(yes | yes or no)
query = "what causes the northern lights"
docs = ["The northern lights (aurora borealis) are caused by charged particles from the Sun, carried by the solar "
"wind, colliding with oxygen and nitrogen in Earth's upper atmosphere; the collisions emit the green and red "
"light seen near the poles.",
"The Northern Line is a London Underground line running from Edgware to Morden."]
scores = p_yes(query, docs)
print(scores) # rank by score ...
print([d for d, s in zip(docs, scores) if s >= 0.5]) # ... or keep what passes the 0.5 threshold
Limitations
- Documents beyond 2,048 tokens are truncated; the model was trained and evaluated at that length.
- The 0.5 threshold is calibrated on the training mixture; on tasks whose share of relevant candidates is far from it (e.g. almost every candidate relevant), the best threshold moves and a held-out recalibration helps.
- Text only, although the base checkpoint is multimodal.
Citation
@article{xue2026instinct,
title = {Instinct-Reranker: From Ranking to Decisions in Retrieval},
author = {Xue, Siqiao and Zhang, Zexian and Hu, Ning},
journal = {arXiv preprint arXiv:2612.00868},
year = {2026},
url = {https://arxiv.org/abs/2612.00868}
}
License
Apache 2.0, as the base model.