/ Модель

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

Лицензия
MIT
Библиотека
sentence-transformers
Опубликована
14 сен 2026

bekko-static-embedding-v1

ЭмбеддингиТекст → embedding8 профессий
0скачиваний за 30 дней23лайкавеса обновлены21 окт 2026

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

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

Многоязычная статическая модель Yuichi Tateno для создания эмбеддингов предложений и поиска релевантных текстов на CPU.

bekko-static-embedding-v1 — многоязычная модель статических текстовых эмбеддингов, разработанная Yuichi Tateno (@hotchpotch). Она использует архитектуру StaticEmbedding без слоёв Transformer: каждому токену сопоставляется фиксированный вектор, а вектор предложения получается усреднением векторов токенов. Модель содержит 204,8 млн параметров и предназначена прежде всего для поиска и извлечения релевантных текстов; для запросов и документов используется одинаковое кодирование без специальных префиксов.

Базовая размерность эмбеддингов — 1024; благодаря обучению Matryoshka её можно сократить до 512, 256, 128, 64 или 32 измерений. Модель рассчитана на 40 языков, включая русский и английский, и может работать на CPU без GPU. В репозитории представлены файлы Safetensors, ONNX и OpenVINO; для части вариантов доступны FP16 и INT8. Лицензия — MIT.

В опубликованных сравнениях модель показывает высокое качество среди статических моделей на задачах поиска, но контекстные модели и BM25 превосходят её на многих бенчмарках. Она оптимизирована для retrieval: результаты на BitextMining и PairClassification могут уступать другим статическим эмбеддинг-моделям. Качество зависит от языка и предметной области; результаты сокращённых размерностей проверялись только для retrieval, а опубликованные результаты получены с одним seed.

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

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

Ограничения

Модель оптимизирована для retrieval и может уступать другим статическим моделям на BitextMining и PairClassification; контекстные модели и BM25 сильнее на многих бенчмарках. Качество зависит от языка и предметной области, а результаты для сокращённых размерностей оценивались только на retrieval.

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

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

AFQMC

0,1556

Один прогон

Направление метрики неизвестно, сравнение не строится

MTEB

AILACasedocs

0,2704

Один прогон

Направление метрики неизвестно, сравнение не строится

MTEB

AILAStatutes

0,2491

Один прогон

Направление метрики неизвестно, сравнение не строится

MTEB

ATEC

0,2684

Один прогон

Направление метрики неизвестно, сравнение не строится

MTEB

AfriSentiClassification

0,3414

12 результатов: 0,3401–0,5652

Направление метрики неизвестно, сравнение не строится

MTEB

AllegroReviews

0,3073

Один прогон

Направление метрики неизвестно, сравнение не строится

MTEB

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

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

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

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

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

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

Открыть на Hugging Face

bekko-static-embedding-v1

bekko-static-embedding-v1 is a multilingual static embedding model. It has no Transformer layers: each token maps to a fixed vector, and a sentence embedding is simply the mean of those vectors. That makes it cheap enough to run on any CPU, with no GPU required.

Among the public static embedding models we compared, it has the highest retrieval quality, in both multilingual and English retrieval.

For the full write-up, including comparisons, Matryoshka/INT8 trade-offs, and how the model was trained, see the blog post: bekko-static-embedding-v1: State-of-the-Art Retrieval for Multilingual Static Embeddings.

Highlights

  • Best retrieval among the public static models we compared: 43.76 on MNanoBEIR (14 languages), about 11 points above other multilingual static models
  • Also above English-only static models on English retrieval (NanoBEIR-en 53.71)
  • Within about 1 point of multilingual-e5-small on MMTEB Retrieval, with zero Transformer layers
  • Trained for 40 target languages with a custom 200k-token WordPiece tokenizer
  • 1024-dim embeddings that truncate to 512 / 256 / 128 / 64 / 32 (Matryoshka); 512 dims lose about 0.9 points of retrieval score
  • Per-dimension ONNX and OpenVINO files with FP16 or INT8 weights: the INT8 512-dim model is 103.2 MB
  • No prefixes or instructions needed
  • MIT license

How it compares

Against other static embedding models

