/ Модель

Характеристики

Контекст
262 144 токена
Размер весов
9,3 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3_5 · dense
Базовая модель
Qwen3.5-4B
Библиотека
transformers
Опубликована
15 ноя 2026

zoowork-instinct-reranker-4b

Ранжирование текстаТекст → score
34скачиваний за 30 дней4лайкавеса обновлены2 дек 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Текстовый реранкер на 4 млрд параметров, который сортирует документы по релевантности запросу и отбирает их по оценке P(yes).

ZooWork-Instinct-Reranker-4B — модель-реранкер на 4 млрд параметров, разработанная авторами работы Instinct-Reranker: From Ranking to Decisions in Retrieval. Она дообучена на базе Qwen/Qwen3.5-4B с помощью LoRA, после чего финальные запуски объединены в усреднённую модель; репозиторий содержит полные объединённые веса. Модель оценивает пару «запрос — документ» по вероятности P(yes), ранжирует кандидатов и может отбирать подходящие документы по единому порогу 0,5.

Модель предназначена для повторного ранжирования результатов поиска и принятия решений о релевантности в поисковых и агентных системах. По заявлению авторов, она показала среднее значение 66,98 на девяти наборах бенчмарков и превзошла сравниваемые реранкеры размером до 4 млрд параметров; эти результаты относятся к оценкам авторов. Вход — текст запроса и документа; обработка выполняется отдельно для каждой пары, а документы длиннее 2 048 токенов обрезаются. Хотя базовая Qwen3.5 мультимодальна, этот реранкер работает только с текстом.

Модель выпущена под лицензией Apache-2.0. Порог 0,5 настроен на смеси обучающих данных и может быть неоптимален для задач с существенно иной долей релевантных кандидатов; для таких задач может потребоваться настройка на отложенной выборке.

Сценарии применения

  • повторное ранжирование результатов поисковой выдачи
  • отбор документов для контекстной системы RAG
  • оценка релевантности документов запросу
  • поиск документов, подтверждающих или опровергающих утверждение
  • отбор кандидатов в агентном поисковом конвейере

Ограничения

Документы длиннее 2 048 токенов обрезаются. Порог P(yes) = 0,5 может быть неоптимален для задач с иной долей релевантных кандидатов; в таких случаях авторы рекомендуют калибровку на отложенной выборке.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Ранжирование» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

ZooWork-Instinct-Reranker-4B

arXiv Model Collection Code ZooWork License

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 for Qwen3-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).

ModelAvgBEIRMTEB-RBRIGHTRTEBMIRACLStruct-IRSTaRKCoREBShopRank
zoowork-instinct-reranker-4b66.9866.8168.6527.5779.2374.8262.9665.1871.1886.44
Qwen3-Reranker-4B63.4966.6869.8523.3279.4375.4357.8648.3271.0379.49
Qwen3-Reranker-8B (larger)64.2267.9769.3723.1680.1575.1860.3948.0972.1081.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):

ModelSet F1Abstention (correctly returns nothing)
zoowork-instinct-reranker-4b67.275.3
Qwen3-Reranker-4B55.065.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.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3_5ForConditionalGeneration
Ревизия весов
f35ddfd

0 моделей