/ Модель

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

Контекст
40 960 токенов
Параметры
3,7 млрд
Лицензия
Apache 2.0
Архитектура
qwen3 · dense
Базовая модель
Qwen3-4B
Библиотека
transformers
Опубликована
2 ноя 2026

RE3RANK-Qwen3-4B

Генерация текстаТекст → текст8 профессий

RE3RANK-Qwen3-4B — дообученный на базе Qwen3-4B текстовый реранкер, который сортирует найденные поиском документы по их релевантности вопросу.

87скачиваний за 30 дней0лайковвеса обновлены3 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

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

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

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

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

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

RE3RANK-Qwen3-4B — модель-реранкер семейства Qwen3, разработанная авторами метода RE³Rank и дообученная на базе Qwen/Qwen3-4B. Она переупорядочивает набор кандидатов, найденных первичным поисковым ретривером, используя вопрос, тексты кандидатов и созданную моделью цепочку рассуждений. Оценка кандидата определяется вниманием выбранных голов scorer-компонента к его тексту; генератор и scorer обучались совместно.

Модель содержит около 3,7 млрд параметров и принимает текст. Репозиторий включает генератор на Transformers в формате bf16 и отдельный scorer в fp32; scorer собирается с использованием весов базовой модели. Указанное окно контекста — 40 960 токенов. В описанных экспериментах реранкер обрабатывает до 50 кандидатов, найденных Qwen3-Embedding-8B, и оценивался на наборах QA и диалоговой памяти. Поддерживается Apache-2.0. Результаты зависят от качества первичного поиска и состава кандидатов; для загрузки scorer требуется код RE³Rank и базовая модель Qwen/Qwen3-4B.

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

  • переранжирование результатов поиска по вопросу
  • отбор наиболее релевантных документов для RAG
  • ранжирование фрагментов корпуса для ответа на вопрос
  • сортировка кандидатов для многодокументных QA-систем
  • поиск релевантных фрагментов в истории диалога

Ограничения

Модель переупорядочивает только переданный ей список кандидатов и не заменяет первичный ретривер; пропущенные им документы она найти не может. Scorer требует загрузчика из кода RE³Rank и базовой Qwen/Qwen3-4B.

Для каких профессий подходит8

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

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

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

Открыть на Hugging Face

RE3RANK-Qwen3-4B

A RE³Rank reranker built on Qwen/Qwen3-4B. Paper: Re³Rank: Listwise Reranking with Reasoning-Conditioned Retrieval Heads. Code: https://github.com/ryehr/RE3RANK.

Overview of RE³Rank. A first-stage retriever returns candidates for the question from the corpus. The generator writes a reasoning trace from the question and the candidates, and the scorer reads the same input followed by the reasoning trace. Of all attention heads in the scorer, only a few selected RRHeads are used: each candidate is scored by the attention mass that these heads route from the reasoning trace positions to it. The ranking loss ℒrank updates both components and reaches the generator through a straight-through estimator.

RE³Rank reranks the candidates of a first-stage retriever in two steps:

  1. Generator. The model in thinking mode reads the candidates and the question (system prompt "You are a helpful assistant.", the <think> block forced open) and writes a reasoning trace, as it would to answer the question. It is never told to rerank.
  2. Scorer. A second copy of the backbone, truncated at its top scoring layer, reads the same prompt followed by the trace. The score of a candidate is the attention mass that the trace tokens put on its tokens through the scoring heads 23-10,21-8 (layer-head), averaged over the trace tokens and the heads.

Generator and scorer were trained jointly.

Files

pathcontent
/ (repository root)the generator: a Qwen3ForCausalLM checkpoint (bf16) with the tokenizer and chat template of Qwen/Qwen3-4B
scorer/scorer.safetensorsthe trained scorer (fp32)
scorer/config.jsonbase model, scoring heads, and the frozen tables the loader takes from the base model (from_base)

The scorer is loaded by re3rank.scorer.load_scorer of the code repository, which builds the truncated backbone from Qwen/Qwen3-4B and loads scorer/scorer.safetensors on top of it.

Usage

Set up the environment of the code repository (PyTorch, transformers, vLLM), then:

git clone https://github.com/ryehr/RE3RANK && cd RE3RANK && pip install -e .
hf download Ryehr/RE3RANK-Qwen3-4B --local-dir re3rank-qwen3-4b

# 1. the generator writes one greedy reasoning trace per item (vLLM)
python scripts/eval/generate_traces.py --model re3rank-qwen3-4b --tokenizer Qwen/Qwen3-4B \
    --data items.json --out traces.json
# 2. the scorer ranks the candidates of every item; --out holds the scores, one per candidate
python scripts/eval/score.py --model Qwen/Qwen3-4B --heads 23-10,21-8 --ckpt re3rank-qwen3-4b \
    --traces traces.json --data items.json --out scores.json --keep-nogold

items.json is a list of items, each a question with its candidates in first-stage order:

[{"id": "q1", "question": "...",
  "paragraphs": [{"title": "...", "paragraph_text": "..."}, "..."]}]

The model was trained and evaluated with 50 candidates per question (the top-50 of Qwen3-Embedding-8B). A candidate may carry "is_supporting": true/false; with labels, score.py also prints the recall metrics. The whole nine-set evaluation of the paper runs with

CKPT=Ryehr/RE3RANK-Qwen3-4B BASE=Qwen/Qwen3-4B HEADS=23-10,21-8 bash scripts/eval/run_eval.sh

after building the evaluation sets with scripts/data/ (see the repository README).

Results

Macro average over nine sets (HotpotQA, 2WikiMultihopQA, MuSiQue, NQ, PopQA, NarrativeQA, DetectiveQA, LoCoMo, LongMemEval; 9,205 queries), reranking the top-50 candidates of Qwen3-Embedding-8B. Recall is conditional: only queries with a gold candidate among the 50 count, and R@k divides by the number of gold candidates in the pool; NDCG@10 uses binary relevance. In %:

R@1R@3R@5NDCG@10
44.2076.7084.0182.23

Training

394 updates of 96 items (about one epoch) over a 38k-question mixture of NarrativeQA, MuSiQue, ConvoMem, QAConv and FriendsQA training questions with their Qwen3-Embedding-8B top-50 candidates; the evaluation questions are not used for training. Traces were sampled at temperature 1.0 with at most 1,024 tokens; 8-bit paged AdamW, learning rate 1e-5 for both models.

License

Apache-2.0, as the base model (license).

Citation

@misc{yan2026re3ranklistwisererankingreasoningconditioned,
      title={Re$^3$Rank: Listwise Reranking with Reasoning-Conditioned Retrieval Heads},
      author={Ruiyi Yan and Zhuoyuan Mao and Yugo Murawaki and Yiwen Guo},
      year={2026},
      eprint={2611.02550},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2611.02550},
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей