TL;DR
Rabtriever bridges the massive performance gap between slow cross-encoder rerankers and fast bi-encoder retrievers for complex, rationale-based search tasks. By leveraging a Joint-Embedding Predictive Architecture (JEPA) to distill a generative LLM reranker into a bi-encoder student, it delivers near-reranker accuracy with retriever-level inference speeds.
What Problem Does This Paper Address?
Traditional dense retrieval systems excel at matching explicit or implicit facts using semantic similarity (e.g., finding a document that contains a paraphrased fact). However, modern applications like Retrieval-Augmented Generation (RAG) increasingly demand rationale-based retrieval. This requires a system to comprehend the underlying reasoning, decision logic, or expert knowledge connecting a query to a document—such as matching a user's emotional state to an optimal counseling strategy.
To capture these complex relationships, state-of-the-art systems use cross-encoders (rerankers), which jointly process the query and document together. Unfortunately, cross-encoders suffer from quadratic computational complexity ($O((L_D + L_Q)^2)$) during online inference, making them prohibitively expensive for large-scale retrieval. Conversely, standard bi-encoders (retrievers) encode queries and documents independently, allowing documents to be indexed offline for blazing-fast search, but they lack the cross-attention capabilities necessary to handle complex rationales.
The authors tackle this trade-off, aiming to build a retriever that retains the speed of a bi-encoder while capturing the deep reasoning capabilities of a cross-encoder.
Methods
The authors introduce Rabtriever (Rationale-Based Retriever), which utilizes an on-policy distillation framework based on Yann LeCun's Joint-Embedding Predictive Architecture (JEPA) paradigm.
- The Teacher (Generative Reranker): They first fine-tune an LLM-based reranker (using the LaHoRe framework) that formats the task as a binary-choice question, placing the document before the query. The relevance score is derived from the log probabilities of the model generating "True" or "False".
- The Student (Rabtriever): The student is initialized from the teacher, but its core LLM parameters are frozen to preserve base knowledge.
- The JEPA Predictor: To simulate cross-encoding without performing it online, they insert a lightweight, trainable predictor (a 2-layer MLP and an element-wise multiplication operator) between the student's LLM layers and heads. This predictor takes the unconditioned query embedding ($e_Q$) and projects it into a new latent space, using the pre-computed document embedding ($e_D$) as a latent control vector ($z$).
- Dual-Objective Distillation Loss:
- Latent Space Matching (MSE): An energy-based mean-squared error loss minimizes the distance between the student's projected query embedding and the teacher's true cross-encoded embedding.
- Logit Alignment (Reverse KL): An auxiliary reverse KL divergence loss forces the student's output token distribution to match the teacher's sharp focus on the "True" and "False" tokens, preventing the student from scattering probability mass across irrelevant vocabulary.
During online inference, document embeddings are computed offline. The online system only needs to encode the query and pass it through the lightweight predictor alongside candidate document embeddings, keeping the online complexity linear relative to document length.
Datasets
The model was evaluated across both rationale-based and traditional fact-based benchmarks:
- ESConv: A multi-turn emotional support dialogue dataset where queries (dialogue history) are matched to annotated support strategies.
- PsyQA: A single-turn psychological counseling dataset focused on matching questions to specific counseling strategies.
- SayCan: A large-scale robotic manipulation dataset requiring the system to ground high-level natural language instructions into low-level robotic skills based on environmental constraints.
- MS MARCO & BEIR: Standard large-scale passage ranking and zero-shot evaluation benchmarks used to test the model's general text retrieval capabilities.
Key Insights and Ideas
- Exploiting Causal Attention: Because causal LLMs process text from left to right, placing the document before the query means the document's hidden states are completely unaffected by the query. Rabtriever exploits this property to pre-compute and cache document embeddings offline, even though it mimics a cross-encoder.
- The Power of Reverse KL: Standard forward KL divergence tends to average out distributions, resulting in blurry, low-confidence predictions. The authors show that reverse KL divergence forces the student to capture the highly distinct, bimodal ("True" vs "False") behavior of the teacher, which is vital for accurate ranking.
- JEPA for Text: While JEPA is predominantly used in computer vision to avoid predicting raw pixels, applying it here allows the model to predict representations in a latent embedding space rather than predicting raw text tokens, dramatically reducing computational overhead.
Key Results
- Retriever Speed, Reranker Accuracy: On the rationale-heavy ESConv dataset, Rabtriever achieved a 32.8% R@1, coming remarkably close to its cross-encoder teacher (34.4%) while obliterating standard bi-encoder baselines like RepLLaMA (17.4%).
- Massive Latency Reduction: Rabtriever reduced online response latency from 980ms (Teacher) to just 95ms, matching the speed of traditional retrievers.
- Strong Generalization: When tested on traditional fact-based retrieval (MS MARCO), Rabtriever achieved an MRR@10 of 49.30, outperforming all competitive bi-encoder baselines (such as GritLM and E5-Mistral).
Limitations and Future Work
- Teacher Boundedness: Rabtriever's performance ceiling is fundamentally dictated by the capability of the cross-encoder teacher used during distillation.
- Minor Predictor Overhead: Although highly optimized, the inclusion of the MLP predictor block means Rabtriever introduces a slight computational cost compared to completely interaction-free, pure bi-encoder architectures.
- Document Length Scalability: The rationale-based evaluations in this paper primarily involved relatively short document segments (dialogue strategies, robot action descriptions). The authors note that scaling this architecture to handle massive, long-document web search remains an open area for future exploration.
Summary updated