/ Модель

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

Контекст
8 192 токена
Параметры
315 млн
Лицензия
MIT
Архитектура
modernbert · dense
Базовая модель
modernbert-ja-310m
Библиотека
sentence-transformers
Опубликована
3 ноя 2026

sae-splade-ja-310m

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

Японская модель разреженных эмбеддингов для поиска и ранжирования документов по запросу.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

sae-splade-ja-310m — японская модель разреженного поиска mahiyama на базе sbintuitions/modernbert-ja-310m. Она кодирует запросы и документы в разреженные векторы размерности 65 536, где признаки получены с помощью sparse autoencoder (SAE), а релевантность оценивается скалярным произведением векторов. Модель содержит около 314,6 млн параметров по метаданным; README указывает около 365 млн с учётом SAE-энкодера. Используется архитектура ModernBERT с Top-K SAE-кодированием и max pooling; контекст — до 8 192 токенов для документов.

Модель предназначена для поиска документов по японским запросам, включая поиск по вопросам и ответам, веб-страницам и длинным документам. Обучение включало контрастивное обучение и дистилляцию на японских поисковых наборах; веса SAE при обучении оставались замороженными. Рекомендуемое кодирование оставляет до 40 ненулевых признаков для запроса и до 400 для документа, чтобы снизить стоимость поиска. Лицензия MIT.

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

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

Ограничения

Модель ориентирована на японский поиск; её эффективность для других языков не заявлена. Для документов рекомендуется ограничивать число ненулевых признаков, что немного снижает качество по сравнению с кодированием без такого ограничения.

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

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

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

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

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

Открыть на Hugging Face

sae-splade-ja-310m

English | 日本語

A Japanese learned sparse retrieval model built on sbintuitions/modernbert-ja-310m. Like SPLADE, it encodes text into a sparse vector with only a few non-zero dimensions and ranks documents by the dot product of the query and document vectors.

In standard SPLADE, each output dimension corresponds to a token in the vocabulary. In this model, each dimension instead corresponds to one of 65,536 features learned by a sparse autoencoder (SAE). As in SAE-SPLADE (Zong et al., 2026), the SAE encoder replaces the MLM head as the output layer, and as in SPLARE (Formal et al., 2026), the SAE weights are kept frozen while the model is trained for retrieval.

Model Overview

PropertyValue
Base modelsbintuitions/modernbert-ja-310m
ArchitectureTransformer + SAETopKPooling (Top-K SAE encoding and max pooling)
ParametersAbout 365M (base model about 315M, SAE encoder about 50M)
Output dimensions65,536 (the number of SAE features)
Maximum input length8,192 tokens (trained with queries of up to 256 tokens and documents of up to 1,024 tokens)
SimilarityDot product
FrameworkSparseEncoder in sentence-transformers (tested with 6.2.0)

An SAE decomposes the hidden states of a model into a large number of features, only a few of which are active at a time. This model uses, as its output layer, a Top-K SAE pre-trained on the final-layer hidden states of the base model. For each token, only the 16 features with the largest values are kept, and the output sparse vector takes the maximum of each feature over the whole text.

Usage

The recommended setting keeps only the top 40 dimensions (by value) of a query and the top 400 dimensions of a document as non-zero. Calling encode_query for queries and encode_document for documents applies this automatically.

from sentence_transformers import SparseEncoder

model = SparseEncoder("mahiyama/sae-splade-ja-310m", trust_remote_code=True)

# Queries: "What is the capital of Japan?", "What is machine learning?"
queries = [
    "日本の首都はどこですか",
    "機械学習とは何ですか",
]
# Documents: on Tokyo (the capital of Japan), Kyoto (an ancient capital), and machine learning
documents = [
    "東京は日本の首都であり、政治と経済の中心地である。",
    "京都は古都として知られ、神社仏閣が多くある。",
    "機械学習は人工知能の一分野で、データからパターンを学習する手法である。",
]

# Encode into 65,536-dimensional sparse tensors
q_emb = model.encode_query(queries)
d_emb = model.encode_document(documents)

# Compute similarity scores by dot product
scores = model.similarity(q_emb, d_emb)
print(scores)

Unlike in SPLADE, the dimensions do not correspond to tokens, so the output vector cannot be read as a list of words. Each dimension (SAE feature) responds to a particular kind of content that tokens express in context, such as specific words or topics (e.g., military and national defense), expressions (e.g., requests for information), or sentence forms (e.g., sentence-final periods and question marks). interpretability.md (in Japanese) analyzes what each dimension responds to (feature labels assigned by a language model, and how well they fit) and which kinds of features support the retrieval rankings.

Inference Settings

