Learning Retrieval Models with Sparse Autoencoders
Organizations: NAVER LABS Europe
Abstract
Sparse autoencoders (SAEs) provide a powerful mechanism for decomposing the dense representations produced by Large Language Models (LLMs) into interpretable latent features. We posit that SAEs constitute a natural foundation for Learned Sparse Retrieval (LSR), whose objective is to encode queries and documents into high-dimensional sparse representations optimized for efficient retrieval. In contrast to existing LSR approaches that project input sequences into the vocabulary space, SAE-based representations offer the potential to produce more semantically structured, expressive, and language-agnostic features. Building on this insight, we introduce SPLARE, a method to train SAE-based LSR models. Our experiments, relying on recently released open-source SAEs, demonstrate that this technique consistently outperforms vocabulary-based LSR in multilingual and out-of-domain settings. SPLARE-7B, a multilingual retrieval model capable of producing generalizable sparse latent embeddings for a wide range of languages and domains, achieves top results on MMTEB's multilingual and English retrieval tasks. We also developed a 2B-parameter variant with a significantly lighter footprint.
Figures & tables
| English | Multilingual | Code | Medical | Law | ChemTEB | |
| English Models | ||||||
| SPLADE-v3 [ 49 ] | 50.7 | 38.1 | 44.5 | 44.2 | 40.4 | 75.6 |
| Lion-SP-8B [ 98 ] | 48.5 | 50.0 | 53.3 | 54.4 | 48.5 | 71.1 |
| SPLADE-Llama | 52.9 | 54.3 | 57.3 | 61.0 | 49.0 | 75.9 |
| SPLARE | 52.9 | 56.3 | 55.1 | 62.9 | 51.2 | 70.0 |
| Multilingual Models |
| indic | sca | deu | fra | kor | XTREME-UP | MIRACL | |
|---|---|---|---|---|---|---|---|
| SPLADE-Llama | 91.9 | 70.4 | 57.3 | 65.6 | 74.8 | 56.2 | 69.9 |
| SPLARE | 92.3 | 70.8 | 57.1 | 64.8 | 76.0 | 58.6 | 71.7 |
| English | Multilingual | XTREME-UP | |
|---|---|---|---|
| Top Open Source models | |||
| e5-mistral-7b-instruct [ 88 ] | 57.6 | 55.8 | - |
| NV-Embed-v2 [ 50 ] | 62.8 | 56.7 | - |
| multilingual-e5-large-instruct [ 89 ] | 53.5 | 57.1 | 18.7 |
| GritLM-7B [ 67 ] | 55.0 | 58.3 | - |
| SFR-Embedding-Mistral [ 65 ] | 59.3 | 59.4 | - |
Appendix figures & tables24 assets
Supplementary material from the paper’s appendix.
Appendix
| Component | Value |
| LoRA rank | 64 |
| Max training sequence length (english models) | 128 |
| Max training sequence length (multilingual models) | 512 |
| Epochs | 1 |
| Batch size (w/ gradient accumulation) | 128 |
| Learning rate |
| Dataset | SPLARE | SPLADE-Llama |
|---|---|---|
| Arguana | 16.0 | 16.2 |
| Climate-FEVER | 18.3 | 18.0 |
| DBPedia | 44.3 | 44.8 |
| FEVER | 76.0 | 75.8 |
| FiQA-2018 | 42.4 | 42.3 |
| HotpotQA | 66.8 | 67.6 |
| Task Name | SPLARE | SPLADE-Llama |
|---|---|---|
| ArguAna | 67.4 | 65.9 |
| CQADupstackGamingRetrieval | 59.6 | 59.3 |
| CQADupstackUnixRetrieval | 43.7 | 44.9 |
| ClimateFEVERHardNegatives | 33.4 | 35.9 |
| FEVERHardNegatives | 90.6 | 91.1 |
| FiQA2018 | 57.8 | 57.2 |
| Task Name | SPLARE | SPLADE-Llama |
|---|---|---|
| AILAStatutes | 38.9 | 36.3 |
| ArguAna | 67.4 | 65.9 |
| BelebeleRetrieval | 83.9 | 83.8 |
| CovidRetrieval | 83.3 | 81.5 |
| HagridRetrieval | 98.9 | 98.8 |
| LEMBPasskeyRetrieval | 48.2 | 48.2 |
| Task Name | SPLARE | SPLADE-Llama |
|---|---|---|
| BelebeleRetrieval | 83.9 | 83.8 |
| MIRACLRetrievalHardNegatives | 72.4 | 70.5 |
| MLQARetrieval | 83.8 | 81.5 |
| StatcanDialogueDatasetRetrieval | 30.8 | 30.5 |
| TwitterHjerneRetrieval | 73.2 | 73.4 |
| WikipediaRetrievalMultilingual | 91.7 | 90.6 |
| Task Name | SPLARE | SPLADE-Llama |
|---|---|---|
| Code | ||
| AppsRetrieval | 28.2 | 30.7 |
| COIRCodeSearchNetRetrieval | 62.1 | 70.0 |
| CodeEditSearchRetrieval | 74.2 | 75.0 |
| CodeFeedbackMT | 56.3 | 55.5 |
| CodeFeedbackST | 78.0 | 78.8 |
| Task Name | SPLARE | SPLADE-Llama |
|---|---|---|
| MTEB(Indic, v1) | ||
| BelebeleRetrieval | 87.1 | 87.0 |
| XQuADRetrieval | 97.5 | 96.9 |
| Average | 92.3 | 91.9 |
| MTEB(Scandinavian, v1) | ||
| DanFeverRetrieval | 42.8 | 41.7 |
| Model | ar | bn | en | es | fa | fi | fr | hi | id | ja | ko | ru | sw | te | th | zh | de † | yo † | Avg |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Baselines (Prior Work) | |||||||||||||||||||
| BM25 | 39.5 | 48.2 | 26.7 | 7.7 | 28.7 | 45.8 | 11.5 | 35.0 | 29.7 | 31.2 | 37.1 | 25.6 | 35.1 | 38.3 | 49.1 | 17.5 | 12.0 | 56.1 | 31.9 |
| mDPR | 49.9 | 44.3 | 39.4 | 47.8 | 48.0 | 47.2 | 43.5 | 38.3 | 27.2 | 43.9 | 41.9 | 40.7 | 29.9 | 35.6 | 35.8 | 51.2 | 49.0 | 39.6 | 41.8 |
| mContriever | 52.5 | 50.1 | 36.4 | 41.8 | 21.5 | 60.2 | 31.4 | 28.6 | 39.2 | 42.4 | 48.3 | 39.1 | 56.0 | 52.8 | 51.7 | 41.0 | 40.8 | 41.5 | 43.1 |
| mE5 large | 76.0 | 75.9 | 52.9 | 52.9 | 59.0 | 77.8 | 54.5 | 62.0 | 52.9 | 70.6 | 66.5 | 67.4 | 74.9 | 84.6 | 80.2 | 56.0 | 56.4 | 78.3 | 66.6 |
| E5 | 73.3 | 70.3 | 57.3 | 52.2 | 52.1 | 74.7 | 55.2 | 52.1 | 52.7 | 66.8 | 61.8 | 67.7 | 68.4 | 73.9 | 74.0 | 54.0 | 54.1 | 79.7 | 63.4 |
| Model | MRR@10 |
|---|---|
| SPLARE | 58.6 |
| SPLARE (Eng Only) | 41.6 |
| SPLADE-Llama | 56.2 |
| SPLADE-Llama (Eng Only) | 30.5 |
| Gemini Embedding | 64.3 |
| Gemini Embedding (Eng Only) | 49.3 |
| Model | Avg. | as | bho | brx | gbm | gom | gu | hi | hne | kn | mai | ml | mni | mr | mwr | or | pa | ps | sa | ta | ur |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Eng Only | |||||||||||||||||||||
| SPLARE | 42.6 | 44.4 | 49.4 | 10.2 | 48.2 | 39.2 | 40.9 | 57.0 | 49.5 | 46.5 | 52.6 | 47.6 | 20.1 | 50.8 | 49.8 | 26.3 | 44.4 | 37.3 | 43.5 | 45.6 | 48.6 |
| SPLADE-Llama | 30.5 | 31.7 | 46.8 | 10.7 | 45.8 | 30.7 | 24.2 | 54.7 | 44.5 | 19.0 | 48.7 | 21.8 | 20.0 | 45.2 | 48.2 | 7.6 | 23.3 | 2.2 | 38.5 | 27.8 | 19.5 |
| Multilingual | |||||||||||||||||||||
| SPLARE | 58.6 | 63.3 | 63.1 | 14.2 | 60.8 | 58.8 | 65.1 | 67.2 | 63.2 | 64.7 | 65.0 | 68.9 | 27.4 | 64.5 | 63.3 | 54.5 | 66.1 | 52.7 | 63.8 | 63.3 | 61.2 |
| SPLADE-Llama | 56.2 | 61.2 | 58.8 | 14.2 | 59.4 | 56.5 | 62.4 | 64.1 | 62.5 | 62.2 | 64.5 | 63.2 | 29.7 | 60.5 | 59.6 | 53.2 | 62.2 | 50.7 | 62.7 | 59.0 | 57.6 |
| Parameter | Value |
|---|---|
| k | 1000 |
| query_cut | 30 |
| heap_factor | 0.5 |
| n_knn | 0 |
| sorted | False |
| num_threads | 1 |
| SPLADE-Llama at intermediate layers | ||||
| Layer No. | 18 | 22 | 26 | 31 |
| MTEB(Eng, v2) | 43.6 | 44.5 | 52.9 |
Learned Sparse Retrieval
Learned sparse retrieval trains models to expand queries and documents into weighted, indexable terms for efficient semantic search.
See all 18 papers