Instructions to use srpone/zoowork-instinct-reranker-2b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use srpone/zoowork-instinct-reranker-2b with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("srpone/zoowork-instinct-reranker-2b") model = AutoModelForMultimodalLM.from_pretrained("srpone/zoowork-instinct-reranker-2b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
ZooWork-Instinct-Reranker-2B
A 2B-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-2B with LoRA on curated public
retrieval data (labels from source gold, rules, or locally run LLMs),
then merged and averaged over 4 training seeds.
This repository holds the merged full weights; no adapter or extra download is needed.
Highlights
- 🏆 Best average at its size: 64.84 on nine benchmark families, vs 57.49 for
Qwen3-Reranker-0.6B, the strongest open reranker of 2B or less that we evaluated (+7.35). - 🥇 First on 7 of 9 benchmarks among models of its size; largest leads: Struct-IR +19.58, STaRK +17.57, ShopRank +6.41.
- 📈 Competes with larger models: above
Qwen3-Reranker-4B(63.49), 2× its size; aboveQwen3-Reranker-8B(64.22), 4× its size. - ⚖️ Decides, not only ranks: one threshold,
P(yes) >= 0.5, keeps the relevant candidates across tasks without per-task tuning.
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 2B (64.84 vs 57.49 for Qwen3-Reranker-0.6B), best on 7 of 9 benchmarks; also above the larger Qwen3-Reranker-4B (63.49) and Qwen3-Reranker-8B (64.22).
| Model | Avg | BEIR | MTEB-R | BRIGHT | RTEB | MIRACL | Struct-IR | STaRK | CoREB | ShopRank |
|---|---|---|---|---|---|---|---|---|---|---|
| zoowork-instinct-reranker-2b | 64.84 | 64.93 | 65.75 | 25.27 | 76.13 | 73.99 | 59.66 | 63.58 | 70.83 | 83.43 |
jina-reranker-v3.5 (0.6B) |
53.65 | 63.62 | 63.73 | 15.74 | 67.97 | 69.57 | 31.41 | 46.01 | 48.09 | 76.67 |
Qwen3-Reranker-0.6B |
57.49 | 62.95 | 66.01 | 19.13 | 70.44 | 74.14 | 39.83 | 43.30 | 67.03 | 74.61 |
mxbai-rerank-large-v2 (1.5B) |
55.54 | 62.62 | 63.19 | 16.14 | 64.08 | 65.70 | 40.08 | 45.71 | 65.36 | 77.02 |
Qwen3-Reranker-4B (larger) |
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 |
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-2b"
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.
- Downloads last month
- -