As loaded, the model keeps only the top 40 dimensions of a query and the top 400 dimensions of a document, setting the rest to 0, to reduce the cost of retrieval. The output still has 65,536 dimensions. This top-k limit is applied by encode_query and encode_document, but not by encode. The table below compares it with no limit.

SettingnDCG@10FLOPsAvg. non-zero dimensions (query / document)
Top-k limit (query 40, document 400)75.3512.140.0 / 301.1
No limit75.9645.192.4 / 395.5

nDCG@10 is the average over the 11 retrieval tasks of JMTEB v2 lite described below. FLOPs is the expected number of dimensions that are non-zero in both the query and the document, an estimate of the computational cost of retrieval with an inverted index. Lower values mean faster retrieval.

The limit can be removed after loading by changing attributes of the output layer.

pooling = model[-1]  # Output layer (SAETopKPooling)

# 0 removes the limit
pooling.query_top_k = 0
pooling.document_top_k = 0

Evaluation

nDCG@10 was measured on the 11 retrieval tasks of JMTEB v2 lite (named JMTEB-lite(v1) in MTEB).

Documents were encoded with up to 8,192 tokens, and queries were not truncated. The top 1,000 results for each query were scored in the same way as in MTEB. MultiLongDocRetrieval uses the dev split, and all other tasks use the test split.

TaskTop-k limit (query 40, document 400)No limit
JaqketRetrievalLite79.7281.63
MrTyDiJaRetrievalLite55.6657.17
JaGovFaqsRetrieval76.4976.39
NLPJournalTitleAbsRetrieval.V297.5897.67
NLPJournalTitleIntroRetrieval.V297.4897.69
NLPJournalAbsIntroRetrieval.V299.2599.29
NLPJournalAbsArticleRetrieval.V299.6699.59
JaCWIRRetrievalLite82.3981.10
MIRACLJaRetrievalLite68.9970.74
MintakaRetrieval22.7023.09
MultiLongDocRetrieval48.9551.21
Average75.3575.96
Avg. non-zero dimensions (query / document)40.0 / 301.192.4 / 395.5

Comparison with Published Results

The table below compares this model with published results on the average nDCG@10 over the 7 tasks shared by JMTEB v2 lite and JMTEB v2 (JaGovFaqs, the four NLP Journal tasks, Mintaka, and MultiLongDocRetrieval). Only models with 1B parameters or fewer are shown. The published results were measured under each model's own settings (input prefixes, maximum input length, and so on), which differ from the settings used for this model.

ModelType7-task averageSource
sionic-ai/comsat-embed-ja-0.3b-previewDense79.68Link
cl-nagoya/ruri-v3-130mDense78.40Link
cl-nagoya/ruri-v3-310mDense78.29Link
mahiyama/sae-splade-ja-310mSparse77.44
codefuse-ai/F2LLM-v2-0.6BDense76.86Link
mahiyama/splade-ja-310m-v2Sparse76.53Link
BAAI/bge-m3Dense74.50Link
microsoft/harrier-oss-v1-270mDense72.48Link

Training

After the SAE was pre-trained, the retrieval model was trained in two stages: contrastive learning (stage 1) and distillation (stage 2). In both stages, the SAE weights were frozen and only the weights of the base model were updated. All training was done on a single NVIDIA RTX PRO 6000 Blackwell Server Edition GPU (Google Colab).

Training Data

DatasetConfigDomainStage 1Stage 2
mahiyama/auto-wiki-qapairsWikipedia QA662,50571,748
mahiyama/quiz-no-moripairsWikipedia QA17,2191,577
mahiyama/quiz-workspairsWikipedia QA14,7441,363
mahiyama/miracl-retrievalpairsWikipedia QA3,036245
mahiyama/mrtydipairsWikipedia QA2,496199
mahiyama/mqa-japairsGeneral web450,00031,242
mahiyama/mmarco-japairsGeneral web250,00028,140
sbintuitions/JMTEBjaqket-query train (positive: article body)Knowledge QA29,4271,656
sbintuitions/JMTEBjaqket-query train (positive: article title)Knowledge QA11,1101,831
AmazonScience/mintakaja train (positive: answer entity name)Knowledge QA6,5481,046
mahiyama/anlp-meeting-retrievalabs-intro_pairsAcademic8,460122
mahiyama/anlp-meeting-retrievaltitle-intro_pairsAcademic8,052708
mahiyama/anlp-meeting-retrievaltitle-abs_pairsAcademic6,117711
mahiyama/amagasaki-qnapairsPublic sector16,93811,674
mahiyama/kosodate-faq-pairs-jadefaultPublic sector203106
Non-public government FAQ data-Public sector99,48947,928
Total1,586,344200,296

