/ Модель

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

Контекст
131 072 токена
Лицензия
MIT
Архитектура
retrievalrouter · dense
Базовая модель
Qwen3-0.6B-Base
Библиотека
transformers
Опубликована
11 июл 2026

RetrievalRouter_Baseline

Классификация текстаТекст → label3 профессии

Классификатор выбирает поисковый конвейер для запроса, чтобы направить его в подходящий вариант поиска документов.

18скачиваний за 30 дней0лайковвеса обновлены27 авг 2026

Бенчмарки

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

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

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

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

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

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

RetrievalRouter_Baseline — исследовательский базовый классификатор для выбора стратегии поиска документов, созданный как часть работы RetrievalRouter: Joint Modality and Architecture Selection for Document Retrieval. Модель дообучена на Qwen/Qwen3-0.6B-Base с LoRA; использует mean pooling, 1024-мерное представление и линейную голову, выбирающую один из пяти вариантов поискового конвейера. Классификатор обучен на жёстких метках с функцией потерь cross-entropy.

Модель оценивает запрос и выбирает подходящий маршрут: от недорогого BM25 до плотного поиска, мультимодального поиска или поиска с поздним взаимодействием. Она возвращает выбранный конвейер, а не документы; для работы нужно отдельно запустить этот конвейер по собственным индексам. Чекпойнт предназначен для воспроизведения исследовательских сравнений, а авторы рекомендуют для развёртывания основные чекпойнты RetrievalRouter. Для загрузки пользовательской архитектуры требуется trust_remote_code=True. Лицензия — MIT.

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

  • маршрутизация запросов между BM25 и нейросетевым поиском
  • выбор текстового или мультимодального поиска по документам
  • выбор плотного поиска или поиска с поздним взаимодействием
  • сравнение стратегий маршрутизации в экспериментах по поиску документов

Ограничения

Модель возвращает только выбор поискового конвейера, а не найденные документы; выбранный поиск необходимо запускать отдельно по собственным индексам. Это базовый исследовательский чекпойнт, который, согласно README, уступает основным чекпойнтам RetrievalRouter по компромиссу точности и задержки.

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

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

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

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

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

Открыть на Hugging Face

RetrievalRouter — Strategy-Selection Baseline

Adaptive routing baseline from RetrievalRouter: Joint Modality and Architecture Selection for Document Retrieval (EMNLP 2026). This is not the RetrievalRouter method — it is the prior strategy-selection approach of Arabzadeh et al. (CIKM 2021), extended to our five-pipeline setting and trained under an identical pipeline for a controlled comparison.

Motivation

Retrieval pipelines differ in modality (search over text, or over page images) and architecture (cheap dense search, or expensive late-interaction). The accurate ones are slow; the fast ones miss evidence on hard documents. And which one fails depends on the query — a text pipeline can't answer "what's the red curve in Figure 3?", but a multimodal one is overkill for a plain factoid. Across 11 benchmarks, no single pipeline wins on everything. RetrievalRouter picks the cheapest pipeline that can still answer each query, so easy queries stay fast and hard ones still get the heavy pipeline.

What this model is for

A research baseline, provided to reproduce the paper's comparisons. It trains a hard-label classifier: each query is labeled with the cheapest pipeline that ranks a relevant page first (BM25 when none do); at inference a probability threshold decides whether the query stays on BM25 or escalates to the top-scoring neural pipeline. It differs from RetrievalRouter only in the training signal — hard labels + cross-entropy here, versus a soft reward vector + KL for RetrievalRouter. Everything else (encoder, LoRA, pooling, head, split, optimizer, schedule) is shared, so any difference reflects the training signal alone. For deployment, prefer the RetrievalRouter checkpoints, which dominate this baseline on the accuracy–latency frontier.

Routing arms

IndexArm (config name)Paper nameModalityArchitecture
0MULTIMODAL_RERANKMM-RerankMultimodalDense → late-interaction rerank
1MULTIMODAL-SINGLEMM-DenseMultimodalSingle-vector dense
2TEXT_RERANKText-RerankTextDense → late-interaction rerank
3TEXT-SINGLEText-DenseTextSingle-vector dense
4BM25BM25TextLexical

Architecture

Identical to the RetrievalRouter checkpoints: Qwen/Qwen3-0.6B-Base encoder + LoRA (merged), mean pooling → 1024-d, single linear head over the five arms. Custom modeling code loads via trust_remote_code=True.

Usage

import torch
from transformers import AutoModel, AutoTokenizer

repo = "emrekuruu/RetrievalRouter_Baseline"
tokenizer = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModel.from_pretrained(repo, trust_remote_code=True).eval()

inputs = tokenizer("In figure 3, what does the red dashed curve represent?",
                   return_tensors="pt", truncation=True, max_length=128)
with torch.no_grad():
    logits = model(**inputs)["logits"]              # shape [1, 5]
arm = model.config.strategy_names[logits.softmax(-1).argmax(-1).item()]
print(arm)   # e.g. "MULTIMODAL_RERANK" -> run that pipeline for this query

The router returns which retrieval pipeline to run, not documents. You then execute the selected pipeline against your own indices.

Citation

If you use this baseline, please cite both the RetrievalRouter paper and the original strategy-selection method it is based on:

@misc{kuru2026retrievalrouterjointmodalityarchitecture,
      title={RetrievalRouter: Joint Modality and Architecture Selection for Document Retrieval}, 
      author={Emre Kuru and Mehmet Onur Keskin and Reza Farahbakhsh and Noel Crespi},
      year={2026},
      eprint={2608.25625},
      archivePrefix={arXiv},
      primaryClass={cs.IR},
      url={https://arxiv.org/abs/2608.25625}, 
}

@inproceedings{arabzadeh2021predicting,
  title     = {Predicting efficiency/effectiveness trade-offs for dense vs. sparse retrieval strategy selection},
  author    = {Arabzadeh, Negar and Yan, Xinyi and Clarke, Charles L. A.},
  booktitle = {Proceedings of the 30th ACM International Conference on Information \& Knowledge Management (CIKM)},
  pages     = {2862--2866},
  year      = {2021}
}

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

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

GPU в ailist

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

Нельзя запустить

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

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

0 моделей