Benchmarks
Every system on the same machine, the same data and the same metric code. synrag runs on the CPU; embedding models run on a GPU (their best case) and are also timed on the CPU. All quality numbers are nDCG@10 on public test splits; synrag's settings were chosen on train/dev only. These are our own measurements — the scripts are listed at the end so they can be reproduced.
Setup
- AMD Ryzen 5 7500F (6 cores / 12 threads), 31 GB RAM, NVIDIA RTX 5060 Ti 16 GB.
- Elasticsearch 8.15 (Docker, 4 GB heap,
englishanalyzer, standard BEIRmulti_match; language analyzers on Belebele). - Embedding models: sentence-transformers, fp32, 256 tokens, exact search; optimised variants with ONNX Runtime int8 (CPU) and fp16 (GPU).
- Hybrids (Elasticsearch + model, Tantivy + Model2Vec): BM25 + 0.6 × min-max(cosine), the same fusion synrag uses. Weights were not tuned per model.
- synrag “fast” = BM25 + Synapse; “full” = + a corpus model trained at index time; “+ reranker” = contextual reranker on the top 30.
From process start to searchable
FiQA: 57,638 documents, 44 MB of text. Time includes reading the corpus, building every index channel, loading and running the model.
| System | Hardware | Ready in | Memory | nDCG@10 |
|---|---|---|---|---|
| synrag BM25 | CPU | 0.45 s | 325 MB | 0.261 |
| synrag fast (BM25 + Synapse) | CPU | 1.6 s | 443 MB | 0.279 |
| synrag full | CPU | 4.8 s | 475 MB | 0.277 |
| Elasticsearch BM25 | CPU | 12.7 s | 4.9 GB | 0.254 |
| Tantivy + Model2Vec-RS (multilingual) | CPU | 2.8 s | 1.85 GB | 0.260 |
| Tantivy + Model2Vec-RS (English) | CPU | 0.44 s | 370 MB | 0.267 |
| all-MiniLM-L6-v2 | GPU / CPU | 60 s / 16.5 min | 2.1 GB + 0.7 GB VRAM | 0.369 |
| bge-small-en-v1.5 | GPU / CPU | 107 s / 31 min | 2.1 GB + 0.8 GB VRAM | 0.390 |
| multilingual-e5-small | GPU / CPU | 74 s / 19 min | 2.5 GB + 1.1 GB VRAM | 0.334 |
| EmbeddingGemma | GPU / CPU | 282 s / 1.7 h | 2.8 GB + 5.6 GB VRAM | 0.308 |
FiQA (financial Q&A with paraphrased questions) is the hardest set for keyword search: here embedding models are clearly better than synrag. Averages over many sets are below.
Embedding speed
| Model | Parameters | Multiplications / token | CPU | CPU, ONNX int8 | GPU, fp16 |
|---|---|---|---|---|---|
| Synapse (synrag) | 21.3M | ~5K | 51,600 docs/s | — | not needed |
| Model2Vec-RS multilingual / English | 128M / 7.6M | ~0 | 56,400 / 750,000 | — | — |
| all-MiniLM-L6-v2 | 22.7M | ~12M | 58 | 125 | 2,252 |
| bge-small-en-v1.5 | 33.4M | ~21M | 31 | 66 | 1,765 |
| multilingual-e5-small | 117.7M | ~21M | 50 | 71 | 1,818 |
| EmbeddingGemma | 271M (text) | ~100M | 9 | — | 207 |
Synapse is a convolutional encoder (±8 token window + a global gate) distilled from EmbeddingGemma: 2,000–20,000× fewer multiplications per token than transformers, ~410–780× faster than their ONNX int8 versions on the same CPU and 23–29× faster than their fp16 versions on a GPU. Model2Vec (static vectors) is as fast or faster; Synapse's advantage is quality when fused with BM25, not raw speed.
Latency over HTTP
FiQA test, 648 queries, the same Python client; latency = one client, query after query; throughput = 12 clients; quality computed from the servers' own answers.
| Server | nDCG@10 | p50 / p95 / p99 | 12 clients | Server memory |
|---|---|---|---|---|
| synrag fast, keep-alive | 0.279 | 0.76 / 1.07 / 1.23 ms | 6,325 q/s | 315 MB |
| synrag fast + reranker | 0.296 | 3.17 / 3.84 / 4.10 ms | 475 q/s | 296 MB |
| synrag with API key + audit log | 0.279 | 0.83 / 1.16 / 1.32 ms | 6,186 q/s | — |
| Elasticsearch 8.15, keep-alive | 0.254 | 1.96 / 3.72 / 4.34 ms | 3,197 q/s | 4.7 GB |
English quality (BEIR)
| System | SciFact | NFCorpus | FiQA | Average | GPU |
|---|---|---|---|---|---|
| Elasticsearch BM25 | 0.691 | 0.327 | 0.254 | 0.424 | no |
| synrag fast | 0.706 | 0.338 | 0.279 | 0.441 | no |
| synrag full + reranker | 0.719 | 0.350 | 0.298 | 0.455 | no |
| Tantivy + Model2Vec-RS (English) | 0.706 | 0.335 | 0.267 | 0.436 | no |
| all-MiniLM-L6-v2 | 0.648 | 0.318 | 0.369 | 0.445 | yes |
| multilingual-e5-small | 0.651 | 0.306 | 0.334 | 0.430 | yes |
| bge-small-en-v1.5 | 0.703 | 0.343 | 0.390 | 0.478 | yes |
| EmbeddingGemma | 0.854 | 0.345 | 0.308 | 0.503 | yes |
| Elasticsearch + model (4 models) | 0.716–0.753 | 0.344–0.361 | 0.306–0.331 | 0.455–0.474 | yes |
On English synrag is level with small embedding models and the lower end of Elasticsearch + model hybrids, and below bge-small (−0.023) and EmbeddingGemma (−0.048).
Other languages
MLQA (question and Wikipedia paragraphs in the same language):
| System | en | zh | de | ar | hi | Average |
|---|---|---|---|---|---|---|
| Elasticsearch BM25 | 0.711 | 0.622 | 0.573 | 0.482 | 0.538 | 0.585 |
| synrag full + reranker | 0.767 | 0.707 | 0.627 | 0.593 | 0.625 | 0.664 |
| multilingual-e5-small (GPU) | 0.652 | 0.643 | 0.632 | 0.568 | 0.625 | 0.624 |
| EmbeddingGemma (GPU) | 0.660 | 0.682 | 0.677 | 0.594 | 0.676 | 0.658 |
| Elasticsearch + EmbeddingGemma | 0.756 | 0.707 | 0.641 | 0.557 | 0.625 | 0.657 |
| Tantivy + Model2Vec-RS | 0.735 | 0.706 | 0.611 | 0.580 | 0.586 | 0.644 |
| bge-small-en-v1.5 (GPU) | 0.570 | 0.138 | 0.352 | 0.025 | 0.036 | 0.224 |
MQA, 12 languages (Turkish, Kazakh, Uzbek, Azerbaijani, Kyrgyz, Russian, English, German, Arabic, Persian, Urdu, Hindi): synrag fast + reranker 0.478, EmbeddingGemma 0.486, Elasticsearch + EmbeddingGemma 0.445, Tantivy + Model2Vec 0.427, Elasticsearch 0.416, multilingual-e5-small 0.409. synrag is first on Kazakh, Uzbek, Azerbaijani, Urdu and German; EmbeddingGemma on Hindi, Persian, Russian, English, Arabic and Turkish. (Synapse saw other pairs from the MQA source during training.)
Belebele, 14 languages (not used in training or tuning)
| System | en | ru | uk | kk | uz | ky | tg | tr | de | ar | hi | zh | Avg (14) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| synrag fast + reranker | 0.960 | 0.931 | 0.908 | 0.834 | 0.847 | 0.838 | 0.856 | 0.880 | 0.883 | 0.880 | 0.792 | 0.931 | 0.874 |
| EmbeddingGemma (GPU) | 0.946 | 0.934 | 0.925 | 0.734 | 0.721 | 0.732 | 0.619 | 0.914 | 0.933 | 0.901 | 0.903 | 0.939 | 0.852 |
| Elasticsearch + EmbeddingGemma | 0.954 | 0.949 | 0.800 | 0.734 | 0.791 | 0.746 | 0.801 | 0.907 | 0.924 | 0.908 | 0.848 | 0.934 | 0.853 |
| Elasticsearch BM25 | 0.917 | 0.914 | 0.698 | 0.653 | 0.719 | 0.666 | 0.761 | 0.852 | 0.883 | 0.858 | 0.774 | 0.894 | 0.791 |
The lead comes from low-resource languages (Kazakh, Uzbek, Kyrgyz, Tajik: +0.10…+0.24 over EmbeddingGemma). EmbeddingGemma is better on 8 of 14 languages (Hindi, German, Persian, Turkish, Arabic, Ukrainian, Chinese, Russian); without the four Central Asian languages it averages 0.912 vs 0.886 for synrag.
Independent English sets (not used in tuning)
| System | SciDocs | ArguAna | TREC-COVID | Quora | Average |
|---|---|---|---|---|---|
| synrag fast + reranker | 0.165 | 0.347 | 0.713 | 0.846 | 0.518 |
| Elasticsearch BM25 | 0.165 | 0.352 | 0.688 | 0.808 | 0.503 |
| multilingual-e5-small (GPU) | 0.144 | 0.300 | 0.729 | 0.882 | 0.514 |
| EmbeddingGemma (GPU) | 0.179 | 0.461 | 0.586 | 0.872 | 0.524 |
| bge-small-en-v1.5 (GPU) | 0.196 | 0.399 | 0.745 | 0.886 | 0.557 |
| Elasticsearch + EmbeddingGemma | 0.179 | 0.426 | 0.777 | 0.861 | 0.561 |
Here synrag is below bge-small and every Elasticsearch + model hybrid (0.537–0.561). On ArguAna (argument → counter-argument) Synapse even hurts BM25 (0.367 → 0.344).
Scale: 8.8M MS MARCO passages on one server
| Mode | Ready in | nDCG@10 | Recall@100 | p50 / p99 | 12 threads | Peak RAM |
|---|---|---|---|---|---|---|
| synrag BM25 | 22 s | 0.244 | 0.674 | 7.1 / 28 ms | 450 q/s | 15.2 GB |
| synrag BM25 + Synapse (IVF 32) | 142 s | 0.277 | 0.730 | 9.9 / 31 ms | 372 q/s | 16.2 GB |
Published BM25 on this set: 0.228. Models trained on MS MARCO itself are stronger here (TAS-B 0.408, ANCE 0.388); synrag never saw it.
LLM prompt tokens
Qwen3-8B, 7 MLQA languages, 2,100 questions, the same retrieved documents for every method; F1 against the reference answer, 95% paired bootstrap.
| Context | F1 | Prompt tokens |
|---|---|---|
| Concatenate retrieved documents, budget 500 | 0.394 | 624 |
| Sentence selection by embeddings (LlamaIndex / LangChain style), 500 | 0.365 | 615 |
| synrag context, budget 250 | 0.395 | 357 |
| synrag context, budget 500 | 0.419 | 620 |
Same answer quality with 43% fewer prompt tokens (difference +0.000, CI [−0.015; +0.017]), or better answers at the same budget. Plain BM25 sentence selection does almost as well — the gain comes from extracting sentences, not from a secret algorithm.
Cost to index one million documents
| Method | Machine | Time | $ / 1M docs |
|---|---|---|---|
| synrag BM25 + Synapse (whole index) | AWS c7a.2xlarge, $0.41/h | 28 s | $0.003 |
| multilingual-e5-small fp16 (vectors only) | AWS g6.xlarge (L4), $0.80/h | 9.2 min | $0.12 |
| EmbeddingGemma (vectors only) | AWS g6.xlarge (L4) | 1.3 h | $1.08 |
| OpenAI text-embedding-3-small / Titan V2 API | — | — | $3.8 |
Documents of FiQA size (~760 bytes). Machine speeds assumed equal to our test machine; prices November 2026, on-demand.
Where synrag loses
- Best English quality: bge-small and EmbeddingGemma on a GPU are ahead by 0.02–0.05 nDCG@10; on independent English sets hybrids of Elasticsearch with a model are ahead by 0.02–0.04.
- Large languages (Hindi, Persian, Russian, Arabic, Turkish, German): EmbeddingGemma is better.
- Cross-lingual search (question and documents in different languages) is weak.
- Synapse alone (without BM25) is weaker than transformer models and on par with Model2Vec; it is built to be fused with BM25.
- The reranker costs ~11.5 ms CPU per query and only reorders the top 30.
- Tested up to 8.8M passages on one server and 2 shards × 2 replicas on two machines; 100M documents and large clusters are not tested yet.
Full technical report with every table, method and changelog (in Russian): PDF.