Abstract
Recently, applying deep neural networks in IR has become an important and timely topic. For instance, Neural Ranking Models(NRMs) have shown promising performance compared to the traditional ranking models. However, explaining the ranking results has become even more difficult with NRM due to the complex structure of neural networks. On the other hand, a great deal of research is under progress on Interpretable Machine Learning(IML), including Grad-CAM. Grad-CAM is an attribution method and it can visualize the input regions that contribute to the network's output. In this paper, we adopt Grad-CAM for interpreting the ranking results of NRM. By adopting Grad-CAM, we analyze how each query-document term pair contributes to the matching score for a given pair of query and document. The visualization results provide insights on why a certain document is relevant to the given query. Also, the results show that neural ranking model captures the subtle notion of relevance. Our interpretation method and visualization results can be used for snippet generation and user-query intent analysis.
Introduction
In Information Retrieval (IR), deep learning has led to significant performance gains through Neural Ranking Models (NRMs). However, these models are notoriously difficult to interpret. Unlike traditional models (like BM25) that rely on clear keyword matching, NRMs use complex architectures to capture subtle semantic relationships. This "black box" nature makes it hard to understand why a document is ranked highly. This research addresses this by identifying which specific parts of a document contribute most to its ranking and determining the statistical characteristics that distinguish relevant documents from non-relevant ones.
Methods
The researchers focus on MatchPyramid, an "interaction-focused" NRM. MatchPyramid works by creating a 2D interaction matrix (essentially an image where one axis is the query and the other is the document) and processing it with a Convolutional Neural Network (CNN).
To explain the model, they apply Grad-CAM (Gradient-weighted Class Activation Mapping). This involves calculating the gradients of the final ranking score with respect to the feature maps of the last convolutional layer. This process produces a Localization Map ($L$), a heatmap showing which regions of the query-document interaction matrix were most influential in the final decision.
The study utilized the TREC 2019 Deep Learning Track Document Ranking Dataset, consisting of 350,000 training queries and 5,000 validation queries, using pre-trained GloVe embeddings for vectorization.
Key Insights and Ideas
A primary discovery is the model's ability for Semantic Filtering. The NRM does not merely look for similar words; it filters them based on context. For example, in a query about "blood diseases," the model might identify the word "prevention" as having high similarity but "filter" it out, focusing instead on "infection" to satisfy the user's specific intent.
Furthermore, statistical analysis revealed that relevance is concentrated. Relevant documents exhibit a higher Kurtosis ($K$) in their localization maps, meaning the evidence for relevance is concentrated in specific, intense bursts rather than spread thinly. They also show a higher total sum of contributions ($\sum L_{ij}$), indicating the model finds more cumulative "reasons" to rank them highly.
Key Results
The effectiveness of this interpretation was validated through human evaluation and statistical tests:
- Human Preference: In a survey of 87 assessors, 78.37% preferred snippets generated via Grad-CAM over "vanilla" snippets that simply highlight keyword density. This suggests the model's internal "attention" aligns well with human logic.
- Statistical Significance: Using the Mann-Whitney U test, the authors confirmed that ground truth documents have significantly higher Kurtosis and total contribution sums than negative documents ($p < 0.0001$).
- Model Performance: The underlying MatchPyramid model achieved an NDCG@3 of 0.5243, ensuring the interpretations were based on a high-performing system.
Conclusion
This work demonstrates that Grad-CAM can effectively pull back the curtain on CNN-based neural rankers. By identifying "Effective terms" and "Filtered terms," we gain a deeper understanding of user intent and model behavior. Future work will focus on generalizing this approach to Transformer-based models like BERT and exploring the use of localization map statistics (like Kurtosis) as direct features to further improve ranking accuracy.
Summary updated