Abstract
Traditional ad-hoc retrieval models often struggle to capture long-distance contextual relationships within documents due to their reliance on linear text processing and fixed local context windows. We present the Graph-based Relevance Matching Model (GRMM), a novel approach that represents documents as "graphs-of-words." By utilizing Graph Neural Networks (GNNs) to propagate matching signals across these structures, GRMM effectively captures global relevance patterns that standard interaction-based models and truncated Transformer architectures miss. Our evaluation demonstrates that GRMM significantly outperforms state-of-the-art baselines on long-form web documents.
Introduction
In ad-hoc retrieval, the primary challenge is ranking a vast collection of documents based on their relevance to a specific user query. Modern deep learning approaches typically employ "interaction-based" matching, which identifies exact or semantic overlaps between query and document terms. However, these models are often constrained by a local context window, failing to link related terms that appear far apart in a document. For instance, a query like "melanoma treatment" might be highly relevant to a document that discusses the disease in its introduction and the clinical treatment in its conclusion.
While Transformer-based models like BERT have improved contextual understanding, they are limited by fixed input lengths (typically 512 tokens). For long-form web content, this necessitates truncation or chunking, which inevitably severs long-distance dependencies. GRMM addresses this by reimagining the document as a non-linear graph structure where distance is defined by semantic and co-occurrence relationships rather than just sequence position.
Methodology: The GRMM Architecture
GRMM transforms the retrieval task into a graph-based signal propagation problem. The process consists of four main stages:
- Graph-of-Word Construction: Every unique word in a document is represented as a node. Edges are established between words that co-occur within a sliding window. This structure allows specific terms to act as "bridges" between disparate sections of the text.
- Node Feature Initialization: Each node is initialized with an interaction vector representing the cosine similarity between that document word and every term in the query.
- GNN Propagation: The model employs a GNN with a Gated Recurrent Unit (GRU) update function. As information flows through the graph, a word's relevance signal is refined by its neighbors. For example, the signal for "treatment" is amplified if it is connected to "melanoma" via intermediate nodes like "patient" or "clinic."
- Readout and Scoring: To aggregate these signals, the model uses $k$-max pooling to extract the most significant matching signals for each query term. These are weighted by Inverse Document Frequency (IDF) and processed through a Multi-Layer Perceptron (MLP) to generate a final relevance score.
Experimental Evaluation
The model was benchmarked against two standard datasets:
- Robust04: A collection of approximately 0.47M news articles, characterized by shorter lengths and formal language.
- ClueWeb09-B: A large-scale web crawl of 50M webpages, featuring significantly longer documents (averaging 1,506 words) and diverse structures.
Key Results
- Performance on Long Documents: GRMM achieved its most significant gains on ClueWeb09-B, improving nDCG@20 by 14.4% over the strongest non-BERT baseline.
- Surpassing BERT: While BERT-MaxP showed strong performance on the shorter Robust04 articles, GRMM outperformed BERT on the longer ClueWeb09-B documents. This confirms that the graph-based approach successfully bypasses the 512-token bottleneck inherent in standard Transformer models.
- Ablation Studies: Removing the graph structure led to a substantial decline in performance, validating that long-distance graph connections are the primary driver of the model's success.
Discussion and Future Work
GRMM demonstrates that breaking the linear constraint of text allows for a more holistic understanding of document relevance. The researchers found that a 2-layer GNN propagation is optimal; deeper networks tend to suffer from "over-smoothing," where distinct matching signals become indistinguishable.
Future iterations of GRMM could integrate contextualized embeddings (e.g., BERT) into the node features to combine local semantic richness with global graph structure. Additionally, augmenting document graphs with external knowledge bases could further enhance matching capabilities when exact query terms are absent from the text.
Summary updated