README: OpenEmbed and Nemotron colour families, heatmap outliers, ranked legal finding, Matryoshka explanation, throughput split into Figures 9-10, reranker candidates
Browse filesFiles changed (11)
41 unmodified lines42434441 unmodified linesassets/speed.png filter=lfs diff=lfs merge=lfs -textassets/nvfp4_vs_bf16.png filter=lfs diff=lfs merge=lfs -textassets/peak_memory.png filter=lfs diff=lfs merge=lfs -text41 unmodified lines424344454641 unmodified linesassets/speed.png filter=lfs diff=lfs merge=lfs -textassets/nvfp4_vs_bf16.png filter=lfs diff=lfs merge=lfs -textassets/peak_memory.png filter=lfs diff=lfs merge=lfs -textassets/speed_docs.png filter=lfs diff=lfs merge=lfs -textassets/speed_queries.png filter=lfs diff=lfs merge=lfs -text
26 unmodified lines27282930313233343536373839404165 unmodified lines1071081091101111121131147 unmodified lines1221231241251261271281291301311321331345 unmodified lines14014114214314414514614714878 unmodified lines2272282292302312322331 unmodified line23523623723823924026 unmodified lines- **Best overall:** nemotron35-8b (76.9 native-4 nDCG@10). Best API model: gemini-embedding-2 (75.9, #4).- **Best small models:** bge-m3-all is the best open model under 5 GiB peak memory (72.5, 2.1 GiB); aiteamvn-vn-v2 is the best under 2 GiB (70.9, 1.4 GiB).- **NVFP4 on native FP4 hardware** (memory measured on an NVIDIA GB10): nemotron35-8b-nvfp4 scores 76.8 at 5.7 GiB peak, within 0.15 of its bf16 version at 34% of the memory; every open model that scores higher needs at least 16.8 GiB. nemotron35-1b-nvfp4 fits under 2 GiB (67.9, 1.4 GiB) but scores below aiteamvn-vn-v2 (70.9).- **Legal text:** aiteamvn-vn-v2 has the top Zalo Legal score of all 57 models (84.8), but scores only 39.9 on the translated sets.- **Qwen3-Embedding-4B** ranks #32 (68.3): #7 of 57 on Zalo Legal (76.5) but weak on ViQuAD (16.5), which pulls its average down.- **Ties:** models marked † carry about ±0.5 nDCG@10 ranking noise, so smaller gaps are ties.## Scores per dataset*Figure 2. nDCG@10 per model and dataset.*## Accuracy vs model size65 unmodified lines- **Native-4** = mean over **Zalo Legal, TVPL, Table-Markdown, WebFAQ** (the four large human-written sets). **Translated-4** = VN-MTEB SciFact / NFCorpus / ArguAna / FiQA. Metrics ×100.- **Peak memory** = PyTorch's peak allocation while encoding 2,048 Zalo Legal documents, batch 32, 512-token window (weights + activations).- **Precision** = number format of weights and activations while encoding: `bf16` for almost all models, `fp16` for BGE-M3, `NVFP4 W4A4` for the NVFP4 checkpoints.- **‡ NVFP4 memory** was measured with native FP4 kernels on an NVIDIA GB10 (vLLM, 8,192 tokens per step), not on the machine used for the other models. Their scores come from an exact software emulation (see More findings).- **†** Native-4 includes bf16-ranked scores, which carry about ±0.5 nDCG@10 tie noise: treat smaller gaps involving these models as ties. Unmarked models are ranked by exact fp32 search. See [docs/methodology.md](docs/methodology.md#ranking-precision).- **Raw data:** [results/speed/peak_memory.csv](results/speed/peak_memory.csv).7 unmodified lines*Figure 5. Matryoshka truncation.**Figure 6. BGE-M3: dense vs hybrid retrieval.*- **Nemotron-3.5 = Nemotron-3 plus a vision tower.** The 8B text weights are bit-identical to Nemotron-3-Embed-8B (all 308 text tensors); the 1B differs only in its token-embedding table (at most one bf16 step). Native-4: 76.9 vs 76.9 (8B), 68.1 vs 68.1 (1B). For Vietnamese text, upgrade only if you need image inputs.- **NVFP4 costs little accuracy.** NVFP4 minus BF16: native-4 -0.15 (8B), -0.15 (1B); all 13 sets -0.24 / -0.41. The largest drop is on the small PublicHealthQA set (77 queries).- **How NVFP4 accuracy was measured:** a faithful emulation with the `compressed-tensors` reference code. Weights and each layer's inputs are quantised to FP4 exactly as the checkpoint specifies; the matrix multiply runs in bf16, so only the final accumulation order can differ from FP4 hardware.5 unmodified lines*Figure 8. Peak memory per model.**Figure 9. Throughput and peak memory.*| Model | Native-4 nDCG@10 | Docs/s | Doc tokens/s | Queries/s | Peak memory (GiB) | Weights (GiB) | Precision ||---|---:|---:|---:|---:|---:|---:|---|78 unmodified lines- **Exact fp32 re-ranking:** 39 models (marked †) are ranked in bf16, so gaps under about 0.5 nDCG@10 between them are ties until they are re-scored with fp32 search.- **NVFP4 throughput:** the NVFP4 checkpoints have memory figures (native FP4, measured on a separate machine) but no throughput in the speed table.- **Hybrid / sparse retrieval:** only BGE-M3 has sparse and multi-vector modes measured; its hybrid scores on the translated sets are carried over and not yet re-run with the current harness.- **Rerankers:** no reranker stage has been benchmarked; every score is first-stage retrieval.## Documentation1 unmodified line- [docs/datasets.md](docs/datasets.md): every dataset, its source, size, domain and license- [docs/models.md](docs/models.md): every model, its size, input format and licence- [docs/results.md](docs/results.md): raw-data formats- [docs/openembed-kernels.md](docs/openembed-kernels.md): OpenEmbed's fast linear-attention kernels: what was slow, the `fla-core` gotcha, speed before/after, embedding check- `results/`: **raw data for analysis**, one schema. `scores.csv` (every model × dataset × configuration), `per_query/` (per-query metrics), `top10/` (ranked document ids per query), `speed/`- `code/`: the harness26 unmodified lines27282930313233343536373839404142434445464748495065 unmodified lines1161171181191201211227 unmodified lines1301311321331341351361371381391401411421431441455 unmodified lines15115215315415515615715815916016116216378 unmodified lines2422432442452462472482492502512522532542552562572582592602612621 unmodified line26426526626726826927026 unmodified lines- **Best overall:** nemotron35-8b (76.9 native-4 nDCG@10). Best API model: gemini-embedding-2 (75.9, #4).- **Best small models:** bge-m3-all is the best open model under 5 GiB peak memory (72.5, 2.1 GiB); aiteamvn-vn-v2 is the best under 2 GiB (70.9, 1.4 GiB).- **NVFP4 on native FP4 hardware** (memory measured on an NVIDIA GB10): nemotron35-8b-nvfp4 scores 76.8 at 5.7 GiB peak, within 0.15 of its bf16 version at 34% of the memory; every open model that scores higher needs at least 16.8 GiB. nemotron35-1b-nvfp4 fits under 2 GiB (67.9, 1.4 GiB) but scores below aiteamvn-vn-v2 (70.9).- **aiteamvn-vn-v2** (#18 of 57 overall) is #1 of 57 on Zalo Legal (84.8) but #48 of 57 on the translated sets (39.9): a legal-text specialist.- **Qwen3-Embedding-4B** ranks #32 (68.3): #7 of 57 on Zalo Legal (76.5) but weak on ViQuAD (16.5), which pulls its average down.- **Ties:** models marked † carry about ±0.5 nDCG@10 ranking noise, so smaller gaps are ties.## Scores per dataset*Figure 2. nDCG@10 per model and dataset, outliers outlined.*Outliers (◆) are cells at least 12 nDCG@10 points away from what the model's and the dataset's averages predict:- **qwen3-8b, qwen3-0.6b, qwen3-4b, octen-0.6b** ▼ low on ViQuAD (11.9, 11.5, 16.5, 38.3)- **dvt-vn-emb, aiteamvn-vn-v2** ▼ low on SciFact-VN (30.3, 50.6)- **embeddinggemma-2** ▼ low on PubHealth (66.4)- **jina-v3** ▼ low on ArguAna-VN (37.9)- **vintern-emb-1b** ▲ high on Tables (57.9)- **aiteamvn-vn, aiteamvn-vn-v2** ▲ high on Zalo Legal (84.3, 84.8)## Accuracy vs model size65 unmodified lines- **Native-4** = mean over **Zalo Legal, TVPL, Table-Markdown, WebFAQ** (the four large human-written sets). **Translated-4** = VN-MTEB SciFact / NFCorpus / ArguAna / FiQA. Metrics ×100.- **Peak memory** = PyTorch's peak allocation while encoding 2,048 Zalo Legal documents, batch 32, 512-token window (weights + activations).- **‡ NVFP4 memory** was measured with native FP4 kernels on an NVIDIA GB10 (vLLM, 8,192 tokens per step), not on the machine used for the other models.- **†** Native-4 includes bf16-ranked scores, which carry about ±0.5 nDCG@10 tie noise: treat smaller gaps involving these models as ties. Unmarked models are ranked by exact fp32 search. See [docs/methodology.md](docs/methodology.md#ranking-precision).- **Raw data:** [results/speed/peak_memory.csv](results/speed/peak_memory.csv).7 unmodified lines*Figure 5. Matryoshka truncation.*- **What Matryoshka truncation is:** some models are trained (Matryoshka Representation Learning) so that the first *d* numbers of an embedding already work as a smaller embedding. You keep only those *d* dimensions and re-normalise; nothing is re-computed.- **Why it matters:** the vector index and search cost shrink in proportion, e.g. 4,096 → 1,024 dimensions is 4× less storage.- **What the figure shows:** native-4 nDCG@10 at each kept size *d* for the models that support it, and every model at its full size; a flat curve means truncation costs little accuracy.*Figure 6. BGE-M3: dense vs hybrid retrieval.*- **NVFP4 costs little accuracy.** NVFP4 minus BF16: native-4 -0.15 (8B), -0.15 (1B); all 13 sets -0.24 / -0.41. The largest drop is on the small PublicHealthQA set (77 queries).- **How the NVFP4 scores were computed:** weights and each layer's inputs are quantised to FP4 exactly as the checkpoint specifies (`compressed-tensors` reference code) and multiplied in bf16; only the final accumulation order can differ from FP4 hardware. NVFP4 memory comes from native FP4 kernels (see Speed and memory).5 unmodified lines*Figure 8. Peak memory per model.**Figure 9. Throughput: documents per second.**Figure 10. Throughput: queries per second.*| Model | Native-4 nDCG@10 | Docs/s | Doc tokens/s | Queries/s | Peak memory (GiB) | Weights (GiB) | Precision ||---|---:|---:|---:|---:|---:|---:|---|78 unmodified lines- **Exact fp32 re-ranking:** 39 models (marked †) are ranked in bf16, so gaps under about 0.5 nDCG@10 between them are ties until they are re-scored with fp32 search.- **NVFP4 throughput:** the NVFP4 checkpoints have memory figures (native FP4, measured on a separate machine) but no throughput in the speed table.- **Hybrid / sparse retrieval:** only BGE-M3 has sparse and multi-vector modes measured; its hybrid scores on the translated sets are carried over and not yet re-run with the current harness.- **Rerankers:** every score is first-stage retrieval; no reranker has been benchmarked. 35 rerankers from the families of the benchmarked embedding models are candidates:- **Nemotron:** Nemotron-3.5-Rerank-8B (BF16, NVFP4) 8.38B, Nemotron-3.5-Rerank-1B (BF16, NVFP4) 1.55B, llama-nemotron-rerank-1b-v2 1.24B- **Qwen3 Embedding:** Qwen3-Reranker-8B 8.19B, Qwen3-Reranker-4B 4.02B, Qwen3-Reranker-0.6B 0.6B, Qwen3-VL-Reranker-8B 8.77B, Qwen3-VL-Reranker-2B 2.13B- **BAAI BGE:** bge-reranker-v2-m3 0.57B, bge-reranker-v2-gemma 2.51B, bge-reranker-v2-minicpm-layerwise 2.72B, bge-reranker-v2.5-gemma2-lightweight 9.24B- **Jina AI:** jina-reranker-v3.5 0.6B, jina-reranker-v3 0.6B, jina-reranker-m0 2.44B, jina-reranker-v2-base-multilingual 0.28B- **IBM Granite:** granite-embedding-reranker-english-r2 0.15B- **AITeamVN:** Vietnamese_Reranker 0.57B- **intfloat E5:** simlm-msmarco-reranker- **sentence-transformers / cross-encoder:** mmarco-mMiniLMv2-L12-H384-v1 0.12B- **Cohere:** Rerank 5.0 Pro, Rerank 5.0 Fast, Rerank 4.0 Pro, Rerank 4.0 Fast, Rerank 3.5, Rerank Multilingual 3.0- **Voyage AI:** Voyage rerank-3, Voyage rerank-3-lite, Voyage rerank-2.5, Voyage rerank-2.5-lite- **Google:** semantic-ranker-default-005, semantic-ranker-fast-005- **Amazon Bedrock:** Amazon Rerank 1.0- **No reranker released:** harrier, F2LLM, OpenEmbed, Octen, Skill-Venus, Vintern, dvt, Mistral, OpenAI, Perplexity.- Full list with licences, languages and links: [docs/rerankers.md](docs/rerankers.md)## Documentation1 unmodified line- [docs/datasets.md](docs/datasets.md): every dataset, its source, size, domain and license- [docs/models.md](docs/models.md): every model, its size, input format and licence- [docs/results.md](docs/results.md): raw-data formats- [docs/rerankers.md](docs/rerankers.md): reranker candidates from the same model families (not yet benchmarked)- [docs/openembed-kernels.md](docs/openembed-kernels.md): OpenEmbed's fast linear-attention kernels: what was slow, the `fla-core` gotcha, speed before/after, embedding check- `results/`: **raw data for analysis**, one schema. `scores.csv` (every model × dataset × configuration), `per_query/` (per-query metrics), `top10/` (ranked document ids per query), `speed/`- `code/`: the harness
.gitattributes+2
README.md+40-10
assets/bge_m3_modes.png

Large File Pointer Details
- SHA256: a3a109a69ab89f87c5172072a9d300d49c637080bf4fcc517901bd3c55bccf0b
- Pointer size: 131 Bytes
- Size of remote file: 456 kB

Large File Pointer Details
- SHA256: fd25e3d2c038cc1e92b644aec5f4e38303984934c451ed3bffb48e15a07a3ad4
- Pointer size: 131 Bytes
- Size of remote file: 467 kB
assets/heatmap.png

Large File Pointer Details
- SHA256: 3905375bb334776c5e4bd84fac221ef9027dbe7532e7518a4ef457b4cab2a441
- Pointer size: 131 Bytes
- Size of remote file: 987 kB

Large File Pointer Details
- SHA256: e0daad8af15b583d2d8853866201c73ee54943b069dc15508778a109dc0be4c3
- Pointer size: 132 Bytes
- Size of remote file: 1.01 MB
assets/leaderboard.png

Large File Pointer Details
- SHA256: 4c7bfb7d1de3d9dc4388d3b2cd63452f5939fde907275b2d17d088f2c5dab02f
- Pointer size: 131 Bytes
- Size of remote file: 598 kB

Large File Pointer Details
- SHA256: 4e17a8afc147169e5aa7e828ee29995e214802fd36a65cc2fc1a6b1f4fef6b43
- Pointer size: 131 Bytes
- Size of remote file: 610 kB
assets/mrl.png

Large File Pointer Details
- SHA256: 70533fdc9ca4e271274ebdc46229e039700a2ac55265d9e492002bd6cff44537
- Pointer size: 131 Bytes
- Size of remote file: 770 kB

Large File Pointer Details
- SHA256: 1dbf38b1d802d113a17c39f36b7c67555a595406fb58e1427a27fb668339d925
- Pointer size: 131 Bytes
- Size of remote file: 769 kB
assets/nvfp4_vs_bf16.png

Large File Pointer Details
- SHA256: 23986f85aadb6b335bc427df2958717822740eeb1495751b91f996e5126ca57b
- Pointer size: 131 Bytes
- Size of remote file: 157 kB

Large File Pointer Details
- SHA256: 49ede2143c946546c560f63225125c1d396aaa76e0b770ba4182c288a340d02c
- Pointer size: 131 Bytes
- Size of remote file: 155 kB
assets/peak_memory.png

Large File Pointer Details
- SHA256: 165a90db7f2a8c6d23faa0d43504b9c68830428224eaa2e79fce7e87fbac69cf
- Pointer size: 131 Bytes
- Size of remote file: 454 kB

Large File Pointer Details
- SHA256: 366e1a46a9b25a0da4942f4f39648efd2e4bb16d77c9d5a39a0c54e0f1926600
- Pointer size: 131 Bytes
- Size of remote file: 466 kB
assets/size_vs_accuracy.png

Large File Pointer Details
- SHA256: 97f72e547973566e89ac6c04563810816acbcfa40728506bb0c3a790b877e6e0
- Pointer size: 131 Bytes
- Size of remote file: 265 kB

Large File Pointer Details
- SHA256: 1faaa447e7807cd71bff8e1f251d379695bc163d51ce53470a2ab83b0a043e2b
- Pointer size: 131 Bytes
- Size of remote file: 266 kB
assets/speed.png → assets/speed_docs.pngRenamed

Large File Pointer Details
- SHA256: 975e79c0ce530b8b32225a4fe3b4e8460e0cdbfafab31056d2685dbe6100aba6
- Pointer size: 131 Bytes
- Size of remote file: 391 kB

Large File Pointer Details
- SHA256: b7dc7ff809e3e0f8bfae89ca2580d10b4e66fdeeec5ad3617bdb410103f32952
- Pointer size: 131 Bytes
- Size of remote file: 320 kB
assets/speed_queries.pngAdded

Large File Pointer Details
- SHA256: e43f8580a339636adff41a16f336ebadaf87ce467fd0083d3e8cc91553883240
- Pointer size: 131 Bytes
- Size of remote file: 339 kB