Xetrieval: Mechanistically Explaining Dense Retrieval

Zhixin Cai, Jun Bai, Yang Liu, Jiaqi Li, Yichi Zhang, Taichuan Li, Zhuofan Chen, Zixia Jia, Zilong Zheng, Wenge RongarXiv 2026

TL;DR

Dense retrieval models are highly effective but operate as black boxes, calculating relevance through opaque, high-dimensional embeddings. Xetrieval solves this by internalizing Large Language Model (LLM) reasoning directly into the embedding space and using Sparse Autoencoders (SAEs) to decompose vectors into human-interpretable features. This framework provides fast, mechanistic explanations for retrieval decisions and enables precise control over search behavior without the high cost of text generation.

What Problem Does This Paper Address?

Modern search engines frequently rely on Dense Retrieval (DR), where queries and documents are converted into high-dimensional vector embeddings, and relevance is calculated via simple vector similarity (like a dot product). While powerful, this process is entirely opaque.

Figure 1: Dense retrieval offers limited insight into the rationales underlying individual retrieval results.

When a system retrieves a specific document, it is difficult to explain why those two vectors matched. Existing explanation methods usually look at surface-level signals (like matching words or token alignments) or generate post-hoc text summaries. However, these approaches don't capture the actual latent factors driving vector similarity at the embedding level where the retrieval decision is made.

Methods

Xetrieval introduces a two-part framework to mechanistically explain dense retrieval:

  1. Reasoning Internalizer: Standard text embeddings often entangle semantic concepts, making them hard to break down. To fix this, the authors use an LLM to generate Chain-of-Thought (CoT) reasoning for documents across three distinct aspects: Summary (core semantics), Purpose (intent and utility), and QA (potential question-answering evidence). Instead of running an expensive LLM during actual search, Xetrieval trains a lightweight, single-layer Multi-Layer Perceptron (MLP) to mimic these reasoning-enhanced embeddings. This "bakes" the geometric structure of LLM reasoning directly into the vector space in a single forward pass.
  2. Mechanistic Explainer: Once the embeddings are enriched with reasoning, Xetrieval uses a TopK Sparse Autoencoder (SAE) to decompose the dense vectors into a massive dictionary of sparse, human-interpretable features. Each feature is automatically assigned a natural language description by an LLM based on the text snippets that activate it most.
Figure 2: Overview of the Xetrieval framework. The reasoning internalizer injects reasoning-oriented signals into sentence embeddings, while the mechanistic explainer decomposes these enriched embeddings into sparse, human-readable features for feature-level analysis and intervention on retrieval behavior.

By identifying which sparse features are simultaneously activated by both the query and the document's various reasoning "views," Xetrieval isolates the exact concepts responsible for the high relevance score.

Datasets

  • Training Corpus: The authors sampled 11,796 documents across diverse domains from StackExchange (e.g., politics, math, biology, codereview) to train the Reasoning Internalizer. They expanded this to 84,860 documents to train the Sparse Autoencoder.
  • Evaluation Benchmarks: Xetrieval was tested across 7 diverse retrieval benchmarks:
  • BRIGHT: A benchmark for reasoning-intensive retrieval.
  • NQ (Natural Questions): Open-domain QA.
  • MuTual: Multi-turn dialogue reasoning.
  • TREC-NEWS & Signal-1M: News and social media ad-hoc retrieval.
  • ArguAna: Argument retrieval.
  • Robust04: Classic robust ad-hoc retrieval.

Key Insights and Ideas

  • Reasoning Makes Embeddings Compressible: One of the paper's most interesting findings is that injecting LLM reasoning actually makes the embedding space more structured and easier to decompose. Enriched embeddings achieve lower reconstruction errors and activate more distinct sparse features than raw embeddings under identical sparsity constraints.
  • Geometry Over Generation: Instead of using autoregressive decoding to generate explanations at runtime—which scales linearly with corpus size and quickly becomes computationally prohibitive—Xetrieval proves you can achieve similar performance gains by altering the geometry of the vector space itself.
  • TopK SAEs Win the Trade-Off: Decomposing embeddings requires balancing reconstruction accuracy, retrieval performance, and "mono-semanticity" (how purely a feature represents a single concept). The authors evaluated multiple SAE architectures and found that TopK SAEs consistently offer the best trade-off.
Figure 3: SAEs comparison across sparsity levels (L0), measured by reconstruction error, mono-semanticity, and retrieval retention. The dashed line shows the original dense-embedding performance without SAE reconstruction.

Key Results

  • Maintained and Improved Accuracy: Across multiple embedding models (like e5-large and gte-base), the Reasoning Internalizer consistently outperformed unenhanced baselines, recovering a substantial portion of the accuracy gains achieved by explicit, computationally heavy LLM CoT reasoners.
  • Massive Efficiency Gains: While an explicit CoT reasoner's processing latency explodes as the number of documents grows, Xetrieval's latency remains virtually flat, completing the explanation process in fractions of a second.
Figure 6: Left side: Comparison of explanation time trends between the CoT reasoner and the Xetrieval on the Biology subset of BRIGHT. Right side: Compar- ison of retrieval performance trends between the base retriever, the retriever with CoT reasoner, and Xetrieval.
  • Causal Verification via Intervention: To prove these sparse features aren't just correlations, the authors performed "erase" and "keep-only" interventions on the vector components. Erasing Xetrieval-identified features caused sharp drops in document relevance scores. Furthermore, by scaling specific feature activations up or down globally (feature steering), they successfully controlled model ranking behavior on target tasks.

Limitations and Future Work

The authors note that Xetrieval's analysis is currently confined to the sentence embedding level (the final output layer of the embedding model). It does not probe the internal attention heads or circuits of the transformer model itself. Additionally, they rely on standard SAEs, noting that advanced interpretability architectures like Transcoders might offer even higher fidelity and granularity.

Future directions include extending Xetrieval to multi-modal and cross-lingual retrieval systems, as well as developing adaptive reasoning pathways.

Summary updated

BibTeX
@misc{cai2026xetrieval,
  author = {Zhixin Cai and Jun Bai and Yang Liu and Jiaqi Li and Yichi Zhang and Taichuan Li and Zhuofan Chen and Zixia Jia and Zilong Zheng and Wenge Rong},
  title = {{Xetrieval: Mechanistically Explaining Dense Retrieval}},
  year = {2026},
  eprint = {2605.29507},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.29507},
}
Figure