Manuscript Offprint
arXiv:2610.09724Towards Explaining Query Expansion Performance in Information Retrieval
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
SOURAV SAHA, Indian Statistical Institute, India
ADITYA DUTTA, IIT Bombay, India
SOUMAJIT PRAMANIK, IIT Bhilai, India
MANDAR MITRA, Indian Statistical Institute, India
Query Expansion (QE) techniques have long been widely used in Information Retrieval (IR) to address the vocabulary mismatch problem. They remain relevant in modern retrieval systems, including those based on large language models (LLMs). However, no single QE method consistently outperforms others across all queries. This work seeks to explain the variation in QE performance through two complementary perspectives. The first is the concept of an Ideal Expanded Query (IEQ)—a hypothetical query that maximizes retrieval effectiveness with a downstream BM25 retrieval model. The second is a separability perspective, which quantifies how distinctly relevant and non-relevant documents are scored for a given expanded query using Cohen's (d). We develop a separability measure and practical formulations to approximate the IEQ and investigate how these factors relate to retrieval effectiveness. Extensive experiments on the TREC Robust collection, TREC DL 2019–2022 passage collections, and TREC DL 2019–2020 document collections reveal several interesting patterns. In particular, we find that expanded queries that are closer to the ideal expanded query tend to achieve higher retrieval effectiveness. We further show that the separability of relevant and non-relevant documents provides a complementary perspective for understanding QE performance.
CCS Concepts: • Information systems → Information retrieval; Query reformulation.
Additional Key Words and Phrases: Explainable information retrieval, post-hoc interpretability, model debugging, query expansion
ACM Reference Format:
Sourav Saha, Aditya Dutta, Soumajit Pramanik, and Mandar Mitra. 2026. Towards Explaining Query Expansion Performance in Information Retrieval. 1, 1 (October 2026), 27 pages. https://doi.org/10.1145/nnnnnnn.nnnnnnn
1 Introduction
The primary motivation behind Query Expansion (QE) techniques is to address one of the fundamental problems in Information Retrieval (IR), namely the vocabulary mismatch problem, where searchers and authors of relevant content use different terms to refer to the same concept. The primary objective of QE is to enrich query representations by adding related terms in order to reduce the chances of vocabulary mismatch, and thereby improve retrieval effectiveness. Numerous successful automatic QE techniques have been proposed over the years [7]. Research on automatic QE remains popular even after the emergence of neural ranking methods, semantic search, and the use of large language models (LLMs) in IR [25].
Authors' Contact Information: Sourav Saha, Indian Statistical Institute, Kolkata, India, sourav.saha_r@isical.ac.in; Aditya Dutta, IIT Bombay, Bombay, India, aditya.dutta@iitb.ac.in; Soumajit Pramanik, IIT Bhilai, Chhattisgarh, India, soumajit.pramanik@gmail.com; Mandar Mitra, Indian Statistical Institute, Kolkata, India, mandar@isical.ac.in.
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.
© 2026 Copyright held by the owner/author(s). Publication rights licensed to ACM.
Sourav Saha, Aditya Dutta, Soumajit Pramanik, and Mandar Mitra
Because QE methods generally yield significant improvements on average (across a set of queries), they are widely applied in IR. It is well-known, however, that in unsupervised settings, e.g., pseudo relevance feedback (PRF), these approaches exhibit highly variable performance across queries: for a non-trivial number of queries, automatic expansion results in degraded performance compared to the original query. Further, two QE methods that are about equally effective on average, may have very different performance characteristics across individual queries. This variability raises an important question: what makes one expanded query more effective than another? Prior work has largely focused on improving QE effectiveness, while relatively little attention has been paid to understanding the variations across QE methods and queries.
In this study, our goal is to propose a post hoc approach for analysing QE methods in order to better understand why QE methods behave differently for different queries. More precisely, we aim to uncover interpretable properties that can systematically account for variations in the effectiveness of a single method across queries, and of different QE methods on the same query. Our explanations are intended for IR researchers and practitioners, rather than for end users of IR systems. The proposed approach is specifically targeted at a researcher / developer who is trying to understand in intuitive terms why a QE method fails (or does well) on a particular query.
Traditional QE methods typically involve two components: (i) term selection – determining which terms should be added to the query, and (ii) term weighting – assigning numeric importance scores to the selected terms that are then used by a retrieval model to compute query-document similarity scores. Thus, an IR researcher may use the following hypothesis as a basis for analysing QE methods.
A QE method that performs well does so because it (i) selects good terms, and (ii) assigns appropriate weights to the terms. Conversely, a proposed QE algorithm that turns out to be ineffective is likely to have failed because (i) it fails to identify useful expansion terms for inclusion, and/or (ii) it assigns inappropriate weights to expansion terms.
We conceptualise ideal expanded queries as a means to jointly formalise the notion of “good” expansion terms, and “good” expansion weights. Given an information need, an ideal expanded query (IEQ) is a query vector that would yield (for a given retrieval model) perfect, or near perfect, Average Precision (AP). We then study how closely different expanded queries resemble this ideal, and how such similarity correlates with their observed retrieval performance.
Our notion of an ideal query is rooted in traditional scoring functions that are in turn based on keyword matching. At first glance, this may appear to be a weakness, since these models have mostly been superseded by neural retrieval models that use more sophisticated scoring functions that are better at capturing context-aware semantic matches. We emphasise, however, that this choice is valid: it is standard (indeed, recommended) practice to use traditional methods and models (that are generally better understood) to explain more complex ones. Thus, our approach is entirely consistent with an approach widely used in the explainability literature.
In addition to the IEQ perspective, we also consider another related perspective: we view retrieval as a discrimination problem between relevant and non-relevant documents. We hypothesise that an expanded query (EQ) performs well when it produces a strong statistical separation between their BM25 scores. While this relationship is intuitively obvious, we empirically investigate the extent to which separability is associated with retrieval effectiveness.
To summarise, this study examines the following research questions.
RQ1 - For a given query Q, consider different expanded versions (such as those generated by different QE methods), and the ideal expanded query. For these EQs, how strongly does similarity to the IEQ correlate with retrieval effectiveness? On a related note, if an EQ is moved toward or away from the ideal query, how does its retrieval effectiveness vary?
RQ2 - How strongly does an EQ's ability to separate the scores of relevant and non-relevant documents correlate with its effectiveness?
RQ3 - Can similarity to the ideal query account for the variability of a QE technique across queries? Specifically, can it provide additional information when automatic QE techniques fail to improve retrieval effectiveness?
To the best of our knowledge, this work is the first to consider the performance of expanded queries from this perspective. We conducted extensive experiments on the Robust, TREC DL 2019, and TREC DL 2020 document collections, as well as the TREC DL 2019, 2020, 2021 and 2022 passage collections. The results suggest that all the questions above have positive answers.
We emphasise that our framework provides actionable explanations in the following sense. When a QE method M fails for a particular query Q, our framework helps a researcher to identify whether Q is generally hard for automatic QE approaches. Next, it helps to identify specific expansion terms that M fails to select, or assigns inappropriate weights to. This provides a concrete starting point for exploring how M's shortcomings may be addressed.
The remainder of this paper is organized as follows. Section 2 reviews related work. Section 3 presents our proposed framework for analyzing and explaining QE methods. Section 4 describes the experimental setup, Section 5 presents our experimental results, and Section 6 provides an analysis of our experimental findings. Finally, Section 7 discusses limitations and directions for future work. To aid reproducibility, we release our code and results to the community at https://github.com/souravsaha/py-qe-terrier.
2.1 Query expansion
Query expansion (QE) has been extensively studied by the IR community, in the context of applications spanning from traditional keyword-based document search to modern question-answering systems. As mentioned in the Introduction, traditional statistical IR models addressed the vocabulary mismatch problem by selecting additional terms to augment the original query, and assigning appropriate weights to the selected terms. Consequently, a large body of research focused on improving QE effectiveness through better term selection and weighting strategies. Representative approaches include Rocchio [32] and its unsupervised variant, blind or pseudo relevance feedback (PRF), the relevance-based language models RM1 [22] and RM3 [20], and Bose-Einstein weighting (Bo1 [1]). A comprehensive survey of traditional QE techniques is provided in [7].
With the advent of deep learning, various neural representations have been incorporated into QE methods. Early neural approaches leveraged static word embeddings, such as Word2Vec [29], for selecting expansion terms [11, 33]. Subsequently, researchers explored contextualized representations derived from transformer-based models. For example, CEQE [30] integrates BERT-based contextual embeddings into the RM3 framework to improve expansion term selection and enrich query representations, resulting in substantial improvements in retrieval effectiveness.
Sourav Saha, Aditya Dutta, Soumajit Pramanik, and Mandar Mitra
LLMs have also emerged as powerful sources of external knowledge for query expansion. Several approaches [17, 21, 40, 43] generate synthetic pseudo-relevant documents by prompting LLMs and leverage them for query reformulation. Researchers have also explored alternative prompting strategies [19] and different forms of expansion content, such as entities and summaries [10]. More recently, ThinkQE [23] proposed an iterative refinement framework that progressively improves expansion terms through multi-step reasoning.
Despite these advances in LLM based expansion generation, the weighting of expansion terms often remains heuristic. Common strategies include simple concatenation of generated content with the original query or repetition of query terms before concatenation [43]. In contrast, Jedidi and Lin [21] demonstrated that classical weighting schemes, such as Rocchio and RM3, remain highly effective for weighting LLM-based expanded queries. A recent survey [25] provides a comprehensive overview of modern QE techniques and their applications across domains such as web search, medical IR, conversational search, and code search.
2.2 Explainable IR
Modern IR systems have greatly advanced the state of the art in retrieval effectiveness, but they rely increasingly on complex neural architectures, often making them black-boxes. Consequently, there has been growing interest in understanding and explaining their behavior. Researchers have proposed both post-hoc explanation techniques [37, 39] and retrieval models that are interpretable by design [24]. In this context, two surveys [2, 36] and tutorials [3, 4] provide comprehensive overviews of explainable IR and establish key terminology in this area. A toolkit that implements common approaches to explainable IR, as well as methods for evaluating them, is described in [35].
One important dimension of explainability concerns the intended audience of the explanation. Explanations may be designed for end users to improve transparency and trust in the retrieval system. Alternatively, explanations may target IR system developers, helping them understand the sources of effectiveness gains or performance differences among retrieval models. For example, Roy et al. [34] focus on developer-oriented explanations, while the analysis in [38] helps IR practitioners understand that the language modeling based scoring method tends to favor shorter documents when Jelinek-Mercer smoothing [42] is used instead of Dirichlet smoothing [42]. Such diagnostic analyses are particularly important for modern neural retrieval systems, whose behavior is often difficult to interpret. Our work in this study falls within the second category, in that our explanations are targeted at IR researchers. We believe our approach provides researchers with tools that help diagnose, compare, and improve both traditional and modern QE techniques.
2.3 Query Expansion applied to Explainable IR and vice versa
Despite a growing body of literature on Explainable IR, relatively little attention has been paid to understanding when and why QE methods improve retrieval effectiveness. The Axiomatic Framework [12–14] may be regarded as one of the earliest approaches to Explainable IR in general – it formalises intuitive ideas about when IR systems (term-weighting models, in particular) work well, and helps to explain the drawbacks of certain term-weighting models. Clinchant and Gaussier [8] extended this framework to pseudo relevance feedback-based QE techniques. Their work helps to explain why certain QE models are less effective than others on the whole; such explanations are classified as global explanations. In contrast, our objective is to provide local explanations that help understand why a QE method works well or poorly for a specific query.
Even though research in the area of Explainable IR has not focused much on analysing QE models and methods, QE techniques have been used quite often as a component within explanatory frameworks. One common approach used by the Explainability community involves interpreting complex models as a conglomerate of simple models, each of which Manuscript submitted to ACM behaves like a local approximation of the complex model within a restricted region [31]. This idea has been applied to neural retrieval models as follows [26, 39]. Neural rankers are believed to perform well because they identify semantic matches (rather than simple lexical overlap) between queries and documents. Given a query Q, if a classical retrieval model (like BM25), operating on , an expanded version of Q, produces a ranking that is similar to that produced by a neural ranker M from Q, we may hypothesise that M performs semantic matching by implicitly exploiting these specific expansion terms and concepts during document ranking. In such approaches, the quality of the explanation is measured by the rank correlation between the rankings produced by the two models, with higher correlation indicating a more faithful explanation.
3 Proposed framework
In this section, we present our framework for explaining the performance of QE methods. The framework consists of three main components: (1) constructing an ideal expanded query, (Section 3.1), (2) measuring the similarity between and an expanded query (Section 3.2), and (3) quantifying how well or an expanded query distinguishes between top-ranked relevant and non-relevant documents (Section 3.3).
Formally, let be a user query, be the document collection, and be the vocabulary of . Our first component retrospectively constructs as a query representation constructed from terms in . Our objective is that should achieve near-optimal retrieval effectiveness, i.e., AP close to 1.0. As explained in Section 1, our expectation is that would contain all and only the “good” terms with “optimal” weights.
The second component addresses RQ1 by looking at the correlation between the proximity of to and its retrieval effectiveness. The underlying intuition is that if contains a larger proportion of good terms with appropriate weights, it will be more similar to , and should yield better retrieval effectiveness.
RQ2 is addressed by the third component, which evaluates an EQ based on how well it separates top-ranked relevant and non-relevant documents. Our intuition is that an effective EQ should assign more distinct scores to relevant and non-relevant documents than an ineffective EQ, i.e., if achieves better retrieval effectiveness than , then is expected to induce greater separation between the scores of relevant and non-relevant documents. To quantify this effect, we employ Cohen's (d) as a measure of separability; Section 3.3 describes this in more detail.
3.1 Construction of
An ideal expanded query ( ) is a conceptual construct. It can be approximated empirically using complete relevance information for a given query. We explore two approaches that leverage available relevance judgments to construct approximate instantiations of : (1) a Dynamic Feedback Optimization [6] (DFO) method that iteratively adjusts term weights to directly maximize average precision (AP), and (2) a Least-Squares (LS) surrogate objective that encourages high retrieval scores for relevant documents. These two instantiations are denoted as and respectively. To the best of our knowledge, constructing ideal queries using a least-squares surrogate objective represents a novel perspective that has not been explored in prior work.
3.1.1 Dynamic Feedback Optimization (DFO) [6]. DFO was originally proposed as a method for tuning the term weights of an EQ using training data (relevance judgments on a training collection). In this work, we use DFO as a component of a post hoc explanation method. Thus, in order to construct , we directly use the full relevance information for the target collection itself, rather than a training corpus, to tune the weights of the expansion terms.
Sourav Saha, Aditya Dutta, Soumajit Pramanik, and Mandar Mitra
We begin with , a query vector constructed by applying Rocchio Relevance Feedback. We then iteratively refine the expansion term weights with the objective of maximizing AP as follows.
I. Truncate to the top r positively weighted terms.
II. Sort the terms according to their final weights .
III. For each magnitude ,
• For each term in , considered in decreasing order by weight :
- Update .
– Retain the updated weight only if it improves AP; otherwise, revert to the previous value.
We retain only the top r terms with the highest weights in Step I because DFO involves multiple retrieval iterations. Choosing a moderate value for r (e.g., 200) ensures that the method completes within a reasonable amount of time. The magnitude vector in Step III is adopted directly from [6].
3.1.2 Least-Squares Surrogate. More generally, we could regard AP as a function of term weights. Constructing is equivalent to searching for points in the space of possible term weights where is maximum. From this perspective, DFO represents one particular search strategy. Directly optimising AP (using gradient descent, for example) is not practical, because does not have a convenient, differentiable form. We therefore seek a differentiable surrogate objective that encourages separation between relevant and non-relevant documents. Let document be represented as a vector:
where denotes the BM25 weight of the term in the document . Let denote the term-document matrix for the collection ( ), and the -th row of corresponds to .
For a query vector , the product is the vector of BM25 scores for all documents in . We define a target vector using relevance labels as follows:
where is a constant. We then seek to obtain as the solution to the following optimization problem:
where is a regularization parameter. The solution to the above [18, Chapter 3] is given by
(I is the identity matrix). An important property of this formulation is that the resulting AP is invariant to the specific positive value chosen for (see Appendix A for details). For typical text collections, however, is too large for the calculation of to be practicable. Thus, in applications, the optimisation problem in Equation 2 is solved using gradient descent methods.
Both Q and D are represented in a shared term space. This idea is also central to learned sparse retrieval methods such as SPLADE [15, 16]. However, unlike these approaches, our goal is not to learn sparse query and document representations for retrieval, but to construct and analyze ideal query representations using full relevance information.
3.2 Relation between an EQ's similarity to and its retrieval effectiveness
Having constructed approximate IEQs and , we next attempt to answer RQ1. Given an EQ , we measure how closely it aligns with , and analyze the correlation between this similarity and the retrieval effectiveness (AP score) achieved by . We use the standard cosine similarity formula to measure the similarity between and :
For a particular user query Q, let
denote a set of EQs generated for by different QE algorithms and/or parameter settings. For each variant , we compute both its similarity score and its retrieval effectiveness . We then compute the correlation between the similarity scores and corresponding AP values:
where corr denotes either Pearson’s or Spearman’s rank correlation. This yields one correlation value per query. Finally, we report the mean correlation across all queries:
3.3 How well can an EQ separate relevant and non-relevant documents?
Next, we develop our second perspective on understanding the performance differences among EQs generated by different QE methods. We quantify how well an EQ separates relevant documents from non-relevant ones. Section 3.3.1, we quantify the difference in the distribution of BM25 scores (with respect to a given ) across the relevant and (judged) non-relevant document sets for this query.
3.3.1 Separability of BM25 scores. Following the notation introduced in Section 3.1.2, we use and to denote the term-document matrices for the set of all judged relevant and non-relevant documents, respectively, for a user query . For a given corresponding to , the BM25 scores of these two sets of documents are given by the vectors and respectively. Intuition suggests that an effective EQ should assign substantially higher scores to relevant documents than to non-relevant documents. Conversely, an EQ that achieves a greater separation between the score distributions and is expected to be more similar to .
A simple measure of the separation between and would be , where and denote the means of and , respectively. Of course, this difference has to be viewed in the context of the variability of the scores within and . This naturally leads to our choice of Cohen's [9] as a measure of the separation between the distribution of scores in and . Thus, we define Separability( ) as
where and denote the numbers of relevant and non-relevant documents, respectively, and and denote the variances of their BM25 scores.
This is precisely the starting point of Rocchio’s derivation of his relevance feedback algorithm.
Sourav Saha, Aditya Dutta, Soumajit Pramanik, and Mandar Mitra
Table 1. Datasets used in our experiments. The genre column denotes the collection type. 'avg.|Q|' and 'avg.#rel' denote average query length and average number of relevant documents, respectively. The '#topics' column reports the total number of topics, while the values in parentheses indicate the number of topics in the individual query sets for the corresponding years.
| Collection | genre | #docs | #topics | avg.|Q| | avg.#rel |
|---|---|---|---|---|---|
| TREC Robust | news | 528,155 | 249 | 2.62 | 68.36 |
| DL19-20 Passage | web pages | 8,841,823 | 97 (43 + 54) | 5.76 | 42.96 |
| DL19-20 Document | web pages | 3,213,835 | 88 (43 + 45) | 5.92 | 95.05 |
| DL21-22 Passage | web pages | 138,364,198 | 129 (53 + 76) | 7.43 | 396.64 |
3.3.2 Comparing the separability score of a Query Expansion to its similarity to . As in Section 3.2, we consider a set of k EQs generated for a user query Q using different QE algorithms and/or parameter settings, and analyze the correlation between Separability( ) measured using Equation 7 and AP across these k variants. Finally, we report the average of these correlations across all queries.
4 Experimental setup
This section describes the experimental setup, including the query expansion algorithms, datasets, and evaluation settings used in our experiments.
4.1 Datasets
We use the following adhoc IR test collections: TREC Robust, MS MARCO v1 passage and document collections evaluated using the TREC Deep Learning 2019 and 2020 queries, and the MS MARCO v2 passage collection evaluated using the TREC Deep Learning 2021 and 2022 queries. For brevity, we merge the topics and relevance judgments from the TREC DL 2019 and 2020 evaluations and refer to the resulting benchmarks as DL19-20 Passage and DL19-20 Document for the MS MARCO v1 passage and document collections, respectively. Similarly, we combine the TREC DL 2021 and 2022 evaluations for the MS MARCO v2 passage collection and refer to the resulting benchmark as DL21-22 Passage. Dataset statistics are summarised in Table 1.
4.2 QE approaches explored
We evaluate five different QE methods, covering statistical, neural and LLM-based approaches. Traditional QE techniques include (i) RM3 [20], (ii) KL-divergence-based QE [1], and (iii) Bo1 [1]. To complement these classical methods, we also include (iv) CEQE [30], a BERT-based contextualized query expansion technique, and (v) the feedback model for HyDE [21], an LLM-based method. For HyDE, we consider two term-weighting variants: (a) the Rocchio-based weighting scheme, which was reported to be the most effective by Jedidi and Lin [21] (HyDE-Rocchio), and (b) a simple averaging scheme that combines the query vector and feedback-document vector (HyDE).
Parameter settings. Most QE methods have two important parameters: , the number of pseudo-relevant documents used for feedback, and the number of expansion terms added to the original query. For all methods, we vary over , and the number of expansion terms , in each case selecting the top- ranked expansion terms for inclusion in the query. This allows us to generate a diverse set of expanded queries that differ both Manuscript submitted to ACM in the source documents used for the expansion and in the selected expansion terms. Other method-specific parameter settings are summarised below.
For RM3 and CEQE the mixing parameter is set to 0.6. We use the max-pooling variant of CEQE in our experiments. For further details, see Naseri et al. [30]. Following [21], we generate eight synthetic documents, each containing up to 512 tokens, using the Qwen-2.5-7B-Instruct [41] model. For HyDE-Rocchio, we set and , with fixed at 0.
The above parameter settings for RM3, CEQE, KL-divergence and Bo1 result in 20 EQs (four options for and five possible values for ) for each method, for a total of 80 EQ variants. For the two HyDE-based approaches, the number of synthetic feedback documents is fixed, and only the number of expansion terms is varied, resulting in 10 additional EQs. In the experiments and analysis discussed in subsequent sections, we consider these 90 EQ variants for each benchmark query.
4.3 Other experimental details
4.3.1 Retrieval setup. All indexing and retrieval experiments are conducted using PyTerrier [27]. We use BM25 as the downstream retrieval model with its default parameter settings, and . The Porter stemmer is used during indexing; expansion terms generated with neural models are also stemmed before the final retrieval.
4.3.2 Ideal Expanded Query Construction with DFO. To construct the initial Rocchio query vector ( ), we use , , . (multiplicative factors for the weights of terms from the original query, positive feedback documents, and negative feedback documents, respectively). Because each iteration of DFO requires full retrieval followed by evaluation for the query, it is computationally a very expensive process. Therefore, we include only the best 200 terms in , and terminate the iterative search when the AP for the current query reaches or crosses 0.9.
4.3.3 Ideal Query Construction with LS. is obtained as the solution to the optimisation problem stated in Equation (2), but instead of using the full term-document matrix X, we consider , which consists of only the explicitly judged documents. We use gradient descent for 5000 epochs, and employ a cosine annealing learning rate schedule with a maximum learning rate of 0.1, decaying to a minimum value of 0. We try two values for the regularization parameter: and (see Appendix C for details).
The dimensionality of corresponds to the vocabulary size of the judged documents, resulting in a dense query representation containing both positive and negative term weights. To evaluate the retrieval effectiveness of , i.e., when computing AP, we retain only the top 1000 positively weighted terms. However, when computing cosine similarity between expanded queries and , we use the full query vector without truncation. Our intuition is that the negative weights provide additional information about non-relevant terms and therefore contribute meaningfully to the similarity estimation. More details are discussed in Section 6.
5 Results
We now turn to the experimental results corresponding to the three components of the framework presented in Section 3: (1) constructing an ideal expanded query , (2) studying the correlation between and 's effectiveness, and (3) looking at the correlation between 's effectiveness and how well it separates relevant and non-relevant documents.
Sourav Saha, Aditya Dutta, Soumajit Pramanik, and Mandar Mitra
5.1 Retrieval effectiveness of
Table 2 reports the MAP achieved by the ideal queries constructed using the DFO and LS methods (Sections 3.1.1 and 3.1.2). For context, we also report the performance of , the initial query vector constructed with full relevance judgements. Unsurprisingly, the retrospectively tuned ideal queries yield very high MAP, with the best scores on the Robust04 and DL 19-20 Passage collections being near-perfect. As discussed in Section 4.3, the numbers of expansion terms in and are different. For completeness, therefore, we also report the MAP achieved when is truncated to the top 200 positively weighted terms. We observe that the two optimisation methods are, broadly speaking, equally effective on all the collections, except DL21-22 Passage, where DFO appears to yield better ideal queries than LS.
Table 2. Retrieval effectiveness (MAP) achieved by the ideal queries generated using DFO and LS, on the Robust, DL19-20 Passage, DL19-20 Document, and DL21-22 Passage collections. For reference, the initial Rocchio vector generated using full relevance assessments is also included. The highest MAP obtained for each collection is shown in bold. Superscript denotes statistically significant difference with DFO, using t-test ().
| Method | Robust | DL19-20 Passage | DL19-20 Document | DL21-22 Passage |
|---|---|---|---|---|
| 0.6945 | 0.8096 | 0.6916 | 0.5383 | |
| 0.8652 | 0.9240 | 0.8752 | 0.8372 | |
| 0.8747 | ||||
| Truncated to 200 terms | ||||
| 0.8757 | 0.9601 | 0.8241 | 0.7081 | |
| 0.8186 | 0.9485 | 0.8558 | 0.7280 | |

