Using Word Embeddings for Automatic Query Expansion

Dwaipayan Roy, Debjyoti Paul, Mandar Mitra, Utpal GarainarXiv 2016

Abstract

Automatic Query Expansion (AQE) is a fundamental technique in Information Retrieval designed to mitigate the vocabulary mismatch problem. This paper investigates the efficacy of word embeddings, specifically word2vec, as a source for expansion terms. By comparing pre-retrieval, post-retrieval, and incremental k-nearest neighbor (kNN) strategies against traditional statistical methods, the study reveals that while embedding-based expansion consistently outperforms standard keyword baselines, it remains inferior to established co-occurrence-based models like RM3.

Introduction

The "vocabulary mismatch" problem—where a user's query terms do not match the terms used in relevant documents—remains a significant challenge in search. Traditional AQE addresses this through Pseudo-Relevance Feedback (PRF), identifying terms that co-occur in initial search results. With the advent of deep learning, word embeddings offered a potential alternative by mapping semantic relationships in a high-dimensional space. This study explores whether these semantic vectors can provide more effective expansion terms than traditional statistical methods.

Methodology

The researchers evaluated three primary strategies for embedding-based expansion:

  1. Pre-retrieval kNN: Identifying the $K$ nearest neighbors to query terms in the global embedding space.
  2. Post-retrieval kNN: Restricting the search for nearest neighbors to the vocabulary found within the top-ranked documents of an initial retrieval pass.
  3. Incremental kNN: An iterative pruning approach designed to find a cohesive cluster of terms that are semantically similar to both the query and each other, enhancing the "safety" of the expansion.

A critical component of their approach was Compositionality. By representing multi-word queries (bigrams) as the sum of their constituent word vectors, the authors aimed to capture more nuanced contextual meanings.

Experimental Setup

Evaluation was conducted on standard benchmarks:

  • TREC Disks 4 & 5: Using query sets from TREC 6, 7, 8, and the Robust track.
  • WT10G: Using TREC 9-10 web data.
  • Embeddings: 200-dimensional word2vec (CBOW) vectors trained directly on the target collections to ensure vocabulary alignment.

Results and Discussion

Performance Gains Over Baseline

The embedding-based methods demonstrated a clear advantage over the standard Language Model (LM) baseline. On the TREC 8 dataset, the Incremental method improved Mean Average Precision (MAP) from 0.2373 to 0.2567.

Incremental vs. Baseline (TREC8)

Comparison with Statistical Methods

Despite these gains, the neural approach did not surpass RM3, a traditional statistical QE technique. RM3 achieved a MAP of 0.2701 on TREC 8, outperforming the best embedding-based configuration.

RM3 vs. Incremental (TREC8)

Key Insights

  • Semantics vs. Co-occurrence: The results suggest that semantic similarity (e.g., "doctor" and "physician") is less predictive of retrieval utility than document co-occurrence (e.g., "doctor" and "hospital").
  • Compositionality: Vector addition for bigrams significantly improved performance, indicating that embeddings are effective at capturing multi-word concepts.
  • Feedback Independence: Unlike traditional PRF, embedding-based methods performed robustly even without an initial retrieval round, suggesting they capture useful global semantic structures.

Conclusion

While word embeddings provide a powerful tool for capturing semantic relationships, they currently lack the specific statistical signals that make co-occurrence models like RM3 so effective for search. Future research may find success in hybrid models that combine semantic selection with co-occurrence-based weighting or by utilizing "local" embeddings trained on query-specific document subsets.

Summary updated

BibTeX
@misc{roy2016using,
  author = {Dwaipayan Roy and Debjyoti Paul and Mandar Mitra and Utpal Garain},
  title = {{Using Word Embeddings for Automatic Query Expansion}},
  year = {2016},
  eprint = {1606.07608},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1606.07608},
}
Figure