Static modelLanguageDimsNanoBEIR-enMNanoBEIRMMTEB RetrievalMMTEB Mean
bekko-static-embedding-v1Multilingual102453.7143.7649.9650.18
static-similarity-mrl-multilingual-v1Multilingual102443.5132.2941.2147.24
potion-multilingual-128MMultilingual25637.0732.2337.8647.23
static-retrieval-mrl-en-v1English102450.35–––
stable-static-embedding-fast-retrieval-mrl-en-v2English51251.57–––

bekko-static-embedding-v1 leads every column. On multilingual retrieval (MNanoBEIR, 14 languages) it is about 11 points above the other multilingual static models, and on MMTEB Retrieval 8.75 and 12.10 points above. On English-only retrieval it also beats the two static models trained specifically for English, even when truncated to 512 dims (52.82).

Against contextual models

ModelTransformer layersActive paramsNanoBEIR-enMNanoBEIRMMTEB RetrievalMMTEB Mean
bekko-static-embedding-v10053.7143.7649.9650.18
multilingual-e5-small1221.6M58.3751.1750.956.4
bekko-embedding-v1-a8m47.7M60.3452.6556.256.7

With no Transformer layers at all, bekko-static-embedding-v1 comes within about 1 point of multilingual-e5-small on MMTEB Retrieval (49.96 vs 50.9). multilingual-e5-small is still ahead on the Nano retrieval sets and on the overall MMTEB mean, where most of its lead comes from BitextMining, Reranking and STS.

If you can run a small Transformer, bekko-embedding-v1-a8m scores above multilingual-e5-small on every column here with only 7.7M active parameters, and it runs well on CPU.

Static embedding models avoid attention entirely. The Sentence Transformers post Train 400x faster Static Embedding Models reports 100x to 400x faster CPU encoding than common embedding models such as multilingual-e5-small for its static models. We have not published our own throughput measurements for this model; measure on your workload.

Rule of thumb: pick bekko-static-embedding-v1 when encoding cost must be as low as possible, for example very large corpora on CPU or tight latency budgets. Pick bekko-embedding-v1-a8m when retrieval quality matters more and you can run a small Transformer.

NanoBEIR-en (13 English tasks) and MNanoBEIR (182 tasks in 14 languages) are nDCG@10 × 100 from HAKARI-Bench, averaged with equal weight per task. MMTEB is the 131-task MTEB(Multilingual, v2) suite, main score × 100 averaged over tasks; Retrieval is its 18-task category. bekko-static-embedding-v1 was evaluated locally. Static comparison models use published MMTEB results averaged over the same 131 tasks. MMTEB values for multilingual-e5-small and bekko-embedding-v1-a8m are taken from the bekko-embedding-v1-a8m model card, which uses the official 2026-06-28 MMTEB snapshot and the same task set and aggregation. Active parameters exclude the token embedding table; for a static model the table is the whole model (204.8M parameters).

Quickstart

pip install -U sentence-transformers

Queries and documents go through the same encode() call, with no prefixes. Pass normalize_embeddings=True when you search with cosine similarity or dot product.

from sentence_transformers import SentenceTransformer, util

model = SentenceTransformer("hotchpotch/bekko-static-embedding-v1", device="cpu")

query = "What are the characteristics of sushi?"
docs = [
    "A warm noodle soup served in broth with sliced toppings.",
    "天ぷらは魚や野菜に衣をつけて揚げた料理です。",  # "Tempura is battered, deep-fried fish and vegetables."
    "Une fine crepe garnie de sucre, de beurre ou de fruits.",
    "A Japanese dish made with vinegared rice, often shaped with seafood, vegetables, or egg.",
]

query_emb = model.encode(query, normalize_embeddings=True)
doc_emb = model.encode(docs, normalize_embeddings=True)
scores = util.cos_sim(query_emb, doc_emb)[0]

print(scores)
print("best doc:", docs[int(scores.argmax())])

Output:

tensor([0.0578, 0.0743, 0.0913, 0.1738])
best doc: A Japanese dish made with vinegared rice, often shaped with seafood, vegetables, or egg.

Static embeddings produce lower absolute cosine scores than contextual models such as bekko-embedding-v1-a8m. Use the ranking, and tune any score threshold on your own data.

Queries and documents don't need to share a language. Continuing with the same model:

