Context-Driven Interactive Query Simulations Based on Generative Large Language Models

Björn Engelmann, Timo Breuer, Jana Isabelle Friese, Philipp Schaer, Norbert FuhrarXiv 2023

TL;DR

This paper introduces a novel framework for simulating interactive search sessions by using Large Language Models (LLMs) to generate context-aware query reformulations. By incorporating topic background and user relevance feedback into the simulation loop, the authors demonstrate that context-driven models achieve higher fidelity to real-world behavior and provide a more nuanced evaluation of Information Retrieval (IR) systems than traditional static benchmarks.

What Problem Does This Paper Address?

Traditional IR evaluation typically relies on the Cranfield paradigm, which assumes a user issues a single query, scans a fixed number of results, and makes independent relevance judgments. In reality, search is an iterative, interactive process. Users learn from the results they see and reformulate their queries accordingly.

While simulating user interactions is a cost-effective alternative to expensive human studies, existing simulation models often lack "fidelity." They frequently ignore the user's evolving context—such as the specific details of their information need or the knowledge gained from previously viewed documents. This paper aims to bridge that gap by leveraging generative LLMs to create more realistic, context-driven query simulations.

Methods

The authors ground their work in the Complex Searcher Model, which breaks down a search session into distinct steps: examining a topic, generating/issuing queries, viewing result pages (SERPs), and deciding whether to click, read, or stop (see Figure 1).

Fig. 1: Focus of this work in the context of the Complex Searcher Model [24].

The core innovation lies in the Query Generation strategies:

  • LLM-based (GPT): They prompted GPT-3.5 to generate 100 keyword queries per topic. They compared a context-free version (GPT) against a context-rich version (GPT+) that included the full topic description and narrative in the prompt.
  • Doc2Query (D2Q) Variants: These methods generate queries based on terms extracted from documents seen during the simulation. The authors introduced D2Q+ (which uses relevance feedback by prioritizing terms from documents the simulated user marked as relevant) and D2Q++ (which adds topic-specific background information).

The simulation also compared two retrieval paradigms: lexical (BM25) and Transformer-based dense reranking (MonoT5). To round out the user model, they implemented various click models (ranging from "Perfect" to "Almost Random") and stopping criteria (static page limits vs. dynamic, time-based "give-up" heuristics).

Datasets

The experiments were conducted using two well-established TREC newswire collections:

  • Core17: The New York Times Annotated Corpus (~30k relevance labels).
  • Core18: The TREC Washington Post Corpus (~26k relevance labels).

A significant contribution of this work is the release of an entirely open experimental setup and the generated dataset of 40,000 queries used in the simulations.

Key Insights and Ideas

  • Context is King: Probabilistic LLM methods that utilize full topic descriptions (GPT+) significantly outperformed context-free variants. This suggests that the "narrative" of a search task is vital for generating high-quality reformulations.
  • User Behavior Trumps Model Choice: One of the most striking findings was that variations in user behavior (click and stop decisions) caused much greater variance in retrieval effectiveness than the choice between a sparse (BM25) and a dense (MonoT5) retrieval model.
  • The Feedback Loop Works: Integrating relevance feedback into the query generation process (as seen in the D2Q+ results) led to a clear and measurable increase in information gain over the course of a session.
  • Metric Sensitivity: Different evaluation measures tell different stories. For example, Session RBP (sRBP) was found to "punish" dynamic stopping behavior more severely than Session DCG (sDCG) because it discounts late-session results more aggressively.

Key Results

The authors first established a baseline for ad-hoc retrieval effectiveness, showing that MonoT5 generally outperforms BM25, though the gains diminish at higher reranking cutoffs (see Table 1).

Table 1: Adhoc retrieval effectiveness of BM25 and BM25+MonoT5 evaluated with the New York Times Annotated Corpus (Core17) and the TREC Wash- ington Post Corpus (Core18) that are part of the experimental setup (cf. 3.5). The cutoff values denote the number of documents reranked by MonoT5.

In the interactive simulations:

  • Probabilistic vs. Rule-based: Fully probabilistic LLM-generated queries (GPT and GPT+) showed a strong dominance in information gain compared to rule-based expansion methods.
  • Effort vs. Effect: When measuring the "cost" of interactions (time spent reading vs. gain), the impact of user behavior was even more pronounced, highlighting that a more effective retrieval model matters less if the user has a poor clicking or stopping strategy.

Limitations and Future Work

The authors acknowledge several areas for improvement:

  • Human Alignment: There is a need for empirical studies to estimate how closely these simulated LLM queries actually match real human search behavior.
  • Domain Specificity: The current study is limited to the newswire domain; results might differ for more specialized tasks like legal or medical search.
  • LLM Feedback: While feedback was integrated into the D2Q variants, a promising future direction is to integrate relevance feedback directly into the probabilistic LLM prompting process.
  • Collection Bias: The authors noted that existing test collections might be biased against dense retrieval models due to many unjudged documents at high ranks, suggesting a need for "simulation-friendly" datasets.

Summary updated

BibTeX
@misc{engelmann2023context,
  author = {Björn Engelmann and Timo Breuer and Jana Isabelle Friese and Philipp Schaer and Norbert Fuhr},
  title = {{Context-Driven Interactive Query Simulations Based on Generative Large Language Models}},
  year = {2023},
  eprint = {2312.09631},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.09631},
}
Figure