Fig. 1. Per-query scatter plots of AP versus the number of relevant documents for three different ideal-query formulations on the Robust collection. The Spearman rank correlation coefficient between these two variables is reported in each plot.
Figure 1 illustrates the relationship between AP and the number of relevant documents for the three different sets of ideal queries on the Robust collection. From the figure, it is clear that many ideal queries generated by the LS method achieve a perfect AP of 1.0. For DFO, there is an analogous dense band around AP=0.9, since the DFO algorithm stops iterating when AP reaches 0.9 or above (Section 4.3.2).
A second pattern that emerges is that ideal queries tend to achieve lower AP values when the number of relevant documents is large. The Spearman correlation between AP and the size of the relevant set across queries shown in Manuscript submitted to ACM the figure indicate a strong negative correlation between these two attributes. One possible explanation is that a large set of relevant documents often encompasses multiple aspects or sub-topics, making it more challenging for a single query representation to rank all relevant documents highly. Similar trends are observed across the other collections; corresponding figures are provided in Appendix B. We observe that DL21-22 Passage collection contains a large number of judged relevant and non-relevant documents, and that the LS-based ideal queries achieve relatively low AP for these queries. Further figures are provided in Appendix B.
Interestingly, while the DFO- and LS-based constructions both achieve high MAP, they produce substantially different versions of . Table 3 reports the average per-query overlap in expansion terms between the ideal queries (only the top 200 expansion terms of are considered in this analysis). Among the two LS variants, both the term overlap and cosine similarity are high. In contrast, the term overlap between DFO and LS is moderate, except for the DL21-22 Passage collection, where the overlap is higher, ranging from to . This observation suggests that the ideal expanded query is not unique; there may exist multiple distinct EQs that yield near-perfect retrieval performance. Consequently, should be viewed not as a single optimal query, but rather as a family of highly effective query representations. In future work, we would like to consider somewhat modified versions of our research questions that consider a query's proximity to any member of this family of 'ideal' representations, rather than to a single, fixed ideal query.
Table 3. Average term overlap between ideal queries, computed across all queries. For each ideal query variant, only the top 200 positively weighted terms are considered. Cosine similarity between the ideal queries is reported in square brackets.
| Dataset | Robust | DL19-20 Passage | DL19-20 Document | DL21-22 Passage |
|---|---|---|---|---|
| 99.34 [0.5659] | 115.71 [0.6477] | 89.33 [0.5315] | 130.33 [0.6416] | |
| 131.55 [0.6767] | 133.52 [0.7755] | 100.99 [0.6027] | 153.67 [0.7421] | |
| 155.19 [0.8659] | 162.65 [0.9103] | 176.42 [0.9336] | 164.12 [0.8847] |
5.2 Correlation between Sim(, ) and AP()
To investigate our first research question RQ1 – for an EQ, how strongly does its similarity to the IEQ correlate with its retrieval effectiveness? – we generate a diverse set of synthetic EQs in a controlled manner as described below, and measure the correlation between their AP values and their similarity with (equivalently, distance from) the ideal query.
The discussion in the next section (5.3) considers a large number of EQs produced by different existing QE approaches. However, the AP values for these ‘real’ EQs tend to vary within a relatively small range (Table 9). For a more comprehensive analysis, we need a more diverse set of EQs that spans a wider range of retrieval effectiveness, and includes poor, moderate, and highly effective expansions. In practice, obtaining this level of variation from existing QE methods may be difficult. To overcome this limitation, we generate synthetic expanded queries that exhibit a broader spectrum of retrieval effectiveness. We take the ideal query vector, randomly choose a plane passing through this vector, and incrementally rotate the vector along this plane. We then examine how AP varies as the vector is moved progressively away from the original ideal query vector.
For this set of experiments, we use as the ideal query. We rotate the IEQ vector by , where . The vector obtained at each of these 100 steps corresponds to a synthetic EQ. For retrieval, we
We observe that, when the IEQ vector is rotated by , the resulting vector yields AP=0 for all the queries across all the collections, confirming that the generated set spans a wide range of AP values.
Sourav Saha, Aditya Dutta, Soumajit Pramanik, and Mandar Mitra
retain only the top 200 positively weighted terms of each synthetic query and compute its AP. We also note the cosine similarity between each synthetic EQ vector and the original IEQ vector. Finally, we measure the correlation for the set of (similarity, AP) pairs thus obtained.
Table 4. Mean Pearson and Spearman correlation coefficients between the similarity of synthetically generated expanded queries to the ideal query , and their retrieval effectiveness, across all collections.
| Dataset | Pearson | Spearman |
|---|---|---|
| Robust | 0.6783 | 0.4497 |
| DL19-20 Passage | 0.8823 | 0.8349 |
| DL19-20 Document | 0.7749 | 0.5311 |
| DL21-22 Passage | 0.8834 | 0.8512 |

