Abstract
This article presents a new query expansion (QE) method aiming to tackle term mismatch in information retrieval (IR). Previous research showed that selecting good expansion terms which do not hurt retrieval effectiveness remains an open and challenging research question. Our method investigates how global statistics of term co-occurrence can be used effectively to enhance expansion term selection and reweighting. Indeed, we build a co-occurrence graph using a context window approach over the entire collection, thus adopting a global QE approach. Then, we employ a semantic similarity measure inspired by the Okapi BM25 model, which allows to evaluate the discriminative power of words and to select relevant expansion terms based on their similarity to the query as a whole. The proposed method includes a reweighting step where selected terms are assigned weights according to their relevance to the query. What’s more, our method does not require matrix factorisation or complex text mining processes. It only requires simple co-occurrence statistics about terms, which reduces complexity and insures scalability. Finally, it has two free parameters that may be tuned to adapt the model to the context of a given collection and control co-occurrence normalisation. Extensive experiments on four standard datasets of English (TREC Robust04 and Washington Post) and French (CLEF2000 and CLEF2003) show that our method improves both retrieval effectiveness and robustness in terms of various evaluation metrics and outperforms competitive state-of-the-art baselines with significantly better results. We also investigate the impact of varying the number of expansion terms on retrieval results.
Keywords
1. Introduction
With the advent of the Web, the volume of information available, particularly textual data, has continued to grow exponentially, and the number of documents storing this information continues to increase. Consequently, it is becoming increasingly difficult to find relevant documents in this large mass of information, especially in the case of short user queries. Indeed, despite the significant growth in data available nowadays, users often issue short queries. In average, users insert about three words in their search query [1,2], which is the same as two decades ago as reported by Lau and Horvitz [3]. Therefore, matching the user’s information need with relevant documents is challenging and complex, although this has always been the main challenge in information retrieval (IR). Besides, the user’s query usually omits important terms which allow the selection of relevant documents that meet the user’s needs. Hence, a poorly expressed query is unlikely to yield satisfactory results. To overcome the term mismatch problem, query expansion (QE) is one of the main tasks in IR, which refers to techniques that reformulate the user query by adding new terms that better express his or her information needs [4].
The aim of QE is to enrich the initial query with additional semantically related terms to enhance retrieval results. Indeed, QE methods are categorised into two main classes, namely local methods and global methods [5]. Local methods use retrieved documents produced by the user’s initial query to select expansion terms. Whereas in global methods, there is no need for an initial retrieval round. The entire data source is explored to extract expansion candidates.
A challenging problem in QE is the selection of relevant expansion terms, which do not harm but improve retrieval effectiveness. Generally, expansion terms are selected based on their similarity to individual query terms [6], that is, each term in the query individually chooses a set of related expansion candidates based on one-to-one associations. However, this does not properly reflect the semantic relatedness of an expansion term to the query as a whole, and thus the global sense of the query may be ignored [4]. It has been shown that the best approach to QE is to choose expansion terms that are related to the entire query [6,7]. This allows to capture the semantic relationships between the candidate expansion terms and the whole query, and then select the most strongly related terms.
Moreover, the effectiveness of the expansion process also depends on the number of selected terms and the way the new terms should be added to the query. Indeed, the expansion candidates do not have the same relevance to the query [8]. Therefore, they should be assigned weights reflecting their degree of similarity to the original query so that the most relevant ones obtain higher weights.
Furthermore, emphasis is mainly placed on measuring the relevance of the expansion terms to select those that are most similar to the initial query. Nevertheless, when a query contains several terms, they do not have equal importance or usefulness in selecting expansion candidates [9]. Indeed, some of the query terms may not be good at identifying relevant expansion candidates [6]. Therefore, we need to evaluate the discriminative power of each term in the query so that the most important ones will contribute more in the expansion process.
In light of the aforementioned points, we can agree that an effective QE strategy should take these different aspects into account to select the most relevant expansion terms that allow improving retrieval performance. The main contributions of this article can be summarised as follows:
We propose a new multi-step method for both QE and term reweighting, which relies on global analysis of the entire corpus using simple co-occurrence statistics.
We present a context window approach to construct term co-occurrence graphs, which allows the extraction of distributional knowledge representing semantic relationships between terms.
We employ a semantic similarity measure inspired by the Okapi BM25 model, which measures term–term similarity in co-occurrence graphs and provides an absolute evaluation of the discriminative power of terms. What’s more, our measure allows to compute one to many similarities.
Extensive experiments have been conducted on two languages to evaluate the performance of the proposed method in terms of both retrieval effectiveness and robustness. Results demonstrate its ability in enhancing the retrieval results and show significant improvements over competitive state-of-the-art baselines.
We also provide detailed interpretations, including a detailed analysis of parameter sensitivity and we investigate the effect of varying the number of expansion terms on retrieval results.
The remainder of the article is organised as follows. Section 2 presents the motivations of this work and posits our research objectives. Section 3 discusses related work. Section 4 outlines the proposed QE method. Experimental setup, test collections and evaluation metrics are presented in section 5. The experimental results are outlined and discussed in section 6. Finally, section 7 concludes the article and provides insights for future work.
2. Motivation and research objective
The main motivation of this work is to investigate how global statistics of term co-occurrence can be used effectively to enhance the process of QE and term reweighting considering the semantics of the whole query. Statistics of term co-occurrences have been widely used in multiple IR tasks to discover and express semantic relationships between terms [4,10]. Indeed, the use of term co-occurrences is one of the earliest approaches for automatic query expansion (AQE) [11,12], in which terms that are statistically related to the query are considered as potential expansion candidates. Nevertheless, a fundamental problem in this approach is the selection of terms that have high frequencies, and thus are not likely to be discriminative. A primary limitation is due to the manner in which the similarity between terms is measured [13]. Besides, terms’ position and proximity, which allow capturing their context, are usually not considered [4]. In this work, we use co-occurrence statistics across the entire document collection to find semantic relationships between query terms and candidate expansion terms. We represent a corpus as a graph, where nodes correspond to terms and edges denote co-occurrence relationships. In fact, text graphs are a well-explored area in IR [14] and the applications of such graphs are multiple (e.g. TextRank [15]). However, building a term co-occurrence graph and exploring its links is a challenging problem, especially for large graphs.
This article proposes a new global QE method which relies on statistical information of term co-occurrences to improve retrieval results. It allows to identify the most informative query terms and to penalise trivial terms. We explore the use of a context window-based approach to build our term co-occurrence graph over the entire corpus. We use a new measure inspired by the state-of-the-art Okapi BM25 model [16], which leverages the performance of this robust model to compute term similarity in co-occurrence graphs. The main objectives of this work are
To select expansion terms using their semantic relatedness to the query as a whole and automatically assign weights to the new terms according to their relevance to the query;
To evaluate the discriminative power of each query term, so that the most important ones will have a higher impact on the expansion process;
To ensure the effectiveness and the robustness of the proposed method in the case of short user queries.
Evaluation has been carried out on four test collections: two French collections provided by CLEF 1 [17,18] and two English collections provided by TREC, 2 including the standard Robust04 collection [19]. Experimental results show that our proposal significantly outperforms state-of-the-art baselines using various standard evaluation metrics.
In the following section, we provide an overview of related works, discussing their limitations and highlighting the theoretical and practical implications of our work.
3. Related work
QE has received considerable attention for several years. A great deal of effort has been devoted to the development of new QE techniques in the field of IR. In this context, a number of research surveys have been published [2,4,20]. The objective of QE is to reformulate the user’s initial query by adding new terms based on various selection criteria and usually involving a reweighting step. Indeed, the expansion terms are selected from the current document collection (endogenous resources) or from external data sources, such as Wikipedia (exogenous resources). In the literature, QE approaches can be mainly classified into two main categories: (1) local methods and (2) global methods [2,4,9]. In this section, we will mention some efforts on both categories of methods, focusing on statistical ones.
3.1. Local QE approaches
This class of QE approaches relies on the use of a local analysis of top-ranked or identified relevant documents resulting from an initial retrieval round in response to the original (non-reformulated) query. One of the earliest QE methods was proposed by Rocchio [21], who introduced the use of ‘relevance feedback’ for QE. In this technique, the user manually examines the results of the initial query and provides a judgement on the relevance of the retrieved documents. The collected feedback information is then used to reformulate the original query. Indeed, most of the relevance feedback methods are inspired by Rocchio’s algorithm [21]. However, a major drawback of the relevance feedback technique is that it requires time and effort on the part of the user. Pseudo-relevance feedback (PRF) is one of the most effective and popular AQE techniques, which was derived from relevance feedback. In PRF, the top-ranked
Xu and Croft [9] used term co-occurrence statistics in an AQE technique called local context analysis (LCA). In this work, expansion terms are assigned scores based on their co-occurrence with the original query terms in the set of pseudo-relevant documents. Authors proposed a new metric that measures the co-occurrence of terms in the pseudo-relevant documents, taking into account their frequency in the whole collection and the inverse document frequency (IDF) of each query term to measure their importance. The main hypothesis is that terms that tend to co-occur with all query terms are good for expansion. Thereby, terms that co-occur with more query terms are assigned higher scores than those co-occurring with fewer query terms. The highest scoring expansion candidates are selected to construct the new query. The effectiveness of this technique was demonstrated using various test collections in three different languages: English, Spanish and Chinese [9]. Fonseca et al. [24] proposed a concept-based QE method by mining association rules. Using query logs, they extracted query pairs based on their co-occurrences in past user sessions. A directed graph is constructed from query relations to select concepts that are related to the initial query. The user is then asked to provide feedback and select the most related concepts to his or her query. Recently, Colace et al. [25] made use of a minimal relevance feedback to obtain expanded queries. They considered only endogenous resources to build a structured graph of weighted word pairs based on the probabilistic topic model [26]. Authors showed the effectiveness of the proposed method over a Kullback–Leibler divergence (KLD)-based QE method [27] using two different IR systems. More recently, Wang et al. [28] proposed a neural PRF framework, named NPRF, which integrates PRF for neural IR by end-to-end learning. Authors introduced three instantiations of the proposed framework using state-of-the-art neural IR models and demonstrated its ability in improving the performance of neural document retrieval through extensive experiments.
Much research has been conducted recently to improve relevance feedback, for example, using semantic similarity [29,30], matrix factorisation [31], fuzzy logic [32], linear methods [33], word embeddings [34–36] and external knowledge sources [37]. However, one of the main challenges of the PRF technique is that the set of pseudo-relevant documents may contain a number of irrelevant documents, which will introduce noise into the expanded queries and thus adversely affect retrieval results [9]. Cao et al. [38] observed that many expansion terms that are very frequent in pseudo-relevant documents do not improve but harm retrieval effectiveness.
3.2. Global QE approaches
Global QE allows selecting expansion terms independently of the original query, that is, there is no need for an initial retrieval round. In this case, the entire data source is analysed to discover term associations and co-occurrence relationships [5,37]. Word embeddings have been used recently for AQE [6,39–41] by exploring word relationships from embedding vectors. In these methods, term co-occurrence statistics computed in a same context window are employed to learn word vector representations based on word embedding algorithms, such as Word2vec [42]. The main assumption is that words in similar contexts are likely to have similar meanings. Fernández-Reyes et al. [6] apply global word embeddings to perform AQE. The word vector representations are computed based on the statistics of word co-occurrences across the entire document collection. A symmetrical similarity matrix is then constructed, which contains the cosine similarities between each pair of word vectors. Authors explored the use of different pooling strategies to capture query-vocabulary semantic closeness and elect semantically related terms according to their cosine similarity to the query as a whole. Their experiments on three CLEF collections showed the effectiveness of the proposed global QE method without using exogenous resources and without relevance feedback. Results also showed a decrease in retrieval effectiveness by increasing the number of expansion terms, meaning that some of the added terms brought noise into the expanded queries. In a similar work, Esposito et al. [41] proposed a hybrid QE approach using word embeddings and lexical resources to effectively address the IR-based question answering (QA) task.
Recently, Azad and Deepak [8] used external data sources in a global QE method by combining Wikipedia and WordNet [43]. A pre-processing step is first applied to extract individual terms and phrases from the initial queries. For QE using Wikipedia, a directed graph is constructed to represent in-links and out-links between Wikipedia articles. Expansion terms are then extracted considering their similarity to the initial query terms and their rareness across the entire Wikipedia dump. WordNet is used to select synonyms and hyponyms of the initial query terms as expansion candidates. A term frequency–inverse document frequency (TF–IDF)-based weighing scheme is proposed to rank the candidate terms. At last, authors used a correlation score to reweight the final set of expansion terms from both data sources with respect to the query as whole. The experiments showed significant improvements over the user’s non-expanded queries using various evaluation metrics. They also analysed the effect of varying the number of expansion terms on retrieval performance.
Bouziri et al. [44] proposed a new AQE method based on learning to rank association rules between terms, which are mined from the entire document collection. The association rules and queries are then represented as 12-dimensional feature vectors computed based on statistical distribution measures of terms, including TF and document frequency across the document collection. The main idea of the proposal is to rank candidate association rules to select the most effective ones to be used in the expansion process. Their experiments using long queries yielded significant improvements against the baseline queries on CLEF and TREC collections. However, results showed that the proposed method is not a valid choice for short queries, as in this case its performances were not good. More recently, promising results have been demonstrated using BERT (a neural network-based contextualised learning model for natural language processing (NLP) pretraining) for QE [45,46].
The use of semantic analysis (or semantic analytics) has received considerable attention to extract meaningful information from unstructured data [47]. In recent years, a great deal of research efforts has been performed to propose new methods incorporating semantic analysis [47–50], especially with regard to social data content. Indeed, it allows inferring and extracting semantic concepts that help to enrich textual content by leveraging various knowledge structures, such as ontologies and Linked Data [48]. In the context of QE, the use of semantic analysis techniques helps to identify and extract additional query-related concepts, thus enriching the semantics of the query by finding relevant terms and expressions in the text, especially in the case of ambiguous queries. An interesting study discussing the use of ontologies for QE was presented by Bhogal et al. [20]. More recently, Raza et al. [51] presented a taxonomy and a survey of recent approaches to semantic QE that take advantage of various knowledge structures. In our work, we focus on the extraction of semantic information from unstructured textual corpora by analysing the probabilistic distribution of terms using global co-occurrence statistics. That is, our method falls into the category of Corpus-Specific Global QE Methods [4]. We try to extract relevant semantically related features for QE using a new way of exploring statistical information about terms and the contexts in which they appear, which is also known as distributional semantics. Incorporating semantic analysis can further enhance the term selection process and will be considered in future work.
3.3. Query reweighting
The QE process usually involves a reweighting step in which the added terms are assigned weights that reflect their importance. One of the earliest work on query reweighting was proposed by Robertson and Jones [52]. Their proposal relies on the relevance probability. The authors examined the use of statistical techniques to assign weights to the query terms by analysing their distribution in relevant and irrelevant documents. Indeed, the TF–IDF weighting scheme [53] was established based on successive refinements of this work. Kim et al. [54] examined the use of term co-occurrence similarity in a method for QE and term reweighting. They considered the distribution similarity between candidate expansion terms and the initial query within feedback documents. The new weights of the query terms are calculated using fuzzy inference. In our work, we use co-occurrence statistics to expand the queries and reweight the expansion terms.
In many of the aforementioned work, the importance of terms is evaluated using the IDF, which measures whether a term is rare or common and assigns higher values to the less-frequent terms across a set of documents. Our work stands by the fact that we try to evaluate the importance of terms based on co-occurrence statistics. We present a new method of using term co-occurrence statistics effectively for both term selection and reweighting steps while considering the semantic of the whole query. Indeed, our proposal provides an absolute evaluation of the discriminative power of terms by penalising those that tend to co-occur with many other words across the entire collection, which allows identifying the most important query terms. Besides, a main advantage of using a term co-occurrence graph is that it can be easily updated by adding new nodes or updating the weights of edges without having to rebuild the entire graph. Not the least, we investigate the impact of varying the number of expansion terms on retrieval results, showing that emphasis should be placed on selection strategies to generate the most relevant ones rather than seeking their optimal number.
Several measures have been used in the literature to evaluate the similarity of terms for QE, such as Cosine similarity, Dice coefficient, Jaccard coefficient and Mutual Information [23]. These measures consider that the similarity relation between terms is symmetric. That is, given two terms
Concisely, our proposal can be classified as a global QE method. We propose a new method for AQE using only endogenous resources without relevance information. We discuss the details of the proposed method in the following section.
4. Proposed QE method
Our QE method consists of two main processes. The objective of the first one, which is executed offline, is the construction of a term co-occurrence graph after pre-processing the input corpus. This process is performed only once for a specific collection. The second process is run online. Its purpose is the construction of an expanded query by selecting expansion terms based on their semantic similarity to all its terms as a whole. The selected terms are reweighted, so that the most important ones receive higher weights. The proposed method can be divided into three steps as illustrated in Figure 1: (1) data pre-processing, (2) graph construction and (3) QE. The three steps are detailed in the following subsections.

