/ Модель

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

Параметры
28,3 млн
Лицензия
Apache 2.0
Архитектура
reign · dense
Базовая модель
gte-small
Опубликована
28 авг 2026

reign-base-l3_gn-gte-small_s384_val-selected

ЭмбеддингиТекст → embedding5 профессий

REIGN base-l3 агрегирует эмбеддинги фрагментов длинных документов для семантического поиска между документами.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Это англоязычный REIGN base-l3 — трёхслойный плотный энкодер для поиска по длинным документам, разработанный на основе GTE-small и обученный на GoodWiki-Long-Synthetic. Он обрабатывает последовательности кэшированных эмбеддингов фрагментов, полученных отдельной замороженной моделью thenlper/gte-small, и агрегирует их для представления документа. Сам чекпойнт содержит только REIGN-энкодер; для работы нужно отдельно загрузить GTE-small.

В конфигурации указаны 3 слоя, размерность 768 и 12 голов внимания; метаданные каталога указывают 28,3 млн параметров, а README сообщает 22,45 млн обучаемых параметров для энкодера и 55 млн параметров в связке с GTE-small. В опубликованных результатах указаны nDCG@10 67,31 на GoodWiki-Long и 68,87 на LoCo в режиме zero-shot, а также nDCG@100 31,10 на DAPFAM zero-shot. Модель предназначена прежде всего для междокументного поиска по многофрагментным входам.

Для коротких текстов, укладывающихся в один фрагмент, энкодеру нечего агрегировать, поэтому авторы рекомендуют использовать одну GTE-small. Лицензия — Apache-2.0.

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

  • поиск релевантных длинных документов по запросу или документу
  • ранжирование многофрагментных документов по семантическому сходству
  • поиск по длинным статьям и энциклопедическим материалам
  • zero-shot retrieval по коллекциям длинных документов

Ограничения

Модель рассчитана на многофрагментные входы и требует отдельно загружаемую замороженную GTE-small для получения эмбеддингов фрагментов. Для коротких входов, сводящихся к одному фрагменту, авторы рекомендуют использовать GTE-small без REIGN-энкодера.

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

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

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

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

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

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

Открыть на Hugging Face

reign-base-l3_gn-gte-small_s384_val-selected

REIGN base-l3 cross-chunk encoder trained on GoodWiki-Long-Synthetic over a frozen GTE-small guidance network — a long-document bi-encoder that reads a sequence of cached chunk embeddings instead of tokens.

Configuration

REIGN encoderbase-l3 — 3 layers, d = 768, 12 heads, FFN 3072, 22.45M trainable parameters
Guidance network (frozen)thenlper/gte-small — GTE-small, 33M
Combined stack55M parameters (paper Table 2)
Chunk size K512 (the guidance network's context window)
Training stride S384 — stride tag in the checkpoint name
Chunk-position signalnone — the encoder is a permutation-equivariant set function
Poolingmean over the chunk sequence
Training datadevrim/goodwiki_long_synthetic_ir
Training recipereleased cosine recipe (below)
Checkpoint selectionbest validation nDCG@10 on the val qrels split

Reported results

Every number below is the value the paper reports for this exact checkpoint; nothing is re-derived here.

BenchmarkMetricEval strideValuePaper
GoodWiki-Long testnDCG@10s38467.31Table 2 / Table 7
LoCo (macro-avg, zero-shot)nDCG@10s38468.87Tables 3, 8
DAPFAM test (zero-shot)nDCG@100s38431.10Tables 4, 8
MTEB ArguAnanDCG@10512-token inputs50.32Table 6
MTEB FiQA-2018nDCG@10512-token inputs32.55Table 6

The MTEB rows are the paper's short-context control and are below the bare GN baseline (55.42 / 39.31): inputs shorter than the chunk size collapse to a single chunk embedding, leaving the cross-chunk encoder nothing to aggregate. They are reported as a scope boundary, not as a result.

Usage

The checkpoint holds only the REIGN cross-chunk encoder. The guidance network is loaded separately and stays frozen, so both must be named at construction time.

pip install git+https://github.com/devrimcavusoglu/reign.git
import numpy as np
from huggingface_hub import snapshot_download
from reign.encoders.reign import ReignBaselineEncoder

checkpoint_path = snapshot_download("devrim/reign-base-l3_gn-gte-small_s384_val-selected")

encoder = ReignBaselineEncoder(
    checkpoint_path=checkpoint_path,
    gn_model="thenlper/gte-small",
    chunk_size=512,
    stride=384,
)
docs = [open("doc_a.txt").read(), open("doc_b.txt").read()]
emb = encoder.encode(docs, batch_size=8)   # (2, hidden_size), L2-normalised
print(float(np.dot(emb[0], emb[1])))       # cosine similarity

ReignBaselineEncoder returns L2-normalised vectors, so the cosine is a dot product. chunk_size is the guidance network's sliding-window size — 512 for every released checkpoint, matching its context window — and stride controls the overlap, with stride == chunk_size giving non-overlapping chunking. The evaluation-time stride is a runtime argument, and the paper's headline tables report the best-performing stride per guidance network.

For the lower-level surface, ReignModel (a PreTrainedModel consuming inputs_embeds) and ReignFeatureExtractor (the guidance-network wrapper, with the on-disk embedding cache) are importable from reign and reign.feature_extractor.

Operating regime

REIGN targets multi-chunk inputs and primarily document-to-document retrieval. Inputs shorter than the chunk size collapse to a single chunk embedding, leaving the cross-chunk encoder nothing to aggregate — that regime is served by the guidance network alone, and this checkpoint should not be used for it.

Training recipe

The released checkpoints use a three-way cosine embedding loss over document pairs carrying graded targets s ∈ {1, 0, −1} — positive, partial, negative — with partial weight λ = 0.5.

SettingValue
Objectivethree-way cosine embedding loss, λ = 0.5
Batch construction18 anchors × (1 positive + 2 partials + 17 in-batch negatives) = 360 pairs / step
OptimiserAdamW, lr 1e-5, weight decay 1e-4, cosine annealing
Epochs50, validating every 4
Selectionbest validation nDCG@10
Precision16-mixed
Seed42
Guidance-network embeddingsprecomputed and cached
Hardwaresingle 24 GB consumer GPU

A second, separate protocol (InfoNCE at τ = 0.07, batch 48, 20 epochs) is used only for the paper's positional-encoding and training-objective ablations. Those arms sit below this released operating point by construction and are not comparable to it. See docs/TRAINING.md in the code repository.

Because 16-mixed training is not bit-reproducible even at a fixed seed, a retrained checkpoint will not match these weights bit-for-bit; compare metrics, not weights.

Files

  • config.json — ReignModel configuration
  • model.safetensors — encoder weights (float32)

Links

Citation

@inproceedings{cavusoglu2026reign,
  title     = {{REIGN}: Refurbished Embeddings with Integrated Guidance Networks for Efficient Context-Length Scaling},
  author    = {{\c{C}}avu{\c{s}}o{\u{g}}lu, Devrim and Akba{\c{s}}, Emre},
  booktitle = {Findings of the Association for Computational Linguistics: {EMNLP} 2026},
  year      = {2026},
  publisher = {Association for Computational Linguistics},
  note      = {To appear}
}

License

Apache License 2.0. The devrim/goodwiki_long_synthetic_ir dataset is released under CC BY-SA 4.0, preserving the share-alike licensing and attribution of GoodWiki and the underlying Wikipedia text.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
ReignModel
Ревизия весов
5ea7a05

0 моделей