Fig. 2. Box plot of Pearson and Spearman correlations between the similarity of synthetically generated expanded queries to the ideal query and their retrieval effectiveness across all collections.
Table 4 reports the mean correlation between and . The consistently high values across different collections indicate a strong relationship between these two attributes. These findings provide strong evidence in support of an affirmative answer to RQ1, suggesting that proximity to the ideal query is highly predictive of retrieval performance.
Figure 2 presents more details about the distribution of the Pearson and Spearman correlation coefficients across queries. On the Robust and DL19-20 Document collections, a few queries exhibit negative Spearman correlations. A closer examination reveals that, for most of these queries, AP remains nearly unchanged as the query is rotated up to approximately , after which it sometimes increases slightly. Figure 3 shows such an example from the Robust dataset (query 336: "black bear attacks"). The figure suggests that many ideal queries lie within the region. Additional investigation of these anomalous queries is left for future work.

Fig. 3. Y-axis shows the AP variation and the X-axis plots the angle from the ideal query vector for the synthetically generated versions of the query ‘black bear attacks’ (Robust qid: 336).
5.3 Correlation for ‘real’ expanded queries
Having established the relationship between Sim(Q_exp, Q_IEQ) and AP(Q_exp) in a controlled synthetic setting, we next measure the correlation between these two quantities for real EQs generated by existing QE methods. We follow the method described in Section 3.2 to compute mean Pearson ( ) and Spearman ( ) correlation coefficients. Table 5 reports and across all datasets, for three different ideal query formulations. Reasonable correlation (0.40 or higher ) is observed in all cases, suggesting once again that there is a positive relation between proximity to the ideal query and retrieval performance (although this correlation is not as strong as it was for synthetic queries). From a closer look at Table 5, the following patterns emerge.
-
When LS-based ideal queries are used, the correlation coefficients for the Robust and DL21-22 Passage collections are noticeably higher. For the DL19-20 collections (both document and passage), the values are more moderate.
-
For the passage collections, changing from 0.1 to 1.0 has a noticeable impact on and ; however, the choice of does not seem to matter much for the document collections.
-
When using the DFO-based ideal queries, good correlation is observed for the DL21-22 Passage collection, but the correlation is moderate (0.4–0.5) for all the other collections. DL21-22 Passage is also the only collection where DFO-based ideal queries yield better correlation than LS-based ideal queries; on all other collections LS-based ideal queries consistently yield stronger correlations.
5.4 Correlation between separability and performance
We next examine the results pertaining to RQ2 — how strongly does an EQ’s performance correlate with its ability to separate relevant and non-relevant documents? As discussed in Section 3.3, we consider separability in terms of BM25 scores (Equation 7). Only judged relevant and non-relevant documents are considered in these experiments, and separability is measured using Cohen’s d.
Correlations of a similar magnitude have been reported in related IR studies, like Query Performance Prediction [5, 28], although the underlying prediction tasks and experimental settings differ from those considered here.
Sourav Saha, Aditya Dutta, Soumajit Pramanik, and Mandar Mitra
Table 5. Mean Pearson and Spearman correlation coefficients between the similarity of real expanded queries to different ideal query formulations and the AP of the expanded queries on the Robust, DL19-20 Passage, DL19-20 Document, and DL21-22 Passage collections.
| Method | Robust | DL19-20 Passage | DL19-20 Document | DL21-22 Passage | ||||
|---|---|---|---|---|---|---|---|---|
| 0.4366 | 0.4185 | 0.4762 | 0.4488 | 0.4245 | 0.4030 | 0.6774 | 0.5413 | |
| 0.5997 | 0.5770 | 0.4110 | 0.4097 | 0.4260 | 0.4390 | 0.4916 | 0.4360 | |
| 0.6053 | 0.5716 | 0.5078 | 0.4965 | 0.4680 | 0.4685 | 0.6395 | 0.5459 | |
Table 6. Mean correlation (Pearson’s and Spearman’s ) between the Separability measure and actual AP across all expanded queries on the Robust, DL19-20 Passage, DL19-20 Document, and DL21-22 Passage collections.
| Dataset | Pearson’s | Spearman’s |
|---|---|---|
| Robust | 0.7849 | 0.7359 |
| DL19-20 Passage | 0.6504 | 0.6417 |
| DL19-20 Document | 0.6503 | 0.6241 |
| DL21-22 Passage | 0.7024 | 0.5971 |
Table 6 reports the mean correlation between separability and AP of the expanded queries. We observe that the correlation between AP and the proposed separability measures is generally much stronger than its correlation with the retrieval effectiveness of real EQs (reported in the preceding section). The strongest correlation () is obtained on the Robust collection. Thus, RQ2 also seems to have a positive answer, i.e., if the scores of relevant and non-relevant documents are well-separated for an EQ, it is likely to achieve good retrieval effectiveness. This relationship is intuitive, as achieving high AP generally requires relevant documents to be ranked ahead of non-relevant documents, which can also result in greater separation between their scores. However, the correlation is not perfect, indicating that high AP does not necessarily imply high separability. In particular, some EQs may achieve good AP despite exhibiting relatively low separation between the scores of relevant and non-relevant documents. A more detailed analysis of these cases, including the concordance pairs, is left for future work.
5.5 Explaining poor performance of different queries
Thus far, we have focused mainly on explaining the difference in performance across EQs generated for a single query by different QE algorithms and different parameter settings for these algorithms. We now extend our experiments to consider performance variation across different queries. We are particularly interested in queries for which automatic QE techniques are generally ineffective. As before, we investigate whether this variation (or generally poor performance) can be explained by the overall proximity of their respective EQs to the respective ideal queries.
Intuitively, a query may be considered hard for QE techniques if a diverse set of QE methods consistently fails to improve its retrieval effectiveness. We may consider two aggregation strategies to represent the general effectiveness of QE techniques for this query: average performance and maximum performance, as defined in the equation below. The maximum performance setting captures the intuition that a query is hard when even its best performing expanded
Appendix D provides supplementary context for the results reported here.
variant achieves low retrieval effectiveness, indicating that automatic QE approaches struggle to improve the query.
Here, , denote the AP values achieved by the expanded variants of an initial query . We use the same aggregation methods to compute an overall proximity of the set of EQs to the ideal query .
Finally, for each aggregation strategy , we compute the Pearson correlation between AP and similarity:
where denotes the total number of queries in a collection.
Table 7. Pearson correlation between aggregate AP and similarity for expanded queries. Three different ideal query representations are considered. For each collection, correlations are reported for the average and maximum similarity. The highest correlation within each collection and aggregation setting is shown in bold.
| Method | Robust | DL19-20 Passage | DL19-20 Document | DL21-22 Passage | ||||
|---|---|---|---|---|---|---|---|---|
| Avg. | Max. | Avg. | Max. | Avg. | Max. | Avg. | Max. | |
| 0.3790 | 0.4608 | 0.6770 | 0.6693 | 0.4146 | 0.3556 | 0.5378 | ||
| 0.7393 | 0.7150 | 0.7379 | 0.6344 | 0.4547 | 0.4507 | 0.3059 | 0.2698 | |
| 0.6915 | 0.6400 | 0.4647 | 0.3811 | 0.3617 | ||||
Table 7 reports the correlation between aggregated AP and similarity to three ideal query representations across all collections. We observe moderate to strong correlations across all collections when using , except for the DL21-22 Passage collection, where the correlations are relatively weak. The correlations obtained using are slightly lower. Overall, these findings provide evidence supporting a positive answer to RQ3: similarity to the ideal query helps explain why automatic QE techniques are less effective for some queries. Queries whose expanded variants are close to the ideal query tend to achieve higher retrieval effectiveness, whereas those whose expanded variants lie farther from it tend to achieve lower effectiveness.
6 Discussion: explaining variations in the similarity-effectiveness relationship
Although our framework suggests a positive relationship between similarity to the ideal query and retrieval effectiveness on average, the observed correlations are moderate for some collections and queries. In this section, we investigate the reasons for these weaker correlations.
To facilitate this analysis, we introduce a restricted evaluation setting. For any query, we limit the evaluation corpus to only the documents that have been explicitly judged for that query. Thus, given a query, we exhaustively compute BM25 scores for all judged documents, and rank only these documents. We define Restricted AP as the Average Precision computed over this restricted ranking.
Sourav Saha, Aditya Dutta, Soumajit Pramanik, and Mandar Mitra
Computing standard, collection-wide AP, on the other hand, requires ranking documents from the entire collection. Top-k retrieval algorithms generally used by IR systems like Lucene make use of optimisations that assume that a document's score cannot decrease as more query terms are considered (https://issues.apache.org/jira/browse/LUCENE-7996). This assumption does not hold when query terms can have negative weights. Thus, efficiently computing collection-wide AP requires truncating synthetic queries to their top-k positively weighted terms. This step discards negatively weighted terms (“bad” terms that occur preferentially in non-relevant documents, and are therefore detrimental to effectiveness) from query vectors, and prevents us from accounting for such bad terms when calculating .
When computing Restricted AP, however, we work with a comparatively small set of judged documents. This makes it feasible to compute a document ranking in the presence of negative term weights, as is the case for and synthetic queries derived from it.
Below, we first show that Restricted AP is a good approximation of collection-wide AP. We then use this setting to reexamine how retrieval effectiveness changes as queries move away from the ideal query, and to explain why correlations observed for real EQs are sometimes weaker than those obtained in the synthetic-query setting.
6.1 AP vs. Restricted AP of
To validate whether Restricted AP serves as a reliable proxy for standard AP, we compute both metrics for each of the 90 QE configurations. For every query, we then measure the correlation between the resulting AP and Restricted AP across all configurations, and average these correlations over all queries. Table 8 reports the results. We observe consistently high Pearson and Spearman correlations across all collections, indicating that Restricted AP preserves the relative effectiveness of QE methods while substantially reducing the computational cost of evaluation. We therefore use Restricted AP in place of AP in the following analyses to better understand the similarity-effectiveness relationship.
Table 8. Correlation (Pearson's and Spearman ) between restricted AP and actual AP across all expanded variants of a query, averaged over all queries in a collection.
| Dataset | ||
|---|---|---|
| Robust | 0.9689 | 0.9448 |
| DL19-20 Passage | 0.8560 | 0.8263 |
| DL19-20 Document | 0.8252 | 0.8203 |
| DL21-22 Passage | 0.7774 | 0.6767 |
6.2 Restricted AP vs. Similarity to
Using Restricted AP, we now revisit the question of how retrieval effectiveness changes as EQs move away from the ideal query. Recall that, in Section 5.2, we constructed synthetic queries by progressively rotating the IEQ vector in a randomly chosen plane passing through it. In this section, for a given query , we consider each expanded version in turn, and progressively rotate through a full in the plane defined by and , instead of a randomly chosen plane. At 500 regularly spaced points along this trajectory, we take the rotated version of as our synthetic
Standard AP can be readily calculated for these ‘real’ queries since they are generated by existing QE methods that do not assign negative weights. Manuscript submitted to ACM

Fig. 4. Trajectories along the great circles constructed from and each , along which synthetic queries are generated.
query vector, and compute its similarity to together with the corresponding Restricted AP. Figure 4 illustrates this process using an ideal query and various different expanded queries.
Observations. Figure 5 illustrates the relationship between Restricted AP and the angular distance of the synthetic queries from the ideal query (equivalent to ) for the DL19-20 Passage and Document collections. For a clean visual representation, we draw a single curve for each of the six QE algorithms used in our experiments (Section 4.2), by averaging across all queries in the collection, as well as across all parameter variations for that algorithm. It is clear that synthetic queries that are more similar to the ideal query consistently achieve higher Restricted AP, while queries farther from exhibit lower effectiveness. A similar phenomenon is observed for the other two collections. This observation is consistent with the strong correlations reported in Section 5.2.
A closer look at Figure 5 also provides insights into why the correlations observed for real EQs are moderate for some collections (Table 5). In the synthetic setting, queries are generated along a single great-circle trajectory originating from . Along such a trajectory, the weights of terms in the synthetic queries deviate systematically from their weights in . The relationship between similarity and Restricted AP is thus highly structured, resulting in strong correlations. In contrast, real EQs correspond to points lying on different trajectories (great circles) emanating from . Although a positive relationship between similarity and effectiveness holds along each individual trajectory, the shape and strength of this relationship may differ across trajectories. Consequently, when EQs from different trajectories are analyzed together (as in Section 5.3), these trajectory-specific variations weaken overall correlation, even when the within-trajectory relation remains strong. This explains the relatively weaker correlations observed for real EQs on the DL19-20 Document collection (Table 5).
Figure 6 demonstrates this problem for a single query (qid 730539 of the DL19-20 Document collection: what is chronometer who invented it). The figure contains 90 lines, each of which shows the variation of Restricted AP as one ideal version of this query ( for ) is rotated through a great circle formed by the ideal query itself, and
Note that evaluating collection-wide AP for the set of 500 synthetic queries generated along each great-circle trajectory would be computationally very expensive, as it would require retrieving and ranking documents from the entire collection.
Sourav Saha, Aditya Dutta, Soumajit Pramanik, and Mandar Mitra

(a) DL19-20 Passage

(b) DL19-20 Document
• RM3 • Bo1 • KL • CEQE • HyDE • HyDE-Rocchio
Fig. 5. Variation in Restricted AP along great circles originating from ( ) and passing through 500 synthetic queries generated from expanded queries produced by RM3, Bo1, KL, CEQE, HyDE, and HyDE-Rocchio.

Fig. 6. Query-specific variation (only for qid 730539 of the DL19-20 Document collection) of Restricted AP along 90 great circles (originating from ( ) and passing through 90 real expanded versions, generated using RM3, Bo1, KL, CEQE, HyDE, and HyDE-Rocchio methods, at different parameter settings).
one of the 90 real expanded variants of the original query. The circled points on the lines correspond to the real EQs themselves. As mentioned above, the within-trajectory relation remains strong for each of the 90 lines; however, across trajectories, there are many pairs of circled points (i.e., real EQs) such that both the angular deviation and Restricted AP are higher for than for . This naturally leads to low values of the correlation coefficients (for this query, and ).
6.3 Angular spread of expanded versions of a query
Another pattern emerges from Figure 6: in terms of horizontal spread, the circled points (corresponding to real EQs) span a very narrow region. In other words, the angular distances of the EQs from the IEQ lie within a small range (in Manuscript submitted to ACM
Figure 6, the actual range is 80.5°-83.5°). This narrow angular spread suggests an explanation for the weak or even negative correlations observed for some queries. Table 9 presents this data aggregated over all queries in each collection. We look at the angular distances between the IEQ and each of the 90 real EQs generated for a query, and calculate the range (i.e., the difference between the maximum and minimum) of angular deviations from the IEQ across these 90 EQs. These observed ranges are then averaged across all queries in each collection to obtain the mean for that collection. An analogous exercise is done to obtain mean , the average of the ranges of AP values achieved by the 90 expanded versions of each query. The aggregated results are shown in Table 9, while Figures 7 and 8 visualise the distributions of AP values and angular distances from the ideal query ( with ) across all expanded queries in the DL19-20 Passage collection.
It is clear from the table that for any given query, all the real EQs generally lie within a relatively narrow angular region, while their retrieval effectiveness can vary more substantially. On average, the angular spread across all 90 variants for a query can be as low as 3.75° (for the Robust04 collection, when deviations are measured from ); at best, it is 11.15° (for the DL19-20 Passage collection, when deviations are measured from ). In contrast, the Average ranges from 0.1750 to as much as 0.2853, indicating a broader variation in AP across expanded variants of a query. For context, we note that the possible angular spread could, in principle, be as much as 90°, for the common case where all vectors are confined to the first quadrant; similarly, for a query could be at most 1.
Table 9. Average and for all collections.
| Method | Robust | DL19-20 Passage | DL19-20 Document | DL21-22 Passage |
|---|---|---|---|---|
| 10.02° | 11.15° | 9.86° | 9.49° | |
| 3.75° | 5.42° | 4.04° | 4.92° | |
| 5.69° | 7.30° | 4.58° | 7.93° | |
| Average | 0.2215 | 0.2853 | 0.2624 | 0.1750 |
Thus, even though similarity to is broadly associated with higher retrieval effectiveness, the estimated correlations are highly sensitive to small numerical variations. In contrast, the synthetic query experiments explored a much broader range of angular distances from , producing substantial variation in Restricted AP, and yielding a clearer correlation signal. While it is very common to use cosine similarity to quantify the proximity between vectors, these observations suggest that it would be worthwhile to look for more discriminatory measures that better separate different EQs. We plan to explore this direction in future work.
7 Limitations and future work
This article presents a post hoc framework for understanding the performance of QE techniques in general, and of specific expanded queries in particular. By constructing an ideal query for any given query, we formalised the notion of good expansion terms and appropriate expansion weights. We evaluated two concrete approaches for constructing ideal queries using complete relevance assessments. Our extensive experimental results demonstrate that the similarity between an EQ and the ideal query is positively correlated with average precision. Through synthetic-query analysis, we showed that retrieval effectiveness consistently decreases as an EQ moves away from the ideal query. We also confirmed that effective EQs clearly separate relevant from non-relevant documents. Furthermore, across different queries, proximity to the ideal query explains why automatic QE techniques fail on some topics.
Sourav Saha, Aditya Dutta, Soumajit Pramanik, and Mandar Mitra

Fig. 7. Per-query variation in AP across different expanded queries (RM3, Bo1, KL, CEQE, HyDE and HyDE-Rocchio) for the benchmark queries in the DL19–20 Passage collection.

Fig. 8. Per-query variation in angular distance from across different expanded queries (RM3, Bo1, KL, CEQE, HyDE and HyDE-Rocchio) for the benchmark queries in the DL19–20 Passage collection.
Sourav Saha, Aditya Dutta, Soumajit Pramanik, and Mandar Mitra
Thus, the ideal query serves as an effective reference point for performance analysis of QE methods. It provides IR researchers and practitioners working on new QE techniques with definitive answers to questions like: what useful terms is the QE method failing to identify? are the selected terms likely to lead to query drift? These answers, in turn, form a basis for exploring how the proposed QE approach may be improved (even in unsupervised settings like pseudo relevance feedback).
Nevertheless, we observe that the correlation between an EQ's similarity to an IEQ and its AP may sometimes be only moderate. This may be attributed to two main factors.
-
The ideal expanded query is not necessarily unique. There may exist multiple, well-separated EQs that yield near-perfect retrieval performance. Any one of these ideal queries would serve as a useful target for guiding the development of practical QE methods. Efficiently exploring the space of possible query vectors to identify regions that correspond to ideal queries might constitute an interesting research direction. It would also be interesting to characterise queries that have multiple such ‘ideal regions’, as opposed to queries that have only a single ideal region.
-
When measuring the similarity between real EQs and an ideal query, the traditional cosine formula produces a range of numerical values that is small, especially compared to the range of AP values corresponding to the same set of EQs. As a result, small random variations may substantially diminish the computed correlation coefficients. We propose to explore other similarity measures that induce a wider and more robust separation among the different expanded variants of a query.
Because our current framework relies on complete relevance assessments to construct ideal queries, another important next step is learning ideal-query representations from training data in a supervised or semi-supervised manner. Such learned representations could guide the design of next-generation query expansion algorithms and provide a principled objective for optimizing retrieval models.
References
[1] Gianni Amati and Cornelis Joost Van Rijsbergen. 2002. Probabilistic models of information retrieval based on measuring the divergence from randomness. ACM Trans. Inf. Syst. 20, 4 (Oct. 2002), 357–389. doi:10.1145/582415.582416
[2] Avishek Anand, Lijun Lyu, Maximilian Idahl, Yumeng Wang, Jonas Wallat, and Zijian Zhang. 2022. Explainable Information Retrieval: A Survey. ArXiv (2022). https://arxiv.org/abs/2211.02405
[3] Avishek Anand, Sourav Saha, and V. Venktesh. 2025. Explainable Information Retrieval. In Advances in Information Retrieval - 47th European Conference on IR Research, ECIR 2025, Claudia Hauff, Craig Macdonald, Dietmar Jannach, Gabriella Kazai, Franco Maria Nardini, Fabio Pinelli, Fabrizio Silvestri, and Nicola Tonellotto (Eds.). Springer Nature Switzerland, Cham, 254–261.
[4] Avishek Anand, Procheta Sen, Sourav Saha, Manisha Verma, and Mandar Mitra. 2023. Explainable Information Retrieval. In Proceedings of the 46th International ACM SIGIR Conference on Research and Development in Information Retrieval (Taipei, Taiwan) (SIGIR '23). Association for Computing Machinery, New York, NY, USA, 3448–3451. doi:10.1145/3539618.3594249
[5] Negar Arabzadeh, Maryam Khodabakhsh, and Ebrahim Bagheri. 2021. BERT-QPP: Contextualized Pre-trained transformers for Query Performance Prediction. In Proceedings of the 30th ACM International Conference on Information & Knowledge Management (Virtual Event, Queensland, Australia) (CIKM '21). Association for Computing Machinery, New York, NY, USA, 2857–2861. doi:10.1145/3459637.3482063
[6] Chris Buckley and Gerard Salton. 1995. Optimization of relevance feedback weights. In Proceedings of the 18th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval (Seattle, Washington, USA) (SIGIR '95). Association for Computing Machinery, New York, NY, USA, 351–357. doi:10.1145/215206.215383
[7] Claudio Carpineto and Giovanni Romano. 2012. A Survey of Automatic Query Expansion in Information Retrieval. ACM Comput. Surv. 44, 1, Article 1 (Jan. 2012), 50 pages. doi:10.1145/2071389.2071390
[8] Stéphane Clinchant and Eric Gaussier. 2013. A theoretical analysis of pseudo-relevance feedback models. In Proc. ICTIR'13. 6–13. https://doi.org/10.1145/2499178.2499179
[9] Jacob Cohen. 1988. Statistical power analysis for the behavioral sciences (2nd ed.). Lawrence Erlbaum Associates, Hillsdale, NJ.
[10] Kaustubh D. Dhole and Eugene Agichtein. 2024. GenQREnsemble: Zero-Shot LLM Ensemble Prompting for Generative Query Reformulation. In Advances in Information Retrieval: 46th European Conference on Information Retrieval, ECIR 2024, Glasgow, UK, March 24–28, 2024, Proceedings, Part III Manuscript submitted to ACM
(Glasgow, United Kingdom). Springer-Verlag, Berlin, Heidelberg, 326–335. doi:10.1007/978-3-031-56063-7_24
[11] Fernando Diaz, Bhaskar Mitra, and Nick Craswell. 2016. Query Expansion with Locally-Trained Word Embeddings. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Katrin Erk and Noah A. Smith (Eds.). Association for Computational Linguistics, Berlin, Germany, 367–377. doi:10.18653/v1/P16-1035
[12] Hui Fang, Tao Tao, and ChengXiang Zhai. 2004. A Formal Study of Information Retrieval Heuristics. In Proc. SIGIR'04. 49–56. https://doi.org/10.1145/1008992.1009004
[13] Hui Fang, Tao Tao, and Chengxiang Zhai. 2011. Diagnostic Evaluation of Information Retrieval Models. ACM Trans. Inf. Syst. 29, 2, Article 7 (apr 2011), 42 pages. https://doi.org/10.1145/1961209.1961210
[14] Hui Fang and ChengXiang Zhai. 2006. Semantic Term Matching in Axiomatic Approaches to Information Retrieval. In Proc. SIGIR'06. 115–122. https://doi.org/10.1145/1148170.1148193
[15] Thibault Formal, Carlos Lassance, Benjamin Piwowarski, and Stéphane Clinchant. 2021. SPLADE v2: Sparse Lexical and Expansion Model for Information Retrieval. arXiv:2109.10086 [cs.IR] https://arxiv.org/abs/2109.10086
[16] Thibault Formal, Benjamin Piwowarski, and Stéphane Clinchant. 2021. SPLADE: Sparse Lexical and Expansion Model for First Stage Ranking. In Proceedings of the 44th International ACM SIGIR Conference on Research and Development in Information Retrieval (Virtual Event, Canada) (SIGIR '21). Association for Computing Machinery, New York, NY, USA, 2288–2292. doi:10.1145/3404835.3463098
[17] Luyu Gao, Xueguang Ma, Jimmy Lin, and Jamie Callan. 2023. Precise Zero-Shot Dense Retrieval without Relevance Labels. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Anna Rogers, Jordan Boyd-Graber, and Naoaki Okazaki (Eds.). Association for Computational Linguistics, Toronto, Canada, 1762–1777. doi:10.18653/v1/2023.acl-long.99
[18] Trevor Hastie, Robert Tibshirani, and Jerome Friedman. 2009. The Elements of Statistical Learning: Data Mining, Inference, and Prediction (2nd ed.). Springer New York.
[19] Rolf Jagerman, Honglei Zhuang, Zhen Qin, Xuanhui Wang, and Michael Bendersky. 2023. Query Expansion by Prompting Large Language Models. arXiv:2305.03653 [cs.IR] https://arxiv.org/abs/2305.03653
[20] Nasreen Abdul Jaleel, James Allan, W. Bruce Croft, Fernando Diaz, Leah S. Larkey, Xiaoyan Li, Mark D. Smucker, and Courtney Wade. 2004. UMass at TREC 2004: Novelty and HARD. In TREC 2004.
[21] Nour Jedidi and Jimmy Lin. 2026. Revisiting BM25 Feedback Models using HyDE. In Proceedings of the 49th International ACM SIGIR Conference on Research and Development in Information Retrieval (Australia) (SIGIR '26). Association for Computing Machinery, New York, NY, USA, 3817–3822. doi:10.1145/3805712.3809889
[22] Victor Lavrenko and W. Bruce Croft. 2001. Relevance based language models. In Proceedings of the 24th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval (New Orleans, Louisiana, USA) (SIGIR '01). Association for Computing Machinery, New York, NY, USA, 120–127. doi:10.1145/383952.383972
[23] Yibin Lei, Tao Shen, and Andrew Yates. 2025. ThinkQE: Query Expansion via an Evolving Thinking Process. In Findings of the Association for Computational Linguistics: EMNLP 2025, Christos Christodoulopoulos, Tanmoy Chakraborty, Carolyn Rose, and Violet Peng (Eds.). Association for Computational Linguistics, Suzhou, China, 17772–17781. doi:10.18653/v1/2025.findings-emnlp.965
[24] Jurek Leonhardt, Koustav Rudra, and Avishek Anand. 2023. Extractive Explanations for Interpretable Text Ranking. ACM Trans. Inf. Syst. 41, 4, Article 88 (March 2023), 31 pages. doi:10.1145/3576924
[25] Minghan Li, Xinxuan Lv, Junjie Zou, Tongna Chen, Chao Zhang, Suchao An, Ercong Nie, and Guodong Zhou. 2026. Query Expansion in the Age of Pre-trained and Large Language Models: A Comprehensive Survey. ACM Trans. Inf. Syst. 44, 5, Article 119 (July 2026), 42 pages. doi:10.1145/3816248
[26] Lijun Lyu and Avishek Anand. 2023. Listwise Explanations for Ranking Models Using Multiple Explainers. In Proc. of ECIR'23. Cham, 653–668. https://doi.org/10.1007/978-3-031-28244-7_41
[27] Craig Macdonald and Nicola Tonellotto. 2020. Declarative Experimentation in Information Retrieval using PyTerrier. In Proceedings of the 2020 ACM SIGIR International Conference on the Theory of Information Retrieval (ICTIR).
[28] Chuan Meng, Negar Arabzadeh, Arian Askari, Mohammad Aliannejadi, and Maarten de Rijke. 2025. Query Performance Prediction Using Relevance Judgments Generated by Large Language Models. ACM Trans. Inf. Syst. 43, 4, Article 106 (July 2025), 35 pages. doi:10.1145/3736402
[29] Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. 2013. Distributed representations of words and phrases and their compositionality. In Advances in neural information processing systems. 3111–3119.
[30] Shahrzad Naseri, Jeff Dalton, Andrew Yates, and James Allan. 2021. CEQE: Contextualized Embeddings for Query Expansion. In Advances in Information Retrieval - 43rd European Conference on IR Research, ECIR 2021, Virtual Event, March 28 - April 1, 2021, Proceedings, Part I, Vol. 12656. Springer, 467–482.
[31] Marco Tulio Ribeiro, Sameer Singh, and Carlos Guestrin. 2016. "Why Should I Trust You?": Explaining the Predictions of Any Classifier. In Proc. KDD'16 (San Francisco, California, USA). 1135–1144. https://doi.org/10.1145/2939672.2939778
[32] J. J. Rocchio. 1971. Relevance feedback in information retrieval. In The SMART Retrieval System: Experiments in Automatic Document Processing, Gerald Salton (Ed.). Prentice-Hall, 313–323.
[33] Dwaipayan Roy, Debjyoti Paul, Mandar Mitra, and Utpal Garain. 2016. Using word embeddings for automatic query expansion. arXiv preprint arXiv:1606.07608 (2016).
[34] Dwaipayan Roy, Sourav Saha, Mandar Mitra, Bihan Sen, and Debasis Ganguly. 2019. I-REX: A Lucene Plugin for EXplainable IR. In Proceedings of the 28th ACM International Conference on Information and Knowledge Management (Beijing, China) (CIKM '19). Association for Computing Machinery,
Sourav Saha, Aditya Dutta, Soumajit Pramanik, and Mandar Mitra
New York, NY, USA, 2949–2952. doi:10.1145/3357384.3357859
[35] Sourav Saha, Harsh Agarwal, Venktesh V, Avishek Anand, Swastik Mohanty, Debapriyo Majumdar, and Mandar Mitra. 2025. ir_explain: A Python Library of Explainable IR Methods. In Proceedings of the 48th International ACM SIGIR Conference on Research and Development in Information Retrieval (Padua, Italy) (SIGIR '25). Association for Computing Machinery, New York, NY, USA, 3563–3572. doi:10.1145/3726302.3730343
[36] Sourav Saha, Debapriyo Majumdar, and Mandar Mitra. 2026. Explainability of Text Processing and Retrieval Methods: A Survey. ACM Comput. Surv. 58, 11, Article 284 (May 2026), 48 pages. doi:10.1145/3801957
[37] Jaspreet Singh and Avishek Anand. 2019. EXS: Explainable Search Using Local Model Agnostic Interpretability. In Proceedings of the Twelfth ACM International Conference on Web Search and Data Mining (Melbourne VIC, Australia) (WSDM '19). Association for Computing Machinery, New York, NY, USA, 770–773. doi:10.1145/3289600.3290620
[38] Mark D. Smucker and James Allan. 2006. An investigation of dirichlet prior smoothing's performance advantage. Technical Report IR-548. CIIR, U. Mass., Amherst. https://maroo.cs.umass.edu/getpdf.php?id=694
[39] Manisha Verma and Debasis Ganguly. 2019. LIRME: Locally Interpretable Ranking Model Explanation. In Proceedings of the 42nd International ACM SIGIR Conference on Research and Development in Information Retrieval (Paris, France) (SIGIR'19). Association for Computing Machinery, New York, NY, USA, 1281–1284. doi:10.1145/3331184.3331377
[40] Liang Wang, Nan Yang, and Furu Wei. 2023. Query2doc: Query Expansion with Large Language Models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, Houda Bouamor, Juan Pino, and Kalika Bali (Eds.). Association for Computational Linguistics, Singapore, 9414–9423. doi:10.18653/v1/2023.emnlp-main.585
[41] An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, Haoran Wei, et al. 2024. Qwen2.5 Technical Report. arXiv preprint arXiv:2412.15115 (2024).
[42] Chengxiang Zhai and John Lafferty. 2004. A study of smoothing methods for language models applied to information retrieval. ACM Transactions on Information Systems 22, 2 (April 2004), 179–214. doi:10.1145/984321.984322
[43] Le Zhang, Yihong Wu, Qian Yang, and Jian-Yun Nie. 2024. Exploring the Best Practices of Query Expansion with Large Language Models. In Findings of the Association for Computational Linguistics: EMNLP 2024, Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (Eds.). Association for Computational Linguistics, Miami, Florida, USA, 1872–1883. doi:10.18653/v1/2024.findings-emnlp.103
A Invariance to scaling of
To show that the AP obtained by (Section 3.1.2) is invariant to the specific positive value chosen for , we replace with another positive constant . The new target vector is given by
Then the least-squares solution scales accordingly:
Consequently, the resulting BM25 score vector is also scaled by k:
Assume that X is the full term-document matrix, instead of comprising only the documents present in the ground truth relevance assessment. Since multiplying by a positive constant is a strictly monotonic transformation, the relative ordering of the document scores is unchanged. Therefore, the retrieval ranking—and hence the AP—remains identical. This implies that can be arbitrarily chosen (e.g., as small as 0.01) without affecting retrieval performance. After constructing the ideal queries, we normalize them to a unit vector.
B AP of IEQ vs. number of relevant documents
Figures 9, 10, and 11, supplement Figure 1 from Section 5.1. The APs achieved by ideal queries exhibit the same trend across collections: the number of relevant documents is strongly negatively correlated with AP. This phenomenon is particularly pronounced for DFO-based ideal queries, and is generally more prominent for the document collections than for the passage collections.

Fig. 9. Per-query scatter plots of AP versus the number of relevant documents for different ideal-query formulations on the DL19-20 passage collection. The Spearman rank correlation coefficient between the two variables is reported in each plot.

Fig. 10. Per-query scatter plots of AP versus the number of relevant documents for different ideal-query formulations on the DL19-20 document collection. The Spearman rank correlation coefficient between the two variables is reported in each plot.

Fig. 11. Per-query scatter plots of AP versus the number of relevant documents for different ideal-query formulations on the DL21-22 passage collection. The Spearman rank correlation coefficient between the two variables is reported in each plot. One outlier query is removed.
C Choice of
In Section 5, for the results pertaining to ideal queries constructed using the least-squares (LS) method, we used and 0.1 as the regularization parameter. In this appendix, we take a more detailed look at the effect of the value of . Figure 12 shows (for all collections) how MAP varies as increases. MAP is highest for relatively small values of (typically between 0 and 1). From Equation (2), it is clear that for higher values of , progressively less importance is
Sourav Saha, Aditya Dutta, Soumajit Pramanik, and Mandar Mitra
attached to the actual similarity values of relevant and non-relevant documents, and more importance is attached to just . Naturally, this leads to a gradual decline in retrieval effectiveness.
We also study the effect of different values of on the average cosine similarity between a DFO-based ideal query and the corresponding LS-based ideal query . Figure 13 reports, for each collection, the similarity between these two ideal queries, averaged across all queries. Across all collections, the average overlap initially increases with , reaches a maximum, and then gradually declines. The maximum overlap is attained for values between 1 and 5 for all collections. These results indicate that moderate regularization produces LS-based ideal queries that are most similar to the DFO-based formulation.
D Variability across queries
Before studying the variability across different user queries, we first compare it to the variability across different expanded variants of a single query. For each query Q, we consider the k = 90 different expanded versions, and compute both the mean and the variance of their angular distances from the corresponding ideal query. We refer to the variance of the mean values across queries as between-query variance (BQV), while we use the term within-query variance (WQV) to refer to the mean of the variances . The same process is repeated for AP instead of angular distance. The resulting BQV/WQV ratios are reported in Table 10. A larger BCV/WCV ratio indicates that the variation across queries is greater than the variation among different query expansion methods for the same query. As shown in Table 10, the BQV/WQV ratios for angular distance range from 6.42 to 17.74 across the four collections and ideal query representations, indicating substantially greater variation across queries than among QE methods for the same query. A similar pattern is observed for AP, where the BQV/WQV ratios range from 6.76 to 8.66. Together, these results suggest that query-specific differences contribute substantially more to the observed variation than the choice of QE method.

Fig. 12. Relationship between the MAP values and for LS based ideal queries.

Fig. 13. Relationship between the average overlap with DFO based ideal query the LS based ideal queries generated with different .
Table 10. BQV/WQV ratios for both angular distances and AP for all collections. Larger BQV/WQV ratios indicate that the separation between query groups is substantially greater than the variability within each group.
| Method | Robust | DL19-20 Passage | DL19-20 Document | DL21-22 Passage |
|---|---|---|---|---|
| 15.79 | 15.95 | 17.74 | 9.65 | |
| 14.37 | 6.42 | 9.20 | 10.38 | |
| 11.44 | 8.89 | 9.13 | 8.76 | |
| AP | 8.66 | 7.07 | 6.76 | 6.85 |