An exploration of proximity measures in information retrieval

Tao Tao, ChengXiang Zhai

Abstract

Traditional Information Retrieval (IR) models often overlook the spatial relationships between query terms, treating documents as unordered "bags of words." This paper evaluates five proximity measures—Span, MinCover, MinDist, AveDist, and MaxDist—to enhance standard retrieval models like BM25 and KL-divergence. Using an axiomatic approach, the authors demonstrate that the Minimum Pairwise Distance (MinDist) consistently improves retrieval accuracy across diverse TREC datasets, particularly for longer documents, providing a simple yet effective boost to state-of-the-art systems.

Introduction

Traditional IR models calculate relevance scores primarily based on Term Frequency (TF) and Inverse Document Frequency (IDF). However, they largely ignore the spatial relationship between terms. Intuitively, if a user searches for "search engine," a document where those two words are adjacent is likely more relevant than one where they appear pages apart. While this "proximity heuristic" is intuitive, previous research was inconclusive about how to mathematically model it and integrate it into existing scoring formulas without degrading performance. This study seeks to identify the most effective proximity measure and a principled method for integrating it into standard IR models.

Methodology

The authors proposed and tested five distinct proximity measures, categorized into two types:

  1. Span-based (Global): These look at the shortest segment of text containing the query terms. Span includes all occurrences, while MinCover only requires each unique term to appear once.
  2. Distance-aggregation (Local): These calculate distances between pairs of unique query terms. This includes MinDist (smallest distance between any pair), AveDist (average distance across all pairs), and MaxDist (largest distance between the closest occurrences of all pairs).

To integrate these into existing models (KL-divergence and BM25), the authors employed an axiomatic approach. They argued that a proximity function must satisfy two constraints: the Proximity Heuristic (smaller distances yield higher scores) and the Convex Curve (the reward for proximity should drop off sharply when terms are very close but stay relatively flat when they are already far apart).

Figure 1: The proximity reward function follows a convex curve, where the benefit of proximity decays rapidly as distance increases.

They settled on a log-exponential transformation function to convert raw distance into a scoring adjustment factor, governed by a parameter $\alpha$.

Experimental Setup

The study utilized five representative standard TREC (Text REtrieval Conference) datasets to provide a robust testing ground:

  • AP: Associated Press news (1988-90)
  • DOE: Department of Energy abstracts
  • FR: Federal Register
  • TREC8: Ad hoc data from the TREC8 competition
  • WEB2g: A 2GB web crawl (WT2g)

Key Insights and Results

The experiments yielded several critical findings regarding the behavior of proximity signals in retrieval:

  • "Local" beats "Global": Pairwise measures (like MinDist) significantly outperformed span-based measures. Span-based measures are highly sensitive to document length and term frequency, requiring complex normalization that pairwise measures avoid.
  • MinDist is the "Sweet Spot": Of all five measures, Minimum Pairwise Distance was the most consistently correlated with document relevance, capturing the strongest semantic association within a document.
Figure 5: Comparison of different proximity measures on average precision. Local distance-aggregation measures (MinDist, AveMinDist, MaxMinDist) consistently outperform global span-based measures.
  • Performance Boost: Adding the MinDist measure to KL-divergence and BM25 models improved Mean Average Precision (MAP) across all five datasets. These improvements were statistically significant (p < 0.05) in 8 out of 10 experimental setups.
  • Document Length Sensitivity: Proximity signals were particularly useful for datasets with longer documents (like Federal Register), where query terms are more likely to appear together by chance if they are not semantically related.

Conclusion

This research demonstrates that a simple proximity heuristic, specifically Minimum Pairwise Distance, can significantly enhance the precision of modern retrieval models. While the model introduces a tuning parameter ($\alpha$), a value of approximately 0.3 was found to be effective across most contexts. Future work may explore how proximity interacts with document structure, such as whether terms appearing in the same paragraph carry more weight than those in different sections.

Summary updated

BibTeX
@inproceedings{tao2007exploration,
  author = {Tao Tao and ChengXiang Zhai},
  title = {{An exploration of proximity measures in information retrieval}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2007},
  doi = {10.1145/1277741.1277794},
}
Figure