Learning Refined Document Representations for Dense Retrieval via Deliberate Thinking

Yifan Ji, Zhipeng Xu, Zhenghao Liu, Yukun Yan, Shi Yu, Yishan Li, Zhiyuan Liu, Yu Gu, Ge Yu, Maosong Sun

Introduction

Dense retrieval has become a cornerstone of modern Information Retrieval (IR), mapping queries and documents into a shared vector space to facilitate semantic matching. However, traditional "vanilla" dense retrievers typically employ a single-pass encoding strategy, compressing complex document semantics into a single vector. This "one-shot" approach often fails to capture the nuanced, multi-faceted meanings inherent in long or complex texts.

To address this, we introduce Debater (Deliberate Thinking based Dense Retriever). Inspired by the success of Chain-of-Thought (CoT) prompting in Large Language Models (LLMs), Debater enables models to "think" iteratively in a latent space before producing a final document embedding. This approach leverages the reasoning capabilities of LLMs for retrieval without the prohibitive latency of text generation.

Comparison between Vanilla Dense Retriever and the proposed Deliberate Thinking Based Dense Retriever.

Methodology

The Debater framework relies on two core technical innovations designed to refine document representations:

Chain-of-Deliberation (CoD)

Unlike standard encoders that produce an embedding in one step, Debater autoregressively generates a sequence of "thinking tokens" within its internal hidden states. Each step allows the model to iteratively refine its understanding, exploring different semantic views of the document. Crucially, this process occurs entirely in the latent vector space, avoiding the computational bottleneck of decoding discrete text tokens.

Self-Distillation (SD)

To ensure the final embedding captures the most relevant insights from the deliberation process, we employ a self-distillation mechanism. During training, a teacher-student framework identifies the "most informative" thinking step—defined as the step with the highest similarity to the query—and uses it to guide the final output token. This prevents the model from "forgetting" critical early-stage insights and ensures the final vector is a high-quality compression of the entire deliberation chain.

The architecture of Debater, illustrating the training process with contrastive learning and self-distillation, and the inference process using latent thinking tokens.

Experimental Setup

Debater was trained on the public portion of the E5 dataset, comprising approximately 1.5 million samples across 14 diverse tasks. Evaluation was conducted using the comprehensive BEIR benchmark, which includes 14 datasets covering domains such as finance (FiQA), bio-medicine (TREC-COVID), and fact-checking (FEVER).

Key Results and Discussion

Our experiments yielded several critical insights into the efficacy of deliberate thinking for retrieval:

  • Performance Gains: Debater achieved a 2% average improvement across the BEIR benchmark compared to state-of-the-art baselines. It showed particular strength in zero-shot scenarios and complex domains like TREC-COVID.
  • Parameter Efficiency: A 2.4B parameter Debater model achieved performance parity with 7B-scale models using standard encoding. This indicates that deliberate thinking allows smaller models to utilize their parameters more effectively, matching the retrieval quality of models nearly three times their size.
  • The Limits of Deliberation: Analysis of "thinking steps" revealed that performance generally improves as the number of steps increases, typically peaking between 8 and 12 steps. Beyond this point, performance plateaus or slightly declines, suggesting a point of diminishing returns where the model may begin to "overthink" the input.

Conclusion

Debater demonstrates that latent reasoning can significantly enhance the quality of document embeddings for dense retrieval. By moving beyond single-pass encoding to a multi-step deliberation process, we can achieve superior accuracy and parameter efficiency. Future research will explore adaptive deliberation depths to optimize computation and the application of similar techniques to query-side representation.

Summary updated

BibTeX
@inproceedings{ji2025learning,
  author = {Yifan Ji and Zhipeng Xu and Zhenghao Liu and Yukun Yan and Shi Yu and Yishan Li and Zhiyuan Liu and Yu Gu and Ge Yu and Maosong Sun},
  title = {{Learning Refined Document Representations for Dense Retrieval via Deliberate Thinking}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2025},
  url = {https://openreview.net/forum?id=QSxokmBPdX},
}
Figure