Processes and steps of the proposed global QE method.
4.1. Data pre-processing
Pre-processing of a data source is an essential step in any QE method. The main purpose of this step is to convert the data used for QE into a clean and consistent format that will be easier to process in subsequent steps [4]. Three common pre-processing tasks are involved in our method, as follows:
Tokenisation: the input text corpus is split into sentences, which are then tokenised into individual terms (unigrams). In addition, all terms are lowercased.
Stopword removal: all non-informative words are removed using standard stopword lists.
Stemming: all terms are reduced to their stems using language-specific stemming algorithms. Porter stemmer [57] is widely used for stemming English texts [8], while the Snowball stemmer is commonly employed for other languages [58].
The output of this step is a clean corpus of plain text.
4.2. Corpus-based co-occurrence graph
After performing the various text pre-processing tasks, we build from the resulting corpus a graph representing the co-occurrence relationships between terms. Formally, the textual corpus is modelled as a co-occurrence graph
The context window approach allows capturing the semantic relations between terms based on their statistical distribution and co-occurrences [4], which is also known as distributional semantics or distributional similarity. In this approach, the context of a term is simply defined as its neighbouring terms within a specified window. In our method, we use a symmetric sliding window to count the co-occurrence of terms over sentences. Thereafter, the co-occurrence graph is built using the obtained global statistics of term co-occurrence.
Figure 2 shows an example of an undirected weighted co-occurrence graph constructed with a window-size equal to 2 over the following two sentences: The context window approach was applied in multiple IR tasks. Co-occurrences are counted in specified window. For instance, taking ‘approach’ as the target term, its context terms in this case will be {context, window, was, applied}.

