Learning Contextual Retrieval for Robust Conversational Search

Seung-Han Yang, Juntae Lee, Jihwan Bang, Kyuhong Shim, Min‐Soo Kim, Simyung Chang2025

Abstract

Conversational search requires systems to maintain context across multiple turns to accurately interpret user intent. Traditional approaches rely on explicit query rewriting—which is computationally expensive—or naive retrieval, which often fails to handle topic shifts. This paper introduces ContextualRetriever, a novel framework that internalizes conversational context within a Large Language Model (LLM) without the need for explicit rewriting at inference time. By aligning raw conversational embeddings with high-quality query rewrites through Intent-Guided Learning (IGL), ContextualRetriever achieves state-of-the-art accuracy and a 13x speedup over traditional rewriting pipelines.

1. Introduction

In standard information retrieval, queries are typically standalone and self-contained. However, in conversational search, user queries are often underspecified or dependent on previous turns. For example, a user asking "Where is EMNLP 2025?" followed by "How do I book a hotel nearby?" requires the retriever to understand that "nearby" refers to the EMNLP 2025 venue.

Existing solutions generally fall into two categories: Query Rewriting, where an LLM generates a self-contained query before retrieval, and Naive Retrieval, which processes the entire history as a single block of text. While rewriting is accurate, its autoregressive nature makes it too slow for real-time applications. Conversely, naive retrievers often suffer from "contextual drowning," where the current intent is lost amidst the noise of previous conversation turns. ContextualRetriever bridges this gap by delivering the precision of query rewriting with the latency of a direct retriever.

2. Methodology

ContextualRetriever treats retrieval as an inherent capability of the LLM, utilizing three core pillars to optimize performance:

2.1 Context-Aware Embedding Extraction

Rather than averaging embeddings across an entire conversation, the model processes the full history but specifically "pools" or extracts embeddings only from the tokens of the current query. This selective extraction forces the model to use the historical context to inform the representation of the current intent, preventing the signal from being diluted by irrelevant past information.

2.2 Intent-Guided Learning (IGL)

To train the model to "internalize" context, the authors employ a teacher-student alignment strategy. A powerful teacher model (GPT-4-Turbo) generates high-quality query rewrites offline. During training, a loss function is applied to minimize the distance between the retriever’s embeddings of the raw, messy conversation and the embeddings of the teacher's perfected rewrite. This allows the model to project conversational turns into a clean, formal vector space without performing text generation at runtime.

2.3 Preserving Generative Capabilities

To ensure that retrieval tuning does not degrade the model's fundamental language understanding, the training process includes a standard next-token prediction loss. This multi-task learning approach ensures the LLM retains its ability to handle linguistic nuances and complex reasoning.

3. Experimental Setup

The model was trained on the TopiOCQA dataset and evaluated across several rigorous benchmarks to test its robustness:

  • TopiOCQA: Challenges models with frequent and complex topic shifts.
  • QReCC: Focuses on resolving ambiguous expressions and coreference resolution.
  • TREC-CAsT (2019 & 2020): Features evolving user needs over long-form (9-10 turn) conversations.
  • ORConvQA: A large-scale dataset focused on consistent topic maintenance.

4. Results and Discussion

4.1 Retrieval Accuracy

ContextualRetriever established a new state-of-the-art on the TopiOCQA benchmark, achieving a Mean Reciprocal Rank (MRR) of 42.2%. This significantly outperforms the previous leading model, ChatRetriever, which achieved 38.1%.

4.2 Efficiency Gains

By eliminating the autoregressive decoding step required for query rewriting, ContextualRetriever offers a massive improvement in latency. Experimental results show a 13x speedup (80.5ms vs. 1100.5ms) compared to standard Rewrite-then-Retrieve pipelines, with zero additional computational overhead compared to naive LLM retrievers.

4.3 Robustness to Topic Drift

A critical metric introduced in the study is the Historical Interference Rate (HIR). This measures how often a retriever mistakenly fetches documents related to previous turns after a user has changed the subject. ContextualRetriever demonstrated a significantly lower HIR, indicating a superior ability to recognize when a user's intent has shifted to a new topic.

5. Conclusion

ContextualRetriever demonstrates that high-quality conversational search does not require expensive query rewriting. By aligning embedding spaces through Intent-Guided Learning and utilizing selective pooling, the framework achieves superior accuracy and industry-leading speed. While current implementations using LoRA (Low-Rank Adaptation) may lead to slight specialization, future work will focus on optimizing the framework for both single-turn and multi-turn scenarios, as well as exploring response-augmented retrieval loops.

Summary updated

BibTeX
@misc{yang2025learning,
  author = {Seung-Han Yang and Juntae Lee and Jihwan Bang and Kyuhong Shim and Min‐Soo Kim and Simyung Chang},
  title = {{Learning Contextual Retrieval for Robust Conversational Search}},
  year = {2025},
  doi = {10.18653/v1/2025.emnlp-main.602},
}
Figure