corpus = [
    "Sushi is a Japanese dish of vinegared rice topped with seafood.",
    "The Eiffel Tower is a wrought-iron lattice tower in Paris, France.",
    "Mount Fuji is the highest mountain in Japan, at 3,776 meters.",
    "Python is a programming language known for its readability.",
    "La Sagrada Família es una basílica de Barcelona diseñada por Antoni Gaudí.",
]
corpus_emb = model.encode(corpus, normalize_embeddings=True)

for query in [
    "日本で一番高い山は?",  # "What is the highest mountain in Japan?"
    "Who designed the famous basilica in Barcelona?",
]:
    query_emb = model.encode(query, normalize_embeddings=True)
    hits = util.semantic_search(query_emb, corpus_emb, top_k=2)[0]
    print(query)
    for hit in hits:
        print(f"  {hit['score']:.3f}  {corpus[hit['corpus_id']]}")
日本で一番高い山は?
  0.364  Mount Fuji is the highest mountain in Japan, at 3,776 meters.
  0.137  Sushi is a Japanese dish of vinegared rice topped with seafood.
Who designed the famous basilica in Barcelona?
  0.547  La Sagrada Família es una basílica de Barcelona diseñada por Antoni Gaudí.
  0.125  The Eiffel Tower is a wrought-iron lattice tower in Paris, France.

Outputs above were produced on CPU with Sentence Transformers 6.1.0.

Benchmark details

Scores are main score × 100, averaged per category. Δ is bekko-static-embedding-v1 minus static-similarity-mrl-multilingual-v1.

CategoryTasksbekko-static-embedding-v1static-similarity-mrl-multilingual-v1potion-multilingual-128MΔ
All tasks13150.1847.2447.23+2.93
Classification4352.4048.6052.36+3.81
Clustering1640.0330.6737.63+9.36
MultilabelClassification514.9914.7415.95+0.25
Retrieval1849.9641.2137.86+8.75
Reranking651.5949.4547.39+2.14
STS1664.5064.0261.23+0.47
BitextMining1343.6850.6240.72-6.94
PairClassification1172.8174.3471.39-1.53
InstructionReranking3-1.65-1.24-2.08-0.41

HAKARI-Bench covers 37 benchmarks and 550 tasks. Ten are shown here; the full results are on the leaderboard.

BenchmarkTasksbekko-static 1024dbekko-static 512dstatic-similaritypotionmE5-smallbekko a8mBM25
MNanoBEIR18243.7642.8932.2932.2351.1752.6546.46
NanoMMTEB-v21843.3042.8736.0835.2244.5550.2545.50
NanoMIRACL1868.0367.6745.3747.7978.7175.5757.15
NanoRTEB1437.5036.5325.7325.5847.1154.9835.53
NanoCoIR1058.1957.5548.0145.3869.1574.6854.36
NanoBRIGHT2026.3826.3120.2719.6717.5831.4927.90
NanoMLDR1355.7254.5535.9634.8939.2054.4873.96
NanoLongEmbed661.9660.5848.9043.9050.1468.1982.17
NanoJMTEB-v21165.3664.4051.3751.6171.6575.9374.65
NanoIndicQA1135.3535.2334.9153.6970.0965.1256.53

Columns: bekko-static-embedding-v1 at 1024 and 512 dims, static-similarity-mrl-multilingual-v1 (1024d), potion-multilingual-128M (256d), multilingual-e5-small (384d), bekko-embedding-v1-a8m (384d), and BM25.

Against static-similarity-mrl-multilingual-v1, bekko-static-embedding-v1 is higher on all 37 benchmark averages and 523 of 550 tasks. Against potion-multilingual-128M it is higher on 36 of 37 benchmarks; NanoIndicQA is the exception. BM25 is higher on 21 of 37 benchmark averages, notably long-document retrieval, so test it as a baseline when retrieval is your only goal.

Optimized inference

Smaller embeddings with Matryoshka (truncate_dim)

The model was trained with Matryoshka representation learning at 1024, 512, 256, 128, 64 and 32 dimensions.

from sentence_transformers import SentenceTransformer

model = SentenceTransformer("hotchpotch/bekko-static-embedding-v1", device="cpu", truncate_dim=512)
emb = model.encode("What are the characteristics of sushi?", normalize_embeddings=True)
print(emb.shape)  # (512,)
DimsNanoBEIR-enMNanoBEIRHAKARI 550-task average
102453.7143.7645.88
51252.8242.8945.03
25650.8341.0443.29
12847.8338.0340.12
6443.9632.8734.82
3235.7424.9726.46

