Standard information retrieval models often treat documents as "bags of words," where the relevance of a page is determined by how many times query terms appear. However, this approach ignores a fundamental property of human language: spatial coherence. When two concepts are related in a text, they are almost always discussed in close physical proximity—within the same sentence, paragraph, or section.
Research into term proximity and density seeks to move beyond simple keyword counting by rewarding documents where query terms appear near one another. This spatial relationship serves as a powerful proxy for semantic relevance, helping systems distinguish between a document that happens to mention two topics and one that actually discusses their relationship.
The Intuition of the Minimal Span
The most direct way to capture proximity is by measuring the "span" of a query. If a user searches for “Newton” and “Gravity,” a document where these words appear in the same sentence is likely more relevant than a 100-page biography where "Newton" appears in the introduction and "Gravity" appears in the conclusion.
Christof Monz, Maarten de Rijke, and their colleagues explored this in Approaches to Robust and Web Retrieval (TREC 2003) by implementing term proximity weighting. They calculated the minimal span—the smallest contiguous segment of text containing all query terms. By prioritizing documents with smaller spans, the system naturally filters for content where the conceptual relationship between keywords is tightest.
Proximity as a Filter for Question Answering
In Open-Domain Question Answering (QA), the goal is not just to find a relevant document, but to extract a specific, often short, answer string. Here, proximity becomes even more critical.
The LASSO system, described by Dan I. Moldovan and Sanda M. Harabagiu in The Structure and Performance of an Open-Domain Question Answering System, used a "paragraph indexing" strategy. Instead of searching entire documents, the system constrained its search to windows of consecutive paragraphs where all keywords must appear. This proximity-based filtering ensures that the candidate text segments are dense with relevant information, significantly reducing the noise that a system must process to find an answer.
Similarly, the Tianwang QA system developed by Conglei Yao and others for TREC 2005 treated physical distance as a primary indicator of relevance. Their findings suggested that passages where keywords are clustered together are exponentially more likely to contain the correct answer than those where terms are widely dispersed.
Density and Activation Spreading
Beyond simple spans, some researchers use the concept of density to identify relevant regions. This is often modeled as a "heat map" of relevance across a document.
In the OEDipe system, Romaric Besançon and Olivier Ferret utilized an activation spreading mechanism. In this model, the presence of a query term "activates" its local neighborhood, increasing the score of nearby tokens. When multiple query terms appear near each other, their activations overlap and sum together, creating a "peak" of relevance. This allows the system to identify high-density regions without needing to define rigid paragraph boundaries.
This density-based approach is also effective for entity discovery. Marc Bron and Katja Hofmann demonstrated that calculating co-occurrence within fixed-size windows is a robust way to find related entities, as entities that appear in close proximity are statistically more likely to share a meaningful semantic relationship.
Evaluating Proximity in Long-Form Content
As retrieval tasks move toward more complex, narrative documents, the way we evaluate proximity is also evolving. Traditional metrics often treat retrieval as a binary success (you found the document or you didn't). However, in long-form literature or technical manuals, being "close" to the right answer is more useful than being far away.
Nigel Collier and Tiancheng Hu addressed this in their work on PLOTRETRIEVAL. They argue for distance-weighted metrics that reward models for retrieving segments physically near the target context. This acknowledges that in sequential narratives, proximity is not just a search hint—it is a fundamental part of how information is structured and consumed.