Abstract
Learning a high-dimensional dense representation for vocabulary terms, also known as a word embedding, has recently attracted much attention in natural language processing and information retrieval tasks. The embedding vectors are typically learned based on term proximity in a large corpus. This means that the objective in well-known word embedding algorithms, e.g., word2vec, is to accurately predict adjacent word(s) for a given word or context. However, this objective is not necessarily equivalent to the goal of many information retrieval (IR) tasks. The primary objective in various IR tasks is to capture relevance instead of term proximity, syntactic, or even semantic similarity. This is the motivation for developing unsupervised relevance-based word embedding models that learn word representations based on query-document relevance information. In this paper, we propose two learning models with different objective functions; one learns a relevance distribution over the vocabulary set for each query, and the other classifies each term as belonging to the relevant or non-relevant class for each query. To train our models, we used over six million unique queries and the top ranked documents retrieved in response to each query, which are assumed to be relevant to the query. We extrinsically evaluate our learned word representation models using two IR tasks: query expansion and query classification. Both query expansion experiments on four TREC collections and query classification experiments on the KDD Cup 2005 dataset suggest that the relevance-based word embedding models significantly outperform state-of-the-art proximity-based embedding models, such as word2vec and GloVe.
Introduction: The Proximity Trap
In modern Natural Language Processing (NLP), models such as word2vec and GloVe have become foundational. These models learn embeddings by analyzing term proximity—the tendency of words to appear near one another in a large corpus. For instance, "coffee" and "tea" are deemed similar because they share linguistic neighborhoods. However, in Information Retrieval (IR), proximity does not always equate to relevance.
Consider a search for "dangerous vehicles." A proximity-based model might suggest "safe" as a highly similar term because both words frequently appear in similar contexts. If a search engine expands a query using such terms, it risks returning documents that are the exact opposite of the user's intent. IR requires embeddings that capture the underlying intent of a query, identifying words that appear in documents relevant to a specific information need, rather than just words that are syntactically or semantically similar in a general sense.
Methodology
To address this, we propose a framework for learning relevance-based embeddings using a feed-forward neural network architecture with a single linear hidden layer. Unlike standard models that train on sliding windows of text, our models are trained on query-document pairs, effectively "baking" relevance information into the vector space offline.
We introduce two distinct objective functions:
- Relevance Likelihood Maximization (RLM): This generative model treats relevance as a probability distribution over the entire vocabulary for a given query. It utilizes a hierarchical softmax to efficiently learn which words are most likely to appear in a relevant document set.
- Relevance Posterior Estimation (RPE): This discriminative approach casts the problem as a binary classification task. Given a query and a word, the model predicts if the word is "relevant" or "non-relevant." To manage the massive vocabulary, it employs Noise Contrastive Estimation (NCE), allowing the model to distinguish true relevant words from random "noise" words.
By training these models offline on over 6 million unique queries from AOL logs, we avoid the latency associated with traditional pseudo-relevance feedback (PRF), which requires a second retrieval pass at runtime.
Experimental Results
We evaluated our models on two primary tasks: query expansion across four TREC collections (AP, Robust, GOV2, and ClueWeb09) and query classification using the KDD Cup 2005 dataset.
Query Expansion
In retrieval tasks, both RLM and RPE significantly outperformed word2vec and GloVe. For example, on the AP collection, RLM achieved a Mean Average Precision (MAP) of 0.2580, a notable improvement over word2vec's 0.2420. The models demonstrated that while proximity-based models focus on individual query terms (e.g., finding words similar to "museum"), relevance-based models capture the concept of the whole query (e.g., finding words relevant to an "Indian American museum").
Scalability and Robustness
A key finding of this research is the relationship between training data volume and model performance. As shown in the figure below, retrieval performance improves consistently as the number of training queries increases, reaching a point of stability around 4 to 5 million queries.
Furthermore, the models showed stable performance once the embedding dimensionality reached approximately 300–400 dimensions. In the KDD Cup 2005 classification task, RPE achieved the highest F1-measure (0.4294), outperforming standard embeddings by a significant margin.
Conclusion
Relevance-based word embeddings offer a powerful alternative to traditional proximity-based models for IR tasks. By shifting the learning objective from local context to global relevance, RLM and RPE provide more accurate query expansions and classifications. Future work will explore incorporating explicit relevance signals, such as user click data, and applying these embeddings to more complex tasks like query reformulation and intent prediction.
Summary updated