Example of an undirected weighted co-occurrence graph.
4.3. Query Expansion
Once the term co-occurrence graph has been constructed, it is mined to select semantically related terms to a given query. We define the following two constraints for selecting candidate expansion terms:
A good expansion term should be related to the whole query, that is, a term that has semantic relatedness with all query terms.
The impact of a given query term for selecting expansion candidates depends on its discriminative power.
To satisfy these two constraints, we need a similarity measure that considers one-to-many associations [4] and allows to evaluate the discriminative power of terms. To this end, we compute the semantic similarity of candidate expansion terms to the whole query using a new measure called BM
Before going into further details, we briefly recall the main properties of the Okapi BM25 model. Given a query
where
where
The intuition behind the IDF factor in BM25 is to assign a higher multiplier to the more important query terms, which are relatively infrequent throughout the document collection. They will contribute more to the final score than common terms that are found in almost all documents and thus are less important.
As mentioned previously, the second process of our method is run online to obtain an expanded query. Each term that co-occurs with at least one of the query terms is considered as a candidate expansion term. Therefore, the top
For each term
For each connected pair of terms
For each term
The semantic similarity in the co-occurrence graph is calculated using BM
where
The intuition behind the BM
The ratio between the parameters
The importance of each query term is evaluated by the
where
Some of the query terms may not be good for selecting expansion terms [6,9]. The intuition behind the
4.3.1. Term Reweighting
After selecting the most relevant expansion terms, which are ranked according to their similarity scores with the initial query, the top
4.3.2. Theoretical interpretation of INF information
According to Shannon’s Information Theory [60], the information content (IC) of an event
The basic assumption behind this is that events or messages with low probability of occurrence yield more IC than events with high probability of occurrence. For instance, the message The sun will shine contains less information than the message There will be an eclipse of the sun, which is a rare event and we get a lot of information from it.
Intuitively, we can assume that the higher a term co-occurs with other terms, the less information it contains. Suppose a query term
Now, say that we have two query terms
The IC of this event according to Shannon’s definition is
Now having a query with
With a small variation (cf. equation (4)), this is exactly what is expressed by the
4.3.3. Illustrative example
As an example, let us consider the query Q = Parkinson disease from the TREC Robust04 test collection, which is composed of the two terms
The co-occurrence graph built on the Robust04 test collection is made up of 175,759 terms (
As can be seen, the term Parkinson has fewer co-occurrences in the graph than the term disease, resulting in a higher
After calculating the

Example of a co-occurrence subgraph (Topic 406 Robust04, Parkinson disease).
As we can see in Figure 3, the term dopamine co-occurs with the query term Parkinson 14 times (i.e.
Different co-occurrence values of the three candidate expansion terms.
Likewise, the
According to the results, we can state the following:
The term dopamine, which is strongly related to the query is scored highest among the other candidate terms. This demonstrates the ability of the proposed measure to capture the semantic relationship between the query terms and good expansion candidates.
Although the neutral term patient has more co-occurrences with the query terms compared with the term dopamine, it gets a lower score because it presents a higher number of co-occurrences with the rest of the terms in the corpus (
The irrelevant term viral, which has the highest number of co-occurrences with the query term disease, was penalised because it has no co-occurrence with the query term Parkinson and therefore received the lowest score among the other candidate terms. This shows the advantage of the
To analyse the quality of the expansion terms generated for topic 406 from the Robust04 collection: Parkinson’s disease, we present in Table 2 the top 10 expansion terms obtained with the proposed algorithm and using two other state-of-the-art algorithms, namely the Bose–Einstein (Bo1) model [61] and the KLD model [27]. The candidate expansion terms are ordered according to their ranking score obtained by each method.
Top 10 expansion terms obtained with our proposed method and two other state-of-the-art models Bo1 and KLD for the TREC Robust04 topic 406 ‘Parkinson disease’.
KLD: Kullback–Leibler divergence.
The Bo1 QE model derives the informativeness of candidate expansion terms from the divergence between their distribution in the set of the highest ranked documents and a random distribution. In the KLD model, the most informative terms are those having a high probability distribution in the top-ranked documents and a low probability distribution in the entire corpus.
Observing the top 10 expansion terms generated in Table 2, we can see that many relevant terms that are semantically related to the initial query were only selected by our method. For instance, dopamine (lack of dopamine is the primary factor of Parkinson’s disease), 5 udall (Centres of Excellence carrying out important research on Parkinson’s disease), mptp (a toxic chemical that causes permanent symptoms of Parkinson’s disease), l-dopa (the most effective Parkinson’s disease medication) and even all the other selected terms are semantically related to the query terms. According to Table 2, we notice that the proposed QE method generates terms that are strongly related to the query and are more appropriate than the terms obtained for other methods, where it can be observed that many of the selected terms are general terms that are not discriminative. In summary, this example shows the effectiveness of the proposed QE method in addressing the vocabulary mismatch problem by generating useful expansion terms.
5. Experimental design
5.1. Test collections and evaluation campaigns
Test collections are used to evaluate the effectiveness of IR systems. A test collection consists of three parts: a corpus of documents on which the retrieval is carried out, a set of test queries (called topics), which express the information needs and a set of relevance judgements (called qrels), which includes a list of relevant and irrelevant documents for each test query.
Numerous evaluation campaigns have been organised, providing standard test collections to support research within the IR community, such as TREC and CLEF. TREC is the leading evaluation campaign in the IR field [23]. It was started in 1992 with the aim of supporting large-scale evaluation by providing large test collections. It covers a range of different IR tasks, or tracks, such as ad hoc search, QA, text summarisation, etc. In contrast, CLEF is the European counterpart of TREC, which was launched in 2000 with an emphasis on European languages, monolingual and cross-language IR.
To validate our method, we conducted extensive experiments using four test collections: two French collections provided by CLEF and two English collections provided by TREC. The two French collections from CLEF are CLEF2000 and CLEF2003 [17,18], which were used in the French Ad hoc Monolingual Task in years 2000 and 2003. The CLEF2000 collection, with 34 topics, is made up of 44,013 French news articles from 1994 published by the French journal Le Monde. The CLEF2003 collection is composed of three subcollections containing more than 129,000 documents on 52 topics, which includes newspaper articles (Le_Monde94) and various articles edited by the Swiss news agency (French SDA94 and French SDA95).
The test collections from TREC used in our experiments are the standard Robust04 collection [19] and the new Washington Post collection, 6 which offer a very large set of documents. The former was used in the TREC 2004 Robust Track focusing on poorly performing topics. This collection contains 249 topics and over 500,000 news articles covering the period 1989–1996. They were collected from different sources (the Financial Times Limited, the Federal Register 94, the Foreign Broadcast Information Service and the Los Angeles Times). For illustration purposes, we show an example of topic 406 from the Robust04 collection in Figure 4. The Washington Post collection was first introduced in the TREC 2018 Common Core Track. It consists of 50 topics and over 600,000 documents comprising 5 years of newswire articles and blog posts published by the American journal Washington Post from January 2012 through August 2017. Detailed statistics about the four test collections are provided in Table 3.
Statistics of test collections.

Topic 406 from the TREC Robust04 collection.
5.2. Pre-processing and indexing
We used the TERRIER 7 IR platform in all our experiments for indexing and retrieval. We indexed the English and French collections using single keywords as indexing units. English documents and queries were stemmed using the Porter Stemmer, and stopwords were discarded using the standard stopword list from TERRIER. Similarly, for the French collections, the French Snowball Stemmer was applied for stemming and a stopword list containing 463 words 8 was used. We considered only the title field of all topics as queries in our experiments, which mimics a real-life user need where queries are short [1,2].
5.3. Evaluation metrics
We evaluated the results using standard IR evaluation metrics, namely mean average precision (MAP), geometric mean average precision (GMAP), precision at top 5 ranked documents (P@5), P@10, P@30, binary preference (bpref), R-precision (Rprec) and normalised Discounted Cumulative Gain calculated for the top 10 retrieved documents (nDCG@10) [23]. In addition, statistical significance tests in terms of retrieval effectiveness were conducted using the two-tailed paired Student’s t-test at a 95% confidence level (i.e.
5.4. Parameter settings
For each collection, the co-occurrence graph was constructed by considering co-occurrences at the sentence level, that is, using a dynamic context window equal to sentence length. In other words, two terms are considered to be co-occurring if both terms occur in the same sentence.
The model’s free parameters were optimised for each collection according to the MAP evaluation measure. We conducted five-fold cross-validation over the queries in the tuning process as in Huston and Croft [63]. The K-fold cross-validation allows optimising the parameters while avoiding overfitting [63]. To this end, the queries for each test collection were randomly split into five-folds. Then, the parameters were tuned on four-of-five folds and the last fold was used to test the optimal settings. This process is carried out five times, each time using a different fold for testing. We tuned the value of the parameter
We also evaluated the effectiveness of the proposed method by varying the number of expansion terms.
6. Experimental results
To evaluate and compare the effectiveness of the proposed method, we used the following strategies:
No Expansion: the non-expanded queries were employed using the state-of-the-art Okapi BM25 model for ranking, which was standardly used as a baseline in the literature [64]. Results obtained in this case are referred as baseline.
Bo1 QE: we employed the Bose–Einstein statistics-based (Bo1) model [61] to expand the initial queries. The Bo1 model is one of the most effective and stable Divergence From Randomness (DFR) term weighting models [65].
KLD QE: the KLD model [27] was employed for expanding the initial queries. KLD is a distribution-based QE method, which relies on the analysis of the probability distributions of terms in the pseudo-relevant documents and in the entire collection [27].
QE with fixed weight: our QE method without applying the reweighting step. In this case, the expansion terms were assigned a fixed weight, so that the sum of their weights is equal to the sum of the weights of the original query terms.
QE + Reweighting: our QE method was applied with reweighting of the expansion terms. The new query consists of the original terms with a weight equal to 1 and the expansion terms with normalised weights calculated by BM
In all configurations, we used the Okapi BM25 model with TERRIER’s default settings as a ranking model. The top 1000 documents were retrieved for each query.
We conducted several experiments to evaluate the performance of our QE method. Experimental results comparing different configurations are summarised in Tables 4 and 5. The superscript * indicates that the improvements over the non-expanded baselines are statistically significant (Student’s t-test with
Retrieval results for English collections.
MAP: mean average precision; KLD: Kullback–Leibler divergence.
The superscript * denotes that the improvements over the non-expanded baseline are statistically significant (t-test with
Retrieval results for French collections.
MAP: mean average precision; KLD: Kullback–Leibler divergence.
The superscript * denotes that the improvements over the non-expanded baseline are statistically significant (t-test with
According to Tables 4 and 5, we can see that the proposed QE method outperforms the non-expanded baseline in all cases and across all four test collections. The improvements are always statistically significant in terms of MAP and bpref, reaching 12.36% and 18.64% gains in MAP on the English and French collections, respectively. As for the nDCG and the precision of the top 10 documents, it can be observed that the results are improved on all collections with statistically significant differences on the French collections, where we can notice up to 33% improvement in terms of precision on the CLEF2000 collection. These results highlight the effectiveness of our proposed QE method, leading to significant improvements in retrieval performance of the state-of-the-art Okapi BM25 model on various test collections and two different languages.
Observing the results obtained when assigning fixed weights to the expansion terms, we can see that performance is better when applying the reweighting step of our proposed method. In this case, this means that the most relevant expansion terms are assigned higher weights, which leads to better results.
Compared with Bo1 and KLD, we note that our method achieves better results in all cases regarding P@10, bpref and nDCG@10. Similar increases are also observed in terms of MAP, where we can see that our method performs better on every collection except the Washington Post collection for which we notice a slightly better performance with Bo1 and KLD. Furthermore, when comparing both baseline methods and the non-expanded baseline, we note that precision is hurt for the English collections, which means that the expansion terms in this case negatively affect precision. Similar behaviour is also observed in terms of nDCG@10, which is used to measure the ranking capability of retrieval algorithms [66]. We also see that the results are degraded in terms of bpref for the French collections. This shows that our proposal is better at selecting good and discriminant expansion terms.
Figure 5 shows a comparative analysis in terms of P@5, P@30, Rprec and GMAP for the four test collections. Notice that while P@K is defined as the proportion of relevant documents at rank

Comparative analysis in terms of (a) P@5, (b) P@30, (c) Rprec and (d) GMAP.
For a more thorough evaluation of the robustness of QE methods, we report in Table 6 the RI, also called Reliability of Improvement [62]; for each method, RI is a simple measure, which provides a general indication of robustness. Given a set of queries
Comparison of robustness index (RI) with respect to the non-expanded baseline.
KLD: Kullback–Leibler divergence.
where
From Table 6, it can be observed that the RI values are always positive for all methods, which means that, on average, more queries were improved than degraded. According to the results, our QE method achieves the highest RI values compared with the baseline methods. We can see that our method obtains largely higher robustness scores across the four test collections. Considering the method, we propose to use two strategies: one with applying the reweighting step and the other without the reweighting step. We see that the former is better in all collections except CLEF2003, where we notice a slightly lower performance.
According to the results obtained so far in context of several standard evaluation metrics and across different TREC/CLEF datasets, we can claim that our proposal is shown to be both an effective and robust method for QE, which leads to improved IR results.
To further analyse the effectiveness of the new expanded queries, we plot in Figure 6 the Precision-Recall (P-R) curves in comparison to the baselines for different test collections. These graphs allow to evaluate ranked retrieval results by presenting a trade-off between precision and recall for different thresholds [23]. Traditionally, the interpolated precision is plotted at 11 recall points {0.0, 0.1, …, 1.0}. By examining the P-R curves in Figure 6, we can see that our method yields better results compared with the non-expanded baselines at different recall levels. For all test collections, the P-R curves with QE are better than the curves with the initial non-expanded queries in most cases. Besides, it can be seen that the proposed method outperforms the Bo1 and KLD baselines on three out of four collections, except for the Washington Post collection, where we notice a slightly lower performance in some recall points. This analysis demonstrates that our QE method generated good expansion terms, which had a positive impact and brought a significant gain in retrieval effectiveness of the baseline IR model across different test collections.

Precision-recall curves for the four test collections: (a) Robust04, (b) TREC2018, (c) CLEF2000 and (d) CLEF2003.
6.1. Effect of varying the number of expansion terms
After weighing and ranking of expansion features, the top terms are selected to form the new query. Typically, a large number of expansion terms are generated and only a limited number of these terms are added to the initial query. This is done to have a compromise between retrieval effectiveness and response time, and because adding many terms usually introduces noise in the new query, which may cause query drift [4]. Therefore, finding the optimal number of expansion terms has always been a challenge in many experimental studies. According to Carpineto and Romano [4], the best choice is to use 10–30 terms for QE.
In our experimental setup, we empirically set the number of expansion terms to 10 as suggested in previous experiments [4,38,68]. To investigate the impact of term selection on our proposed method, we varied the number of expansion terms in
Retrieval performance (MAP) of the proposed QE method for the four test collections with different numbers of expansion terms.
The highest value in each row is marked in bold.
When we compare the results of Table 7, we note that the maximum MAP values are reached for different choices of the number of expansion terms. According to Table 7, the optimal number of expansion terms among the values tested for each collection is as follows: 10 terms for the Robust04 collection, 30 terms for the TREC2018 collection, 60 terms for the CLEF2000 collection and 20 terms for the CLEF2003 collection. Nevertheless, we can observe that, overall, the variations in performance are negligible; the relative improvement between the lowest and highest MAP values does not exceed 4% for three out of four collections, except for the CLEF2000 collection, where we notice that the MAP value increases by increasing the number of expansion terms. Therefore, we can infer that retrieval effectiveness appears to be less susceptible to the number of expansion terms.
The obtained results corroborate previous experimental studies [2,27], stating that the choice of the number of expansion terms is of little relevance and has a minimal impact on retrieval effectiveness. However, emphasis should be placed on selection strategies to generate the most relevant expansion candidates [4].
In this set of experiments, we adjusted the free parameters of BM
6.2. Sensitivity analysis
The method we proposed introduces two free parameters, which can be adjusted to enhance results. To this end, we used five-fold cross-validation to tune the parameters
Optimal parameter settings of
To further investigate the sensitivity of our proposed method to parameters

Parameter sensitivity of

Parameter sensitivity of
Overall, we can observe that retrieval performance is sensitive to both
7. Conclusion
In this article, we presented a new method for AQE based on global statistics of term co-occurrence. After performing different text pre-processing tasks, we built a term co-occurrence graph over the entire corpus using a context window approach, where nodes denote terms and edges represent co-occurrence relations between terms. We employed a semantic similarity measure inspired by the Okapi BM25 model, which leverages the performance of this robust model and proved to be able to capture the semantic relatedness between candidate expansion terms and the whole query. It also allows to evaluate the discriminative power of each query term to give higher importance to terms that will be more useful in identifying relevant expansion candidates. The same measure has also been used for reweighting the expansion terms according to their relevance to the query, so that the most relevant ones are assigned higher weights, yielding better results.
Experiments on four standard test collections of English (TREC Robust04 and TREC Washington Post) and French (CLEF2000 and CLEF2003) demonstrate the effectiveness and robustness of our proposed QE method compared with competitive state-of-the-art baselines in context of several standard evaluation metrics, leading to significantly improved results. We also evaluated the retrieval effectiveness of the proposed method with varying numbers of expansion terms. Further investigation into the free tuning parameters involved in our method shows that better results could be achieved if these parameters are correctly adjusted.
The proposed method considered only endogenous resources for expanding the queries. An interesting direction for future research is to investigate the use of exogenous resources, such as Wikipedia, for the selection of expansion terms. We believe that the results can be further improved, as similar studies [8,37] have shown significant results using external resources. Besides, the idea of taking advantage of the context provided by global analysis and the semantic richness provided by an ontologys [48,50] is another interesting direction for future research.
Footnotes
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship and/or publication of this article.
Funding
The author(s) received no financial support for the research, authorship and/or publication of this article.