In stage 1, to include more pairs with long documents, the JAQKET article-body pairs were used 3 times, the abs-intro and title-intro pairs of anlp-meeting-retrieval 4 times, and the title-abs pairs 3 times. The counts in the table include these repetitions.

SAE Pre-training

A Top-K SAE (Gao et al., 2024) was trained on the final-layer hidden states (768 dimensions) of the base model, with 65,536 features and 16 active features per token. Training covered 1 billion tokens (about 4.9 hours). The corpus has 846 million tokens: the documents and queries of the datasets in the table above, plus Japanese Wikipedia articles (20231101.ja of wikimedia/wikipedia).

The trained SAE is released as mahiyama/modernbert-ja-310m-sae, and this model uses its encoder as-is as the output layer. See that model card for the training settings, the breakdown of the corpus, and the reconstruction performance.

Stage 1: Contrastive Learning

The model was trained with contrastive learning on (query, positive) pairs, using the positives of the other queries in the same batch as negatives. To make the output sparse, FLOPS regularization (Paria et al., 2020), which reduces FLOPs, was applied to both queries and documents.

SettingValue
Learning rate2e-5 (linear decay, warmup over the first 5%)
OptimizerAdamW (weight decay 0.01)
Batch size256 (computed 32 at a time with gradient caching)
Max sequence length256 tokens for queries, 1,024 tokens for documents
FLOPS regularization weight3.33e-5 for both queries and documents (increased quadratically from 0 over the first 30% of steps)
Epochs1 (6,197 steps)
Training timeAbout 3.8 hours

Stage 2: Distillation

Queries were selected per domain from the same datasets as in stage 1, and tuples of (query, positive, 5 negatives) with teacher scores were built as follows.

  1. Collecting negative candidates: The stage-1 model searched the positives of the training data in the same domain (up to 600,000 for the Wikipedia QA and general web domains), and the top 30 results for each query became candidates. When the n-tuples subset of a dataset provides negatives (mined with cl-nagoya/ruri-v3-310m), those were added to the candidates as well.
  2. Removing false negatives: Candidates were scored with cl-nagoya/ruri-v3-reranker-310m, and those scoring at least as high as the positive, or 0.5 or higher after a sigmoid, were removed. For the general web, public sector, and knowledge QA domains, candidates were also scored with Cloudflare/clef-flash, and those scoring at least as high as the positive, or with a relevance probability of 0.3 or higher, were removed.
  3. Selecting negatives and teacher scores: Five negatives were selected from the remaining candidates (2 from the n-tuples negatives and 3 mined with the stage-1 model), and queries with fewer than five were dropped. Teacher scores came from ruri-v3-reranker-310m for the Wikipedia QA and academic domains, and mainly from clef-flash for the general web, public sector, and knowledge QA domains (over 90% of the tuples; clef-flash probabilities were converted to logits).

The loss is the sum of a contrastive loss and a distillation loss. The contrastive loss uses all documents in the batch (the positives and negatives of every query). The distillation loss is the KL divergence that brings the distribution of scores over the positive and the five negatives closer to the distribution of the teacher scores. FLOPS regularization was also applied with the same weights as in stage 1.

SettingValue
Learning rate1e-5 (linear decay, warmup over the first 5%)
OptimizerAdamW (weight decay 0.01)
Batch size32 queries (1 positive and 5 negatives per query)
Max sequence length256 tokens for queries, 1,024 tokens for documents
Loss weightsContrastive 1.0, distillation 1.0
Distillation temperature1.5 for this model (student), 2.0 for ruri-v3-reranker-310m, 1.25 for clef-flash
FLOPS regularization weight3.33e-5 for both queries and documents
Epochs1 (6,259 steps)
Training timeAbout 2.3 hours

Decontamination

The queries and relevant documents used in the JMTEB v2 lite evaluation were removed from the training data, the negative candidates, and the SAE corpus. For the evaluation corpora with few documents (JaGovFaqs, NLP Journal, and MultiLongDocRetrieval), all documents were removed, whether relevant or not. Matches were detected by exact match of normalized strings and by approximate match based on character 8-gram overlap.

License

The model weights are released under the MIT License. The base model, sbintuitions/modernbert-ja-310m, is also released under the MIT License.

However, the training data includes the following data that require attention:

  • Data released for non-commercial use: mmarco-ja (a Japanese translation of MS MARCO), quiz-no-mori, and JAQKET
  • Non-public government FAQ data: the author's non-public data based on FAQs from national government agencies and local governments

If you use this model, especially for commercial purposes, please take these points into account and make your own judgment at your own responsibility.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей