Learning Retrieval Models with Sparse Autoencoders

Thibault Formal, Maxime Louis, Hervé Déjean, Stéphane Clinchant

TL;DR

Researchers at Naver Labs Europe have introduced SPLARE (SParse LAtent REtrieval), a novel method that leverages Sparse Autoencoders (SAEs) to build highly effective retrieval models. By replacing traditional token-based vocabularies with "latent semantic features," SPLARE achieves state-of-the-art results in multilingual and out-of-domain retrieval, outperforming previous sparse models and rivaling top-tier dense embedding models.

The Vocabulary Bottleneck in Information Retrieval

In the world of Information Retrieval (IR), there is a long-standing tug-of-war between Dense Retrieval (which uses continuous vectors) and Learned Sparse Retrieval (LSR) (which uses high-dimensional sparse vectors).

LSR models, such as SPLADE, are popular because they are highly efficient—utilizing inverted indices—and inherently interpretable. However, they suffer from a "vocabulary bottleneck": they represent documents as weighted bags-of-words using the underlying Large Language Model's (LLM) internal tokenizer. This architectural choice makes them English-centric, prone to tokenization redundancy, and less effective at capturing cross-lingual concepts. If a query and a document use entirely different words (or languages) for the exact same concept, a token-based sparse model might miss the connection.

Methods: Introducing SPLARE

The authors propose SPLARE, shifting the representation space from standard tokens to latent features extracted by Sparse Autoencoders.

SPLARE Architecture
  1. The Architecture: Instead of using the final layer and the language modeling head of an LLM, SPLARE taps into an intermediate layer (typically around two-thirds of the way through the model). It passes these hidden states through a pre-trained SAE encoder (like Llama Scope).
  2. Latent Vocabulary: The SAE decomposes dense activations into thousands of "mono-semantic" features. These are dimensions that correspond to specific, interpretable concepts rather than just sub-word strings.
  3. Pooling: Similar to the SPLADE method, SPLARE applies a log-saturation function and max-pooling over the sequence to create a single, unified sparse vector for the entire document or query.
  4. Training: The model is trained using distillation. A powerful cross-encoder acts as a "teacher," and the SPLARE model (the "student") learns to match the teacher's relevance scores. To keep training efficient, the authors use LoRA to fine-tune the LLM backbone while keeping the SAE weights completely frozen.

Datasets and Evaluation

The models were trained and evaluated on a massive scale:

  • Training: The English-only version utilized MS MARCO. The multilingual version used a filtered subset of the BGE-multilingual-gemma2 corpus (approximately 1.3M queries).
  • Evaluation: The primary benchmark was (M)MTEB (Massive Multilingual Text Embedding Benchmark), specifically focusing on the retrieval subsets.
  • Specialized Benchmarks: To test generalization, the team used MIRACL (multilingual), XTREME-UP (cross-lingual/low-resource), and domain-specific subsets of MTEB (Medical, Law, Code, Chemical).

Key Insights and Ideas

  • SAEs as a Universal Language: Because SAE features often represent abstract concepts (e.g., "historical context" or "scientific measurement") rather than specific vocabulary words, they are naturally more language-agnostic. This allows SPLARE to perform significantly better on multilingual tasks than models tied to an English-heavy tokenizer.
  • The 2/3 Depth Rule: The authors discovered that the "sweet spot" for retrieval isn't the final layer of an LLM, but rather about two-thirds of the way through (e.g., Layer 22 of a 32-layer model). This layer provides enough semantic abstraction without being overly specialized for next-token prediction.
Performance by Layer Depth
  • Scaling Laws for Retrieval: Performance scales log-linearly with the width of the SAE. Using an SAE with 131k features significantly outperforms one with 32k features, providing a clear path for future performance gains as larger SAEs are released.
  • Robustness to Pruning: SPLARE is much more robust than SPLADE when "pruning" vectors for efficiency. You can keep only the top 100 most active features in a document vector with only a 2% drop in performance, whereas token-based models degrade much faster under similar constraints.

Key Results

  • MMTEB Leaderboard: SPLARE-7B reached an average score of 62.3 on the MMTEB Multilingual retrieval benchmark, making it the top-performing LSR model and placing it in the top 10 of all models (including dense ones) at the time of writing.
  • Multilingual Superiority: On the XTREME-UP benchmark (cross-lingual retrieval), SPLARE outperformed its vocabulary-based counterpart (SPLADE-Llama) by a massive margin (58.6 vs 56.2).
  • Efficiency: Despite its high dimensionality, SPLARE is fast. Using optimized index structures, it can perform a search over 8.8 million documents in roughly 5ms per query.
  • Interpretability: Because SAE features are often mono-semantic, researchers can use tools like Neuronpedia to see exactly why a document was retrieved (e.g., identifying that a specific active feature represents "mentions of colonial powers").

Limitations and Future Work

While highly effective, SPLARE has a few limitations. It slightly underperformed on code-retrieval tasks, likely because general-purpose SAEs trained on natural language don't capture the specific structural logic of programming languages well. Furthermore, the method currently depends on the availability of high-quality, open-source SAEs (like Llama Scope), as training these from scratch remains prohibitively expensive for most researchers. Finally, LSR models are notoriously difficult to train from scratch, and SPLARE requires careful initialization using the SAE to converge effectively.

Future work will likely involve training domain-specific SAEs (e.g., for Code or Law) to close the gap in specialized fields, as well as exploring even wider SAEs to push the limits of retrieval accuracy.

Summary updated

BibTeX
@inproceedings{formal2026learning,
  author = {Thibault Formal and Maxime Louis and Hervé Déjean and Stéphane Clinchant},
  title = {{Learning Retrieval Models with Sparse Autoencoders}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=TuFjICawSc},
}
Figure