512 dims is a good default. Even at 128 dims, MNanoBEIR (38.03) stays above other multilingual static models at full size.

ONNX and OpenVINO files with only the weights you need

truncate_dim shortens the output, but the full 1024-dim table is still loaded. The onnx/ and openvino/ directories contain models that store only the weights for one dimension, in FP16 or INT8:

DimsFP16 weightsINT8 weights
1024409.6 MB205.6 MB
512204.8 MB103.2 MB
256102.4 MB52.0 MB
12851.2 MB26.4 MB
6425.6 MB13.6 MB
3212.8 MB7.2 MB

Sizes exclude the shared 5.1 MB tokenizer. INT8 here quantizes the stored weights only; pooling and output vectors stay FP32. On HAKARI-Bench, INT8 and FP16 weights differ by less than 0.15 points at every dimension.

The built-in StaticEmbedding module does not route backend= to these files, so use the bundled loader:

pip install -U sentence-transformers onnxruntime   # or: openvino
from transformers.dynamic_module_utils import get_class_from_dynamic_module


def get_model(backend="onnx", dim=512, precision="int8", revision="main"):
    repo = "hotchpotch/bekko-static-embedding-v1"
    ext = {"onnx": "onnx", "openvino": "xml"}[backend]
    return get_class_from_dynamic_module(
        "bekko_static_backend.BekkoStaticBackend", repo, revision=revision,
    ).load_sentence_transformer(
        repo, revision=revision, backend=backend,
        file_name=f"{backend}/model_{precision}_dim{dim}.{ext}",
    )


model = get_model(backend="onnx", dim=512, precision="int8")
vectors = model.encode(["日本語の検索文", "An English document"], normalize_embeddings=True)
print(vectors.shape)  # (2, 512)

# OpenVINO with FP16 weights:
model = get_model(backend="openvino", dim=256, precision="fp16")

backend accepts "onnx" or "openvino", precision accepts "int8" or "fp16", and dim accepts 1024, 512, 256, 128, 64 or 32. The helper loads Python code from this repository (bekko_static_backend.py) and downloads only the configuration, tokenizer and selected model file. Set revision to a commit SHA for reproducible deployments.

Languages

The training data and tokenizer target these 40 languages:

English (en), Arabic (ar), Bulgarian (bg), Bengali (bn), Catalan (ca), Czech (cs), Danish (da), German (de), Greek (el), Spanish (es), Estonian (et), Persian (fa), Finnish (fi), French (fr), Hebrew (he), Hindi (hi), Croatian (hr), Hungarian (hu), Indonesian (id), Italian (it), Japanese (ja), Korean (ko), Dutch (nl), Norwegian (no), Polish (pl), Portuguese (pt), Romanian (ro), Russian (ru), Slovak (sk), Slovenian (sl), Serbian (sr), Swedish (sv), Swahili (sw), Telugu (te), Thai (th), Turkish (tr), Ukrainian (uk), Vietnamese (vi), Yoruba (yo), Chinese (zh).

Text in other languages still gets an embedding, since the WordPiece tokenizer can split unseen words into subwords, but quality outside these languages has not been a training target. The list comes from the data-selection config in training_scripts/.

Model details

ItemValue
Model typeSentence Transformer static embedding model
ArchitectureStaticEmbedding (token lookup + mean pooling), no Transformer layers
Parameters204,800,000 (200,000 × 1,024 embedding table)
TokenizerCustom uncased WordPiece, 200,000 tokens with a 30,000-token English core
Embedding dimension1024
Supported truncate dimensions512, 256, 128, 64, 32
Max sequence lengthNo architectural limit; the tokenizer caps inputs at 32,768 tokens (trained on 512)
Weight storageFP16 (model.safetensors, 409.6 MB)
SimilarityCosine similarity

Training

The embedding table was initialized randomly and trained from scratch with Multiple Negatives Ranking Loss (MNRL), applied at every Matryoshka dimension. There is no distillation from a teacher model.

Training data comes from hotchpotch/bekko-embedding-v1-unsupervised: 265 data configurations covering 40 target languages, about 814 million text pairs (titles and bodies, questions and answers, generated queries, translation pairs). The selection includes data derived from the MIRACL train split and NLI.

