README: add Halong, law_search and GreenNode models and the BM25 baseline; mark training-data overlap
3178d4b verified |
Download README.md from quocbao747/embedding-model-benchmark: direct link, hf CLI and curl.
- Browser
- Download file 27.8 kB
-
https://huggingface.co/quocbao747/embedding-model-benchmark/resolve/main/README.md
- Command line
-
hf download hf://quocbao747/embedding-model-benchmark/README.md
-
curl -L -o README.md https://huggingface.co/quocbao747/embedding-model-benchmark/resolve/main/README.md
27.8 kB
| license: apache-2.0 | |
| language: | |
| - vi | |
| - en | |
| tags: | |
| - embeddings | |
| - benchmark | |
| - retrieval | |
| - vietnamese | |
| - mteb | |
| # Vietnamese embedding benchmark | |
| **64 embedding models** (52 open, 12 API) scored on **Vietnamese retrieval**: 9 human-written Vietnamese datasets plus 4 machine-translated ones (≈ 320k documents, 63k queries). Exact search, no reranker. | |
| **Interactive explorer:** [huggingface.co/spaces/quocbao747/embedding-model-benchmark](https://huggingface.co/spaces/quocbao747/embedding-model-benchmark): pick datasets and metric, filter by memory, compare models. | |
| Updated 2026-12-06 00:54 GMT+7 · run in progress | |
|  | |
| *Figure 1. Vietnamese retrieval leaderboard (native-4 nDCG@10).* | |
| ## Key findings | |
| - **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 64 overall) is #3 of 64 on Zalo Legal (84.8) but #51 of 64 on the translated sets (39.9): a legal-text specialist. | |
| - **Zalo Legal and training data (§):** dek21-hcmute 94.9 (#1 on Zalo Legal, #37 overall), bkai-vn-bi 85.1 (#2 on Zalo Legal, #51 overall), greennode-large-vn 70.3 (#34 on Zalo Legal, #28 overall). These models list or inherit Zalo legal training data; dek21-hcmute beats every other model on Zalo Legal yet ranks #37 overall, the pattern the [law_search report](#references) reads as leakage. | |
| - **Qwen3-Embedding on ViQuAD** (qwen3-0.6b 11.5, qwen3-4b 16.5, qwen3-8b 11.9): not a broken model. The task stores each answer span as a separate document, and Qwen3 with its query instruction ranks another question's snippet first for 91% of questions (qwen3-0.6b). On passages only it scores 72.6 / 73.8 (qwen3-0.6b, qwen3-4b); see Figure 2 notes. | |
| - **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 13 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) | |
| - **simcse-phobert, dvt-vn-emb, dek21-hcmute, aiteamvn-vn-v2** ▼ low on SciFact-VN (25.4, 30.3, 41.9, 50.6) | |
| - **simcse-phobert** ▼ low on WebFAQ (47.8) | |
| - **embeddinggemma-2** ▼ low on PubHealth (66.4) | |
| - **aiteamvn-vn, aiteamvn-vn-v2, bkai-vn-bi, dek21-hcmute** ▲ high on Zalo Legal (84.3, 84.8, 85.1, 94.9) | |
| - **vintern-emb-1b, bm25** ▲ high on Tables (57.9, 56.1) | |
| **Why Qwen3-Embedding fails on ViQuAD** (re-run on the same data, nDCG@10): | |
| - **The task design:** every question has two relevant documents, the passage and the answer span stored as a separate document (e.g. "tháng 12 năm 1939"). 1,936 of the 2,490 documents are such snippets (the other 554 are passages), and they are distractors for every other question. | |
| - **What Qwen3 does:** with its query instruction it ranks **another question's** snippet first for 91% (0.6B) and 85% (4B) of questions (harrier-0.6b: 13%), e.g. "1873" for a "when" question; only 16% (0.6B) and 8% (4B) of these wrong picks are a word taken straight from the question, such as "Stalin". | |
| - **Not a setup error:** the scores reproduce (11.5 and 16.5) with Qwen3's documented `Instruct: …\nQuery:` format on the official `mteb/VieQuADRetrieval` data. | |
| - **Not a general weakness:** on passages only (snippets removed) Qwen3 scores 72.6 (0.6B) and 73.8 (4B), 6–16 points below its 0.6B fine-tunes (octen-0.6b 78.9, f2llm-v2-0.6b 80.7, harrier-0.6b 88.3). | |
| - **The instruction is the trigger:** without it Qwen3 scores 48.6 (0.6B) and 60.4 (4B), while removing it lowers f2llm-v2-0.6b (55.2 → 43.1), harrier-0.6b (61.3 → 35.0). This matters mainly for corpora that mix short snippets with passages. | |
| ## Accuracy vs model size | |
|  | |
| *Figure 3. Model size vs native-4 accuracy.* | |
| ## Leaderboard table | |
| | # | Model | Native-4 nDCG@10 | P@1 | MRR@10 | Zalo Legal | Translated-4 | Peak memory (GiB) | Precision | | |
| |---:|---|---:|---:|---:|---:|---:|---:|---| | |
| | 1 | [nemotron35-8b](https://huggingface.co/nvidia/Nemotron-3.5-Embed-8B-BF16) | **76.9** | 66.6 | 73.8 | 80.2 | 55.8 | 16.8 | bf16 | | |
| | 2 | [nemotron3-8b](https://huggingface.co/nvidia/Nemotron-3-Embed-8B-BF16) † | **76.9** | 66.5 | 73.7 | 80.2 | 55.7 | 16.8 | bf16 | | |
| | 3 | [nemotron35-8b-nvfp4](https://huggingface.co/nvidia/Nemotron-3.5-Embed-8B-NVFP4) | **76.8** | 66.3 | 73.6 | 79.6 | 55.7 | 5.7 | NVFP4 W4A4 ‡ | | |
| | 4 | [gemini-embedding-2](https://openrouter.ai/google/gemini-embedding-2) | **75.9** | 66.0 | 72.9 | 80.2 | 59.2 | API | API | | |
| | 5 | [pplx-embed-v2-context-0.6b](https://openrouter.ai/perplexity/pplx-embed-v2-context-0.6b) | **74.0** | 63.4 | 70.8 | 74.7 | 50.2 | API | API | | |
| | 6 | [openembed-9b](https://huggingface.co/UCSC-VLAA/OpenEmbed-9B) † | **73.4** | 62.1 | 70.1 | 74.5 | 51.4 | 17.8 | bf16 | | |
| | 7 | [pplx-embed-v1-4b](https://openrouter.ai/perplexity/pplx-embed-v1-4b) | **72.9** | 61.8 | 69.4 | 73.6 | 51.5 | API | API | | |
| | 8 | [cohere-embed-5-pro](https://openrouter.ai/cohere/embed-5-pro) | **72.8** | 61.2 | 69.2 | 73.3 | 50.1 | API | API | | |
| | 9 | [gemini-embedding-001](https://openrouter.ai/google/gemini-embedding-001) | **72.8** | 62.3 | 69.6 | 75.3 | 59.9 | API | API | | |
| | 10 | [f2llm-v2-8b](https://huggingface.co/codefuse-ai/F2LLM-v2-8B) † | **72.7** | 61.8 | 69.4 | 74.5 | 52.0 | 15.9 | bf16 | | |
| | 11 | [bge-m3-all](https://huggingface.co/BAAI/bge-m3) † | **72.5** | 61.3 | 69.0 | 74.7 | 45.2 | 2.1 | fp16 | | |
| | 12 | [openembed-4b](https://huggingface.co/UCSC-VLAA/OpenEmbed-4B) † | **72.1** | 60.4 | 68.6 | 73.0 | 50.4 | 10.4 | bf16 | | |
| | 13 | [f2llm-v2-4b](https://huggingface.co/codefuse-ai/F2LLM-v2-4B) † | **72.1** | 61.2 | 68.8 | 74.5 | 52.5 | 8.8 | bf16 | | |
| | 14 | [cohere-embed-5-fast](https://openrouter.ai/cohere/embed-5-fast) | **71.5** | 59.6 | 67.9 | 72.0 | 48.7 | API | API | | |
| | 15 | [octen-8b](https://huggingface.co/Octen/Octen-Embedding-8B) † | **71.2** | 60.2 | 67.8 | 73.8 | 56.8 | 15.9 | bf16 | | |
| | 16 | [f2llm-v2-1.7b](https://huggingface.co/codefuse-ai/F2LLM-v2-1.7B) † | **71.0** | 59.8 | 67.6 | 72.8 | 50.0 | 4.1 | bf16 | | |
| | 17 | [jina-v5-small](https://huggingface.co/jinaai/jina-embeddings-v5-text-small) † | **71.0** | 60.0 | 67.5 | 75.1 | 50.6 | 3.5 | bf16 | | |
| | 18 | [aiteamvn-vn-v2](https://huggingface.co/AITeamVN/Vietnamese_Embedding_v2) † | **70.9** | 60.9 | 67.7 | 84.8 | 39.9 | 1.4 | bf16 | | |
| | 19 | [qwen3-8b](https://huggingface.co/Qwen/Qwen3-Embedding-8B) | **70.7** | 59.5 | 67.3 | 75.1 | 54.2 | 15.9 | bf16 | | |
| | 20 | [aiteamvn-vn](https://huggingface.co/AITeamVN/Vietnamese_Embedding) † | **70.6** | 60.3 | 67.4 | 84.3 | 40.6 | 1.4 | bf16 | | |
| | 21 | [vintern-emb-1b](https://huggingface.co/5CD-AI/Vintern-Embedding-1B) † | **70.2** | 59.4 | 66.8 | 68.1 | 40.6 | 3.5 | bf16 | | |
| | 22 | [octen-4b](https://huggingface.co/Octen/Octen-Embedding-4B) † | **70.1** | 58.9 | 66.8 | 73.6 | 54.2 | 8.8 | bf16 | | |
| | 23 | [pplx-embed-v1-0.6b](https://openrouter.ai/perplexity/pplx-embed-v1-0.6b) | **70.0** | 58.7 | 66.5 | 70.1 | 47.5 | API | API | | |
| | 24 | [openembed-2b](https://huggingface.co/UCSC-VLAA/OpenEmbed-2B) † | **69.7** | 57.8 | 66.2 | 71.8 | 47.3 | 5.4 | bf16 | | |
| | 25 | [jina-v5-nano](https://huggingface.co/jinaai/jina-embeddings-v5-text-nano) † | **69.6** | 58.3 | 66.0 | 73.7 | 49.6 | 1.9 | bf16 | | |
| | 26 | [f2llm-v2-0.6b](https://huggingface.co/codefuse-ai/F2LLM-v2-0.6B) † | **69.4** | 58.0 | 66.0 | 72.0 | 47.5 | 1.6 | bf16 | | |
| | 27 | [bge-m3](https://huggingface.co/BAAI/bge-m3) † | **69.3** | 57.6 | 65.6 | 71.6 | 44.4 | 1.4 | fp16 | | |
| | 28 | [greennode-large-vn](https://huggingface.co/GreenNode/GreenNode-Embedding-Large-VN-V1) † § | **69.2** | 57.0 | 65.5 | 70.3 | 41.7 | 1.4 | bf16 | | |
| | 29 | [voyage-4-lite](https://openrouter.ai/mongodb/voyage-4-lite) | **69.1** | 57.5 | 65.6 | 68.2 | 50.8 | API | API | | |
| | 30 | [me5-large](https://huggingface.co/intfloat/multilingual-e5-large) † | **68.9** | 57.1 | 65.5 | 66.5 | 43.8 | 1.4 | bf16 | | |
| | 31 | [harrier-0.6b](https://huggingface.co/microsoft/harrier-oss-v1-0.6b) † | **68.9** | 57.1 | 65.5 | 72.0 | 49.3 | 1.6 | bf16 | | |
| | 32 | [cohere-embed-multilingual-v3](https://openrouter.ai/cohere/embed-multilingual-v3.0) | **68.8** | 57.1 | 65.2 | 69.2 | 46.0 | API | API | | |
| | 33 | [greennode-e5-large-vn](https://huggingface.co/GreenNode/GreenNode-Embedding-E5-Large-VN-V1) † | **68.6** | 58.0 | 65.4 | 70.0 | 43.3 | 1.4 | bf16 | | |
| | 34 | [qwen3-4b](https://huggingface.co/Qwen/Qwen3-Embedding-4B) † | **68.3** | 57.2 | 65.0 | 76.5 | 52.8 | 8.8 | bf16 | | |
| | 35 | [skill-venus-0.6b](https://huggingface.co/inclusionAI/Skill-Venus-Embedding-0.6B) † | **68.2** | 56.3 | 64.5 | 70.5 | 44.8 | 1.6 | bf16 | | |
| | 36 | [nemotron35-1b](https://huggingface.co/nvidia/Nemotron-3.5-Embed-1B-BF16) | **68.1** | 56.2 | 64.2 | 70.7 | 45.1 | 3.0 | bf16 | | |
| | 37 | [dek21-hcmute](https://huggingface.co/huyydangg/huydang-dek21-embedding) † § | **68.1** | 59.5 | 65.4 | 94.9 | 32.3 | 0.4 | bf16 | | |
| | 38 | [nemotron3-1b](https://huggingface.co/nvidia/Nemotron-3-Embed-1B-BF16) † | **68.1** | 56.1 | 64.3 | 70.5 | 45.1 | 3.0 | bf16 | | |
| | 39 | [nemotron35-1b-nvfp4](https://huggingface.co/nvidia/Nemotron-3.5-Embed-1B-NVFP4) | **67.9** | 56.0 | 64.2 | 70.6 | 45.0 | 1.4 | NVFP4 W4A4 ‡ | | |
| | 40 | [jina-v4](https://huggingface.co/jinaai/jina-embeddings-v4) † | **67.8** | 55.8 | 64.1 | 69.3 | 48.9 | 14.3 | bf16 | | |
| | 41 | [jina-v3](https://huggingface.co/jinaai/jina-embeddings-v3) † | **67.5** | 55.7 | 63.9 | 68.0 | 43.6 | 2.1 | bf16 | | |
| | 42 | [f2llm-v2-330m](https://huggingface.co/codefuse-ai/F2LLM-v2-330M) † | **67.2** | 56.0 | 63.6 | 68.3 | 44.6 | 1.1 | bf16 | | |
| | 43 | [granite-311m-multi-r2](https://huggingface.co/ibm-granite/granite-embedding-311m-multilingual-r2) | **67.1** | 55.9 | 63.6 | 68.8 | 43.0 | 1.0 | bf16 | | |
| | 44 | [embeddinggemma-300m](https://huggingface.co/google/embeddinggemma-300m) † | **66.8** | 54.1 | 63.1 | 67.9 | 47.1 | 0.8 | bf16 | | |
| | 45 | [openembed-0.8b](https://huggingface.co/UCSC-VLAA/OpenEmbed-0.8B) † | **66.6** | 54.5 | 62.9 | 69.6 | 43.3 | 2.7 | bf16 | | |
| | 46 | [text-embedding-3-large](https://platform.openai.com/docs/guides/embeddings) | **66.5** | 53.7 | 62.6 | 65.3 | 46.4 | API | API | | |
| | 47 | [octen-0.6b](https://huggingface.co/Octen/Octen-Embedding-0.6B) † | **65.1** | 53.4 | 61.5 | 66.3 | 48.0 | 1.6 | bf16 | | |
| | 48 | [embeddinggemma-2](https://huggingface.co/google/embeddinggemma-2) † | **65.1** | 53.2 | 61.4 | 69.6 | 45.9 | 2.4 | bf16 | | |
| | 49 | [harrier-270m](https://huggingface.co/microsoft/harrier-oss-v1-270m) † | **64.6** | 52.7 | 60.9 | 64.4 | 45.2 | 0.8 | bf16 | | |
| | 50 | [bm25](https://github.com/xhluca/bm25s) | **64.5** | 51.3 | 60.3 | 65.2 | 36.7 | — | — | | |
| | 51 | [bkai-vn-bi](https://huggingface.co/bkai-foundation-models/vietnamese-bi-encoder) † § | **64.5** | 55.3 | 61.6 | 85.1 | 34.2 | 0.4 | bf16 | | |
| | 52 | [me5-small](https://huggingface.co/intfloat/multilingual-e5-small) † | **63.8** | 52.2 | 60.5 | 60.8 | 37.3 | 0.4 | bf16 | | |
| | 53 | [qwen3-0.6b](https://huggingface.co/Qwen/Qwen3-Embedding-0.6B) † | **62.9** | 51.3 | 59.3 | 67.1 | 46.9 | 1.6 | bf16 | | |
| | 54 | [f2llm-v2-160m](https://huggingface.co/codefuse-ai/F2LLM-v2-160M) † | **62.6** | 50.7 | 59.1 | 63.1 | 39.6 | 0.7 | bf16 | | |
| | 55 | [dvt-vn-doc-emb](https://huggingface.co/dangvantuan/vietnamese-document-embedding) † | **62.1** | 49.8 | 58.2 | 64.9 | 44.8 | 1.1 | bf16 | | |
| | 56 | [granite-97m-multi-r2](https://huggingface.co/ibm-granite/granite-embedding-97m-multilingual-r2) † | **61.9** | 50.4 | 58.3 | 62.8 | 37.7 | 0.5 | bf16 | | |
| | 57 | [halong](https://huggingface.co/contextboxai/halong_embedding) † | **61.7** | 49.5 | 57.9 | 59.3 | 41.5 | 0.8 | bf16 | | |
| | 58 | [f2llm-v2-80m](https://huggingface.co/codefuse-ai/F2LLM-v2-80M) † | **59.7** | 47.8 | 56.1 | 60.4 | 37.5 | 0.5 | bf16 | | |
| | 59 | [text-embedding-3-small](https://platform.openai.com/docs/guides/embeddings) | **58.4** | 46.2 | 54.4 | 56.5 | 35.8 | API | API | | |
| | 60 | [titan-embed-text-v2](https://openrouter.ai/amazon/titan-embed-text-v2) | **57.2** | 46.0 | 53.4 | 55.7 | 34.0 | API | API | | |
| | 61 | [dvt-vn-emb](https://huggingface.co/dangvantuan/vietnamese-embedding) † | **47.4** | 35.5 | 43.4 | 48.2 | 25.0 | 0.4 | bf16 | | |
| | 62 | [simcse-phobert](https://huggingface.co/VoVanPhuc/sup-SimCSE-VietNamese-phobert-base) † | **43.5** | 31.8 | 39.7 | 44.0 | 21.8 | 0.4 | bf16 | | |
| | 63 | [mistral-embed-1b](https://huggingface.co/mistralai/Mistral-Multimodal-Embed-1B) † | **39.9** | 27.6 | 35.8 | 35.2 | 28.2 | 2.9 | bf16 | | |
| | 64 | [para-multi-minilm-l12](https://huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2) † | **39.4** | 28.6 | 35.7 | 41.3 | 28.1 | 0.3 | bf16 | | |
| - **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). | |
| - **§ Training-data overlap** with Zalo Legal and Tables for greennode-large-vn (its card lists GreenNode Table-Markdown and Zalo legal training data); Zalo Legal for dek21-hcmute (fine-tuned from bkai-vn-bi); Zalo Legal for bkai-vn-bi (its card says it was trained on 80% of the Zalo 2021 legal training set). Their scores on those datasets, and so their Native-4, may be inflated; [the law_search report](#references) found the same pattern for BKAI and HCMUTE on Zalo AI legal data. | |
| - **BM25** is a keyword-search baseline (no model, runs on CPU), shown so every embedding model can be compared with plain word matching. | |
| - **Raw data:** [results/speed/peak_memory.csv](results/speed/peak_memory.csv). | |
| ## More findings | |
|  | |
| *Figure 4. Long-context gains, 512 → 2,048 tokens.* | |
|  | |
| *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). | |
|  | |
| *Figure 7. NVFP4 minus BF16 per dataset, Nemotron-3.5.* | |
| ## Speed and memory | |
|  | |
| *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 | | |
| |---|---:|---:|---:|---:|---:|---:|---| | |
| | para-multi-minilm-l12 | 39.4 | 1,433 | 164,683 | 3,730 | 0.3 | 0.2 | bf16 | | |
| | me5-small | 63.8 | 1,333 | 353,258 | 3,671 | 0.4 | 0.2 | bf16 | | |
| | granite-97m-multi-r2 | 61.9 | 1,127 | 321,538 | 3,908 | 0.5 | 0.2 | bf16 | | |
| | halong | 61.7 | 1,004 | 264,381 | 4,756 | 0.8 | 0.5 | bf16 | | |
| | f2llm-v2-80m | 59.7 | 768 | 218,339 | 3,262 | 0.5 | 0.1 | bf16 | | |
| | simcse-phobert | 43.5 | 665 | 127,178 | 522 | 0.4 | 0.3 | bf16 | | |
| | bkai-vn-bi | 64.5 | 664 | 127,002 | 490 | 0.4 | 0.3 | bf16 | | |
| | f2llm-v2-160m | 62.6 | 658 | 187,017 | 3,109 | 0.7 | 0.3 | bf16 | | |
| | dek21-hcmute | 68.1 | 655 | 125,195 | 525 | 0.4 | 0.3 | bf16 | | |
| | dvt-vn-emb | 47.4 | 631 | 120,591 | 455 | 0.4 | 0.3 | bf16 | | |
| | granite-311m-multi-r2 | 67.1 | 601 | 167,246 | 2,531 | 1.0 | 0.6 | bf16 | | |
| | harrier-270m | 64.6 | 567 | 158,159 | 1,609 | 0.8 | 0.5 | bf16 | | |
| | dvt-vn-doc-emb | 62.1 | 567 | 149,203 | 3,521 | 1.1 | 0.6 | bf16 | | |
| | bge-m3 | 69.3 | 504 | 132,849 | 3,056 | 1.4 | 1.1 | fp16 | | |
| | aiteamvn-vn-v2 | 70.9 | 504 | 132,596 | 2,843 | 1.4 | 1.1 | bf16 | | |
| | greennode-e5-large-vn | 68.6 | 502 | 132,285 | 2,931 | 1.4 | 1.0 | bf16 | | |
| | aiteamvn-vn | 70.6 | 502 | 132,184 | 2,947 | 1.4 | 1.1 | bf16 | | |
| | me5-large | 68.9 | 499 | 132,143 | 2,867 | 1.4 | 1.0 | bf16 | | |
| | greennode-large-vn | 69.2 | 495 | 130,462 | 2,889 | 1.4 | 1.1 | bf16 | | |
| | bge-m3-all | 72.5 | 468 | 123,324 | 2,794 | 2.1 | 1.1 | fp16 | | |
| | embeddinggemma-300m | 66.8 | 455 | 128,798 | 1,075 | 0.8 | 0.6 | bf16 | | |
| | f2llm-v2-330m | 67.2 | 359 | 102,016 | 2,031 | 1.1 | 0.6 | bf16 | | |
| | embeddinggemma-2 | 65.1 | 356 | 100,613 | 1,026 | 2.4 | 0.5 | bf16 | | |
| | jina-v3 | 67.5 | 233 | 61,435 | 692 | 2.1 | 1.1 | bf16 | | |
| | jina-v5-nano | 69.6 | 233 | 63,505 | 1,167 | 1.9 | 0.9 | bf16 | | |
| | mistral-embed-1b | 39.9 | 231 | 66,057 | 2,199 | 2.9 | 2.3 | bf16 | | |
| | skill-venus-0.6b | 68.2 | 200 | 56,970 | 1,291 | 1.6 | 1.1 | bf16 | | |
| | harrier-0.6b | 68.9 | 200 | 56,878 | 1,289 | 1.6 | 1.1 | bf16 | | |
| | f2llm-v2-0.6b | 69.4 | 200 | 56,855 | 1,279 | 1.6 | 1.1 | bf16 | | |
| | qwen3-0.6b | 62.9 | 200 | 56,850 | 1,185 | 1.6 | 1.1 | bf16 | | |
| | octen-0.6b | 65.1 | 200 | 56,458 | 1,245 | 1.6 | 1.1 | bf16 | | |
| | nemotron35-1b | 68.1 | 186 | 53,231 | 1,921 | 3.0 | 2.1 | bf16 | | |
| | vintern-emb-1b | 70.2 | 181 | 51,228 | 1,337 | 3.5 | 1.7 | bf16 | | |
| | nemotron3-1b | 68.1 | 165 | 47,234 | 1,592 | 3.0 | 2.1 | bf16 | | |
| | openembed-0.8b | 66.6 | 165 | 45,083 | 835 | 2.7 | 1.6 | bf16 | | |
| | jina-v5-small | 71.0 | 139 | 39,304 | 491 | 3.5 | 1.3 | bf16 | | |
| | f2llm-v2-1.7b | 71.0 | 100 | 28,486 | 733 | 4.1 | 3.2 | bf16 | | |
| | openembed-2b | 69.7 | 95 | 25,967 | 752 | 5.4 | 4.1 | bf16 | | |
| | jina-v4 | 67.8 | 46 | 0 | 426 | 14.3 | 7.3 | bf16 | | |
| | octen-4b | 70.1 | 44 | 12,531 | 319 | 8.8 | 7.5 | bf16 | | |
| | qwen3-4b | 68.3 | 44 | 12,544 | 319 | 8.8 | 7.5 | bf16 | | |
| | f2llm-v2-4b | 72.1 | 44 | 12,483 | 316 | 8.8 | 7.5 | bf16 | | |
| | openembed-4b | 72.1 | 42 | 11,562 | 280 | 10.4 | 8.5 | bf16 | | |
| | nemotron35-8b | 76.9 | 29 | 8,356 | 315 | 16.8 | 14.8 | bf16 | | |
| | octen-8b | 71.2 | 27 | 7,548 | 186 | 15.9 | 14.1 | bf16 | | |
| | qwen3-8b | 70.7 | 27 | 7,553 | 187 | 15.9 | 14.1 | bf16 | | |
| | f2llm-v2-8b | 72.7 | 26 | 7,524 | 185 | 15.9 | 14.1 | bf16 | | |
| | nemotron3-8b | 76.9 | 26 | 7,485 | 254 | 16.8 | 14.8 | bf16 | | |
| | openembed-9b | 73.4 | 26 | 7,064 | 211 | 17.8 | 15.6 | bf16 | | |
| | nemotron35-8b-nvfp4 ‡ | 76.8 | — | — | — | 5.7 | 5.0 | NVFP4 W4A4 (native FP4) | | |
| | nemotron35-1b-nvfp4 ‡ | 67.9 | — | — | — | 1.4 | 1.1 | NVFP4 W4A4 (native FP4) | | |
| **Notes** | |
| - **Throughput** (docs/s, doc tokens/s, queries/s): measured on an NVIDIA GeForce RTX 4090 (24 GB), one model at a time with nothing else running (PyTorch 2.15.0). | |
| - **Workload:** 2,048 Zalo Legal documents + 818 queries, 512-token window (128 for para-multi-minilm-l12, its own limit), **batch 32** for every model, each in its own prompt format. A fixed batch keeps models comparable; small models could run faster with larger batches. | |
| - **Precision:** bf16 (bfloat16) weights and activations, except BGE-M3 and its hybrid modes (fp16). | |
| - **‡ NVFP4 checkpoints:** no throughput figure. Memory measured on an NVIDIA GB10 with native FP4 kernels (vLLM 0.34.0, PyTorch 2.14.0, CUTLASS FP4 matrix multiply, no CUDA graphs), same documents and queries, batched by 8192 tokens per step instead of 32 documents. These models have no KV cache. Average while encoding: 5.03 GiB (nemotron35-8b-nvfp4) and 1.10 GiB (nemotron35-1b-nvfp4). | |
| - **`bge-m3-all`** computes dense + sparse + ColBERT outputs in one pass. | |
| - **OpenEmbed** runs its linear-attention layers with the `flash-linear-attention` and `causal-conv1d` kernels; its embeddings match the reference PyTorch path (cosine ≥ 0.9998). Details: [docs/openembed-kernels.md](docs/openembed-kernels.md). | |
| - **Raw data:** [results/speed/speed_unified.csv](results/speed/speed_unified.csv). | |
| ## Datasets | |
| | Dataset | Domain | Docs | Queries | Source | | |
| |---|---|---:|---:|---| | |
| | Zalo AI Legal | Legal articles | 61,425 | 818 | [`GreenNode/zalo-ai-legal-text-retrieval-vn`](https://huggingface.co/datasets/GreenNode/zalo-ai-legal-text-retrieval-vn) | | |
| | TVPL | Legal Q&A (thuvienphapluat) | 10,576 | 9,985 | [`GreenNode/TVPL-Retrieval-VN`](https://huggingface.co/datasets/GreenNode/TVPL-Retrieval-VN) | | |
| | Table-Markdown | Tables (finance, encyclopedic) in Markdown | 44,678 | 35,791 | [`GreenNode/GreenNode-Table-Markdown-Retrieval-VN`](https://huggingface.co/datasets/GreenNode/GreenNode-Table-Markdown-Retrieval-VN) | | |
| | WebFAQ (vie) | Web FAQ | 123,972 | 10,000 | [`mteb/WebFAQRetrieval`](https://huggingface.co/datasets/mteb/WebFAQRetrieval) | | |
| | UIT-ViQuAD 2.0 | Wikipedia QA | 2,490 | 2,048 | [`taidng/UIT-ViQuAD2.0`](https://huggingface.co/datasets/taidng/UIT-ViQuAD2.0) | | |
| | MLQA (vie-vie) | Wikipedia QA | 451 | 511 | [`mteb/MLQARetrieval`](https://huggingface.co/datasets/mteb/MLQARetrieval) | | |
| | XQuAD (vi) | Wikipedia QA | 240 | 1,182 | [`mteb/XQuADRetrieval`](https://huggingface.co/datasets/mteb/XQuADRetrieval) | | |
| | Belebele (vie) | Reading comprehension | 488 | 900 | [`mteb/belebele`](https://huggingface.co/datasets/mteb/belebele) | | |
| | PublicHealthQA (vi) | Public health FAQ | 77 | 77 | [`xhluca/publichealth-qa`](https://huggingface.co/datasets/xhluca/publichealth-qa) | | |
| | SciFact-VN (translated) | Scientific claims | 5,183 | 134 | [`GreenNode/scifact-vn`](https://huggingface.co/datasets/GreenNode/scifact-vn) | | |
| | NFCorpus-VN (translated) | Medical | 3,618 | 166 | [`GreenNode/nfcorpus-vn`](https://huggingface.co/datasets/GreenNode/nfcorpus-vn) | | |
| | ArguAna-VN (translated) | Counter-arguments | 8,674 | 1,295 | [`GreenNode/arguana-vn`](https://huggingface.co/datasets/GreenNode/arguana-vn) | | |
| | FiQA-VN (translated) | Finance Q&A | 57,638 | 384 | [`GreenNode/fiqa-vn`](https://huggingface.co/datasets/GreenNode/fiqa-vn) | | |
| ## Not yet benchmarked | |
| - **2,048-token window:** measured for 12 of 64 models on the long-document sets (Zalo Legal and Tables; TVPL too for 10 of them); openembed-0.8b has Tables only. Not yet run for the other 52, including top-10 models nemotron35-8b, nemotron3-8b, nemotron35-8b-nvfp4, gemini-embedding-2, pplx-embed-v2-context-0.6b, openembed-9b, pplx-embed-v1-4b, cohere-embed-5-pro, gemini-embedding-001, f2llm-v2-8b. | |
| - **Matryoshka truncation:** measured for 13 models only. Every other model is scored at its full embedding size. | |
| - **Exact fp32 re-ranking:** 45 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. 33 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) | |
| ## Documentation | |
| - [docs/methodology.md](docs/methodology.md): how each model is benchmarked (input formats, pooling, precision, search, metrics, checks) | |
| - [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 | |
| ## References | |
| - Duc-Nhan Nguyen, [*The Data Leakage Challenge in Vietnamese Legal Information Retrieval*](https://github.com/Iambestfeed/law_search/blob/main/Report_Law_research%20(1).pdf) (May 2024; code: [Iambestfeed/law_search](https://github.com/Iambestfeed/law_search)) | |
| - Compares BM25 with four Vietnamese embedding models (AITeamVN, BKAI, Halong, HCMUTE) on a clean hand-labelled legal set and on the Zalo AI legal set | |
| - BKAI and HCMUTE score far higher on the Zalo AI set than on the clean set, a sign that Zalo legal data reached their training data | |
| - Relevant here: Zalo Legal is one of our datasets, so scores of models trained on Zalo legal data can be inflated on it | |