Bekko Embedding: Parameter-Efficient Multilingual Retrieval with Ultra-Compact Encoders (plus static embeddings and Model2Vec)
arXiv ↗PDF ↗Paper ↗Website ↗Code ↗Blog ↗
Read first: Nomic Embed: Training a Reproducible Long Context Text Embedder
TL;DR. This page covers the cheapest end of dense retrieval.
- Static embeddings drop the transformer: a text’s vector is a weighted mean of per-token vectors. Model2Vec distils those vectors from a sentence-transformer in seconds. The Sentence Transformers model
static-retrieval-mrl-en-v1trains them directly with a contrastive loss. - Bekko Embedding (Yuichi Tateno, Jul 2026) keeps a few transformer layers. It prunes mmBERT-small to 4 or 13 of 22 layers, so 7.67M or 24.9M active parameters do the compute, while a 98M-parameter vocabulary table stays as a free lookup.
Key idea
Section titled “Key idea”The useful accounting is Bekko’s active parameters (AP): the parameters every token passes through, which excludes the embedding table. A multilingual vocabulary is huge (256,000 rows) but a lookup costs almost nothing, so a model can be 106M parameters on disk and still be very cheap to run. Static models are the limit case with zero active layers, and the Bekko paper calls them “a different quality band” because nothing is contextualised.
Results (paper- and blog-reported). MMTEB Multilingual v2 (131 tasks), retrieval / mean over tasks:
| Model | Active params | Retrieval | Mean |
|---|---|---|---|
| Bekko a8m | 7.67M | 56.2 | 56.7 |
| Bekko a25m | 24.9M | 57.5 | 58.3 |
| multilingual-E5-small | 21.6M | 50.9 | 56.4 |
| granite-97m-r2 | 28.3M | 60.3 | 51.9 |
| bge-m3 | 311.8M | 54.6 | 59.6 |
| EmbeddingGemma-300m | — | 62.5 | 61.2 |
Bekko a8m runs at about 1.6× mE5-small’s speed on x86 CPU and 1.5× on GPU, and encodes 364 documents per second against 125 for granite-97m. On English NanoBEIR (nDCG@10), the static retrieval model scores 0.5032 against 0.5757 for all-mpnet-base-v2 and 0.4518 for BM25. On CPU it is about 400× faster than mpnet, and on GPU 24×.
Connections
Section titled “Connections”- Larger end: EmbeddingGemma 2 is the on-device multimodal option, and Nomic Embed v2 uses mixture-of-experts to keep active parameters low. That is the same accounting as Bekko’s, from the other direction.
- Sparse alternatives: SPLADE-v3 is the other cheap-at-query-time family. Static embeddings resemble a dense, learned bag of words.
- Evaluation: MTEB and MMTEB.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Derive / compute
Bekko is pruned from mmBERT-small: 140M parameters in total, a 256,000 × 384 vocabulary table, and 22 transformer layers. (a) Compute the table size and the remaining non-embedding ("active") parameters. (b) Estimate parameters per layer and check the reported active sizes of a8m (4 layers, 7.67M) and a25m (13 layers, 24.9M). (c) The paper stores the table as row-wise int8 plus one fp32 scale per row. Compute the table size in fp32 and in this format and check the reported 74.7% saving.
What a strong answer covers
- (a) 256,000 × 384 ≈ 98.3M parameters in the table, so about 140M − 98M ≈ 42M are in the transformer.
- (b) 42M / 22 ≈ 1.9M per layer: 4 × 1.9M ≈ 7.6M (reported 7.67M) and 13 × 1.9M ≈ 24.7M (reported 24.9M). The small remainder is non-layer parts such as norms and pooling.
- Total for a8m ≈ 98.3M + 7.7M ≈ 106M, matching the reported total. About 93% of the model is a lookup table that costs almost no compute.
- (c) fp32 table: 98.3M × 4 B ≈ 393 MB. int8 table: 98.3M × 1 B ≈ 98.3 MB, plus 256,000 × 4 B ≈ 1 MB of scales ≈ 99.3 MB. Saving 1 − 99.3/393 ≈ 74.7%.
- Each row scale is the largest absolute value in the row divided by 127. The paper reports an average quality change of about −0.0001, because rows are dequantised exactly once per token lookup.
- Mechanism
Model2Vec and the Sentence Transformers static model both embed a text as a (weighted) mean of per-token vectors, but get those vectors differently. Explain the two recipes, what SIF weighting and the PCA step do, and why a static model fails on negation, word order and long documents. Then explain why keeping just 4 contextual layers (Bekko) puts a model in what its author calls a different quality band.
What a strong answer covers
- Model2Vec: pass every vocabulary token through a sentence-transformer once, apply PCA, and weight each token by SIF, w = 1e-3 / (1e-3 + p) with p estimated from the token's Zipf rank. Optional Tokenlearn training then fits these vectors to the base model's outputs. Distillation takes about 30 seconds on CPU.
- SIF acts like IDF: frequent tokens get small weights so they do not dominate the mean. PCA re-centres and decorrelates the space and helps even when the dimension is not reduced.
- static-retrieval-mrl-en-v1 is an EmbeddingBag (lookup plus mean) of 1,024 dimensions, randomly initialised and trained directly with an in-batch contrastive loss (MNRL) wrapped in Matryoshka.
- No token sees any other token, so "not safe" and "safe" differ only by the vector for "not", and word order is invisible. Long documents average many tokens and drift toward a generic mean vector.
- Even 4 attention layers let each token's vector depend on its neighbours, which fixes the problems above. That is why Bekko a8m gets 56.2 on MMTEB retrieval while costing far more compute per token than a lookup.
- Design
You must embed 1B short multilingual passages on CPUs, and serve queries on the same CPUs. Your candidates are BM25, static-retrieval-mrl-en-v1, a Model2Vec model, Bekko a8m, multilingual-E5-small and EmbeddingGemma-300m. Use the reported numbers to build a shortlist, say what you would measure, and describe a cascade that uses more than one of them.
What a strong answer covers
- The static English model is the only static model above BM25 on NanoBEIR (0.5032 vs 0.4518), about 87% of all-mpnet-base-v2 (0.5757), and about 400× faster on CPU (107,419 vs 270 sentences per second). But it is English-only, so on multilingual data it is a fallback at best.
- Bekko a8m: 56.2 MMTEB retrieval vs 50.9 for mE5-small, at about 1.6× mE5-small's CPU speed. It dominates mE5-small on both axes.
- EmbeddingGemma-300m is better (62.5 retrieval) but has many more active layers; use it where quality matters more than throughput.
- Measure documents per second per core on your hardware, recall@100 on a sample of your queries with real relevance labels, and index size at reduced Matryoshka dimensions (Bekko supports 256, 128 and 64).
- Cascade: BM25 or a static model for cheap candidate generation, Bekko for first-stage dense retrieval or fusion, and a larger embedder or reranker only on the top candidates.