SettingValue
LossMNRL, temperature 0.03 (scale = 1 / 0.03)
MRL dimensions32, 64, 128, 256, 512, 1,024
MRL weights0.025, 0.05, 0.1, 0.15, 0.3, 1.0 (same order)
Epochs, steps1, 49,727
Global batch size16,384
Learning rate0.25, 10% warmup, cosine decay
OptimizerAdamW, weight decay 0, β₂ = 0.999, ε = 1e−8
PrecisionBF16 mixed precision, FP32 master weights, FP16 release
Max input length in training512 tokens
Seed42

In a static model, the tokenizer's units are exactly the units whose vectors are averaged. We trained eight models on 10% of the data, one per tokenizer, and evaluated them on MNanoBEIR and NanoMIRACL (200 tasks, nDCG@10 × 100). This ablation used a different loss from the final model, so its scores are not comparable with the final results.

Tokenizer1024d512d
Multilingual BERT uncased37.8737.17
Multilingual BERT cased38.5138.01
Gemma 238.7338.08
Custom 100k, 24k English, uncased40.1939.29
Custom 100k, 30k English, uncased39.8639.21
Custom 200k, 30k English, cased41.6040.69
Custom 200k, 30k English, script-balanced41.2040.40
Custom 200k, 30k English, uncased (selected)41.8941.18

The custom vocabulary was trained with WordPiece: a 30k English core from equal parts Wikipedia and FineWeb, then vocabulary for 39 more languages added while keeping the English token IDs.

The tokenizer trainer, model trainer, FP16 export script and data-selection config are in training_scripts/.

FAQ

  • Do I need a prefix like query: or passage: ? No. Encode raw text for both queries and documents.
  • Why are the cosine scores so low? This static model gives lower absolute cosine scores than contextual models, as in the Quickstart output. Rankings are what matter; calibrate thresholds on your data.
  • Does word order matter? No. The embedding is the mean of token vectors, so sentences with the same tokens in a different order get the same embedding. Use a contextual model such as bekko-embedding-v1-a8m when order matters.
  • Which file should I load? PyTorch: the default model.safetensors. Memory-constrained CPU deployments: an INT8 file from onnx/ or openvino/ at the dimension you need.
  • Should I use this or BM25? For pure retrieval, test both. In our benchmarks BM25 is stronger on long-document retrieval; this model is stronger on natural-language questions (NanoMIRACL: 68.03 vs 57.15).

Limitations

  • The model is optimized for retrieval. On MMTEB, BitextMining and PairClassification are below static-similarity-mrl-multilingual-v1; evaluate it separately for those tasks.
  • MMTEB results were measured at 1024 dims. Truncated dimensions were evaluated on retrieval only.
  • Contextual models (multilingual-e5-small, bekko-embedding-v1-a8m) and BM25 remain stronger on many retrieval benchmarks.
  • MMTEB comparison values for other models come from published results, with different evaluation library and dataset versions.
  • HAKARI-Bench is maintained by the model author; read it alongside MMTEB.
  • Quality varies by language and domain. Evaluate on your target data before deployment.
  • Results come from a single training seed.

The name "bekko"

bekko (/ˈbek.koː/) is a coined name that joins two pieces of Japanese tradition:

  • akabeko (赤べこ): the red ox cherished in Japan for centuries as a guardian charm, believed to ward off illness and misfortune.
  • bekko-iro (鼈甲色): a traditional Japanese color, a warm, translucent, amber-like hue.

Related

Paper

For full technical details of the bekko project and its training data, see Bekko Embedding: Parameter-Efficient Multilingual Retrieval with Ultra-Compact Encoders.

Citation

If you use bekko-static-embedding-v1 in your work, please cite:

@misc{tateno2026bekkoembedding,
  title         = {Bekko Embedding: Parameter-Efficient Multilingual Retrieval with Ultra-Compact Encoders},
  author        = {Yuichi Tateno},
  year          = {2026},
  eprint        = {2607.25180},
  archivePrefix = {arXiv},
  primaryClass  = {cs.IR},
  url           = {https://arxiv.org/abs/2607.25180}
}

License

MIT License.

Author

Yuichi Tateno @hotchpotch

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

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

GPU в ailist

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

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

В репозитории нет config.json: не понять архитектуру модели.

Ревизия весов
c18167b

0 моделей