Revela: Dense Retriever Learning via Language Modeling
Fengyu Cai (TU Darmstadt), Tong Chen, Xinran Zhao, Sihao Chen, Hongming Zhang, Sherry Wu, Iryna Gurevych, Heinz Koeppl
International Conference on Learning Representations 2026 · Oral
Overview
Dense retrievers have become an indispensable component in modern language model applications, underpinning critical functionalities like retrieval-augmented generation (RAG), deep search, and agentic memory systems. These systems operate by encoding queries and documents into a high-dimensional vector space, subsequently retrieving top-k relevant documents based on similarity. While contrastive learning has emerged as a standard paradigm for training such retrievers, it grapples with a significant bottleneck: the prerequisite for high-quality, annotated, or synthetically generated query-document pairs. This process often demands labor-intensive hard negative mining and stringent quality control, rendering it prohibitively expensive and frequently infeasible, particularly in specialized domains such as code retrieval or complex settings requiring intricate reasoning.

Key moments
- 0:00 Introduction: The bottleneck of contrastive retriever learning
- 1:00 Revela's core idea: Retriever learning via next-token prediction
- 2:20 How Revela works: Retriever-weighted in-batch cross-chunk attention
- 3:40 Training dynamics: Retriever learns relevance patterns implicitly
- 6:50 Revela's strong performance across benchmarks and APIs
- 8:00 Key findings: Domain transferability and scaling benefits
- 10:00 Q&A: Batching scalability and hard negative strategies
Revela: Dense Retriever Learning via Language Modeling
Speakers: Fengyu Cai (TU Darmstadt); Tong Chen; Xinran Zhao; Sihao Chen; Hongming Zhang; Sherry Wu; Iryna Gurevych; Heinz Koeppl
Conference: ICLR 2026
YouTube: https://slideslive.com/39062246
Overview
Dense retrievers have become an indispensable component in modern language model applications, underpinning critical functionalities like retrieval-augmented generation (RAG), deep search, and agentic memory systems. These systems operate by encoding queries and documents into a high-dimensional vector space, subsequently retrieving top-k relevant documents based on similarity. While contrastive learning has emerged as a standard paradigm for training such retrievers, it grapples with a significant bottleneck: the prerequisite for high-quality, annotated, or synthetically generated query-document pairs. This process often demands labor-intensive hard negative mining and stringent quality control, rendering it prohibitively expensive and frequently infeasible, particularly in specialized domains such as code retrieval or complex settings requiring intricate reasoning.
The talk "Revela: Dense Retriever Learning via Language Modeling" by Fengyu Cai from TU Darmstadt, alongside collaborators from UW, CMU, Microsoft, and Tencent, introduces a novel approach that fundamentally shifts the paradigm of dense retriever training. Revela addresses the core challenge of learning retrieval signals without explicit query-document pairs by ingeniously connecting retriever learning with language modeling. Instead of relying on external annotations, Revela harnesses the inherent predictive power of language models, repurposing the objective of next-token prediction to guide retriever training.
This work is particularly significant as it proposes a method to co-train a language model and a retriever using a single, unified next-token prediction (NTP) loss. By enabling the retriever to implicitly learn relevance through its contribution to the language model's predictive accuracy, Revela bypasses the traditional constraints of supervised or self-supervised contrastive learning. The implications are profound, promising more efficient, scalable, and adaptable dense retriever training, especially for domains where data annotation is scarce or complex.
Background
▶ Watch: Introduction: The bottleneck of contrastive retriever learning (0:00)
The evolution of intelligent systems has increasingly relied on the ability to efficiently and accurately retrieve relevant information. Dense retrievers, typically implemented as bi-encoders, project queries and documents into a shared embedding space, where their similarity (e.g., cosine similarity) dictates relevance. This continuous vector space representation allows for semantic matching beyond keyword overlap, enabling more nuanced and context-aware retrieval.
Historically, training effective dense retrievers has largely centered on contrastive learning methods. In this paradigm, the retriever is trained to pull positive query-document pairs closer together in the embedding space while pushing negative pairs apart. This approach has yielded impressive results, but its practical deployment often encounters several hurdles. The most prominent is the dependency on large datasets of high-quality query-document pairs. Generating these pairs, especially for specialized or niche domains (e.g., medical texts, legal documents, source code), can be an arduous and costly endeavor. Furthermore, effective contrastive learning often necessitates sophisticated hard negative mining strategies—identifying challenging negative examples that are semantically similar to the query but incorrect—to prevent the model from learning trivial distinctions. The quality control over these negatives is paramount for robust retriever performance.
Recognizing these limitations, researchers have explored alternative self-supervised approaches. One notable prior work mentioned in the talk is REPLUG. REPLUG is a distillation-based method where a pre-trained language model (LM) remains frozen. The retriever's role is to align its score distribution with a fixed target, specifically the perplexity of a chunk conditional on other chunks, as determined by the frozen LM. While REPLUG demonstrates a step towards leveraging language modeling signals, it fundamentally operates on an alignment principle, where the retriever's objective is to mimic an existing LM's understanding of chunk relationships.
Revela distinguishes itself from REPLUG by advocating for a deeper integration. Instead of merely aligning to a frozen LM's perplexity, Revela proposes to co-train both the language model and the retriever. The core innovation lies in training the retriever by the next-token prediction objective, rather than merely aligning its scores to it. This direct participation in the LM's primary learning signal allows the retriever to learn relevance intrinsically from the task of predicting subsequent tokens, fostering a more symbiotic relationship between the two components and unlocking a novel source of learning signals for dense retrieval.
Key Findings
▶ Watch: How Revela works: Retriever-weighted in-batch cross-chunk attention (2:20)
Revela introduces a paradigm shift in dense retriever training by eliminating the need for explicit query-document pairs, leveraging a unified next-token prediction (NTP) loss from an integrated language model. The key findings presented in the talk underscore its efficiency, performance, scalability, and domain transferability:
- Elimination of Query-Document Pairs: Revela's most significant contribution is demonstrating that dense retrievers can be effectively trained solely through language modeling's next-token prediction objective, without requiring any annotated or synthetic query-document pairs. This dramatically reduces the data annotation burden, especially for specialized domains.
- Superior Efficiency: Revela achieves competitive or superior performance with significantly reduced computational resources. Compared to prior state-of-the-art self-supervised methods, Revela uses only 0.1% of the training data and approximately 10% of the training compute. For instance, training a Revela model on four A100 GPUs for one epoch takes about two days.
- Strong Performance Across Diverse Benchmarks:
- On CoIR (Code Retrieval), Revela 3B surpasses supervised models like E5-Mistral-7B (which is twice its size) and commercial APIs such as Voyage-code-2. It also outperforms prior NTP-based methods like REPLUG at both 1B and 3B scales.
- On BRIGHT (Reasoning-intensive Benchmark), Revela 3B beats three commercial API models from OpenAI, Cohere, and Voyage, and matches the performance of the E5 pre-trained model with considerably less data and compute.
- On BEIR, Revela demonstrates strong performance, matching or exceeding contrastive learning baselines like Contriever in in-domain evaluations.
- Demonstrated Scaling Laws: The performance of Revela models scales positively with both the size of the reference language model backbone and the batch size. Larger language models provide greater benefits, particularly in specialized domains like code retrieval, and bigger batch sizes (which effectively provide more in-batch negatives) lead to improved performance on both CoIR and BEIR.
- Robust Domain Transferability: Revela exhibits excellent transferability across different domains. When trained on a specific domain (e.g., Wikipedia or code) and evaluated out-of-domain, Revela significantly outperforms contrastive learning baselines like Contriever. For example, when trained on code data and evaluated on BEIR, Revela outperformed Contriever by more than seven points. This indicates that the NTP signal learned by Revela is highly generalizable.
These findings collectively highlight Revela as a highly promising and efficient approach for dense retriever learning, capable of achieving state-of-the-art results without the traditional data and compute overheads associated with contrastive learning.
Technical Deep Dive
▶ Watch: Training dynamics: Retriever learns relevance patterns implicitly (3:40)
Revela's core innovation lies in its unique method of co-training a language model (LM) and a dense retriever, leveraging a single next-token prediction (NTP) loss. This setup allows the retriever to learn relevance implicitly by assisting the LM in its predictive task.
The process begins with a batch of raw text chunks, devoid of any explicit queries, labels, or document pairings. Each chunk is first processed by the dense retriever, which encodes it into a high-dimensional vector space. From these embeddings, a pairwise similarity matrix is computed for all chunks within the current batch. This matrix quantifies the relevance between any two chunks in the batch, as perceived by the retriever.
Simultaneously, these identical chunks are fed into the language model. What sets Revela apart is how the LM processes these chunks. Within each Transformer layer, Revela employs two parallel streams:
- Standard Self-Attention Stream (E): This stream performs conventional self-attention within each chunk, capturing token-level dependencies based on its own prefix.
- Retriever-Weighted Attention Stream (H): This is where the retriever's signal is integrated. In this stream, each chunk not only attends to its own prefix but also to other chunks in the same batch. This is termed cross-chunk attention.
The crucial mechanism is that this cross-chunk attention is weighted by the similarity scores provided by the retriever. If the retriever determines that chunk DJ is highly relevant to chunk DI (i.e., their similarity score is high), then more information will flow from DJ to DI during the cross-chunk attention calculation. Conversely, less relevant chunks contribute less. The final next-token prediction is then based on the representation derived from this H stream.
The entire system, encompassing both the language model and the retriever, is optimized using a single NTP loss. The beauty of this design is that the gradient from this unified loss back-propagates through the retriever-weighted attention mechanism to both the language model and the retriever. Consequently, the retriever implicitly learns to adjust its similarity scores such that it emphasizes chunks that are most helpful in lowering the LM's next-token prediction loss. This means the retriever learns to identify and highlight truly relevant chunks, as their inclusion (weighted by similarity) improves the LM's ability to predict subsequent tokens.
Delving deeper into the architecture, within the H stream for a document DI, there are two distinct attention calculations:
- Self-Attention within
DI(S): This captures internal dependencies withinDI, corresponding to the bottom-right part of a full attention map. - Cross-Chunk Attention to
DJ(BIJ): This captures dependencies fromDIto other chunksDJin the batch, corresponding to the bottom-left part of the attention map.
A critical design choice to prevent "pollution" of representations is how the query, key, and value are derived for cross-chunk attention. Specifically, the query for the cross-chunk attention comes from the H stream (the chunk currently being processed), while the key and value come from the E stream (the standard self-attention representations of the other chunks). This ensures that the representations of other chunks are not prematurely influenced or "polluted" by the retriever-weighted attention during their own processing, maintaining a clean source of information for the H stream to draw upon.
Finally, the output of the self-attention S within DI is fused with the retriever-weighted sum of the cross-chunk output BIJ. This fusion step allows for controlled contribution from internal chunk context and external batch context, culminating in a comprehensive representation that models chunk-level dependencies using the objective of next-token prediction over other chunks. This integrated design effectively transforms the LM's predictive task into a powerful, unsupervised signal for training dense retrievers.
Experimental Setup & Results
▶ Watch: Key findings: Domain transferability and scaling benefits (8:00)
Revela's efficacy was rigorously evaluated across a range of benchmarks, showcasing its performance, efficiency, and generalization capabilities.
Data Configurations:
- For general-domain retrieval, Wikipedia was used to construct datasets for the BEIR and BRIGHT benchmarks.
- For the specialized domain of code retrieval, Stack Overflow data was utilized for the CoIR benchmark.
- Text was pre-processed by chunking into complete sentences, with a maximum length of 120 words per chunk.
Model and Training Details:
- The reference language model (LM) backbone used was Llama-32-1B.
- The retriever component was scaled from 0.1B to 3B parameters, allowing for an analysis of scaling laws.
- Training was conducted on four A100 GPUs. A single epoch of training typically took around two days.
Efficiency:
A standout result was Revela's remarkable efficiency. Compared to prior state-of-the-art self-supervised learning methods, Revela required only 0.1% of the training data and approximately 10% of the training compute. This significant reduction in resource consumption makes Revela a highly attractive option for resource-constrained environments or rapid prototyping.
Performance on CoIR (Code Retrieval):
- Scaling Law: Experiments confirmed a positive scaling law, where larger model backbones for the retriever consistently led to better performance.
- Comparison with REPLUG: Revela significantly outperformed REPLUG, another NTP-based method, at both 1B and 3B parameter scales.
- Comparison with Supervised Models and Commercial APIs: Revela 3B demonstrated exceptional performance, beating the supervised E5-Mistral-7B model (which has double the parameters) and commercial APIs like Voyage-code-2.
Performance on BRIGHT (Reasoning-Intensive Benchmark):
- Revela 3B showcased strong capabilities on this challenging benchmark, surpassing three commercial API models from OpenAI, Cohere, and Voyage.
- Furthermore, Revela 3B matched the performance of the pre-trained E5 model, again achieving this with substantially less data and compute.
Further Analysis and Scaling Factors:
- Reference LM Size: For specialized domains like code retrieval (CoIR), using larger reference language models for the backbone provided additional performance benefits.
- Batch Size: Increasing the batch size led to improved performance on both CoIR and BEIR. This finding aligns with observations in contrastive learning, where a larger batch size provides more in-batch negatives, enriching the learning signal. The talk acknowledged current limitations, stating that with four A100 GPUs, the batch size was set to 16, and further scaling is an area of ongoing work due to context size constraints.
Domain Transferability:
To assess generalization, Revela was compared against Contriever, a self-supervised baseline based on contrastive learning, at the same scale and using the same data. Models were trained on either Wikipedia-only or code-only datasets and then evaluated on both BEIR and CoIR.
- In-domain Evaluation: Revela matched or outperformed Contriever. Notably, on CoIR, Revela surpassed Contriever by over six points.
- Out-of-domain Evaluation: Revela demonstrated superior transfer capabilities. For instance, when trained on code data and evaluated on BEIR, Revela outperformed Contriever by more than seven points. This highlights the robustness and generalizability of the NTP-based learning signal across different data distributions.
In summary, the experimental results unequivocally position Revela as a highly efficient and effective method for dense retriever learning, capable of achieving state-of-the-art results across diverse benchmarks while drastically cutting down on data and computational requirements.
Practical Implications
▶ Watch: Q&A: Batching scalability and hard negative strategies (10:00)
Revela's novel approach to dense retriever learning carries significant practical implications for various stakeholders in the AI/ML ecosystem, from individual practitioners to large infrastructure teams.
For model builders and researchers, Revela offers a compelling alternative to traditional contrastive learning, especially when dealing with data scarcity or the high cost of annotation. The ability to train effective dense retrievers without explicit query-document pairs drastically lowers the barrier to entry for developing retrieval systems in specialized or emerging domains. This means that researchers can rapidly prototype and iterate on retrieval models for tasks like legal document search, scientific literature review, or proprietary codebase navigation, where acquiring labeled data is often impractical. The inherent self-supervision derived from language modeling's NTP objective streamlines the data preparation pipeline, allowing for more focus on model architecture and fine-tuning.
Infrastructure teams and deployers will find Revela's efficiency metrics particularly appealing. The reported use of only 0.1% of training data and 10% of compute compared to prior SOTA self-supervised methods translates directly into reduced operational costs and faster development cycles. Training on four A100 GPUs for roughly two days per epoch for a 3B parameter retriever is a testament to its resource efficiency. This allows organizations to deploy powerful retrieval systems using less expensive hardware or to scale their training efforts to larger models or more frequent updates within existing compute budgets. The reduced data dependency also simplifies data governance and privacy concerns, as less sensitive data may need to be explicitly annotated or shared.
However, it's also important to consider the tradeoffs and limitations. While Revela demonstrates excellent performance and efficiency, the Q&A session highlighted a current limitation regarding batch size scalability. The presenter noted that the current implementation on four A100 GPUs was limited to a batch size of 16, and further scaling is an active area of research to improve efficiency. This implies that while the method is efficient in terms of overall data/compute, optimizing for very large batch sizes—which were shown to improve performance—might still present engineering challenges, especially for those with limited access to extremely large GPU clusters. The current strategy of putting chunks from the same passage into a batch to create "natural hard negatives" is a clever workaround but might not fully replace the strategic selection of global hard negatives in all scenarios.
Despite these considerations, Revela's strong domain transferability is a major advantage. It suggests that models trained on general corpora could be more readily adapted to new, unseen domains with minimal or no additional domain-specific data. This reduces the need for extensive domain adaptation or re-training, accelerating deployment and broadening the applicability of pre-trained retrievers. Overall, Revela represents a significant step towards democratizing access to high-performing dense retrieval systems, making them more accessible, efficient, and adaptable for a wider array of real-world applications.
Key Takeaways
- No Query-Document Pairs Needed: Revela eliminates the need for explicit query-document pairs, a major bottleneck for contrastive learning, by deriving retriever learning signals directly from language modeling.
- Unified Next-Token Prediction (NTP) Loss: Both the language model and the dense retriever are co-trained using a single NTP loss, where the retriever learns relevance by helping the LM predict subsequent tokens.
- Retriever-Weighted Cross-Chunk Attention: The core mechanism involves the retriever weighting in-batch cross-chunk attention within the LM, allowing information flow from relevant chunks to reduce NTP loss.
- High Efficiency and Performance: Revela achieves state-of-the-art performance on benchmarks like CoIR and BRIGHT, often outperforming larger supervised models and commercial APIs, while using significantly less data (0.1%) and compute (10%) than prior self-supervised methods.
- Scalability and Transferability: Performance scales with larger reference LMs and batch sizes. Revela also demonstrates robust domain transferability, outperforming contrastive baselines in out-of-domain evaluations.
- New Territory for Retriever Learning: This work opens a new direction for retriever learning, fostering a deeper integration with language modeling and potentially simplifying the development of retrieval systems in data-scarce or specialized domains.
About the Speaker(s)
The primary speaker for "Revela: Dense Retriever Learning via Language Modeling" was Fengyu Cai, affiliated with TU Darmstadt. The work was a collaborative effort involving several other researchers from various institutions: Tong Chen, Xinran Zhao, Sihao Chen, Hongming Zhang, Sherry Wu, Iryna Gurevych, and Heinz Koeppl, with affiliations including the University of Washington (UW), Carnegie Mellon University (CMU), Microsoft, and Tencent. This diverse set of collaborators underscores the interdisciplinary nature of the research, bridging expertise across natural language processing, machine learning systems, and academic research. The presentation highlighted the team's focus on addressing fundamental challenges in dense retriever training and exploring novel connections between language modeling and retrieval.
Reviews
→ Top-rated talks at International Conference on Learning Representations 2026
All talks from International Conference on Learning Representations 2026