Explaining Documents' Relevance to Search Queries

Razieh Rahimi, Youngwoo Kim, Hamed Zamani, James AllanarXiv 2021

Abstract

We present GenEx, a generative model to explain search results to users beyond just showing matches between query and document words. Adding GenEx explanations to search results greatly impacts user satisfaction and search performance. Search engines mostly provide document titles, URLs, and snippets for each result. Existing model-agnostic explanation methods similarly focus on word matching or content-based features. However, a recent user study shows that word matching features are quite obvious to users and thus of slight value. GenEx explains a search result by providing a terse description for the query aspect covered by that result. We cast the task as a sequence transduction problem and propose a novel model based on the Transformer architecture. To represent documents with respect to the given queries and yet not generate the queries themselves as explanations, two query-attention layers and masked-query decoding are added to the Transformer architecture. The model is trained without using any human-generated explanations. Training data are instead automatically constructed to ensure a tolerable noise level and a generalizable learned model. Experimental evaluation shows that our explanation models significantly outperform the baseline models. Evaluation through user studies also demonstrates that our explanation model generates short yet useful explanations.

Introduction: Beyond Word Matching

When users search for information online, they are typically presented with a list of results consisting of a title, a URL, and a text snippet. While snippets highlight query terms to show relevance, they often fail to explain why a document is relevant or which specific aspect of a complex query it addresses. For instance, a search for "Obamacare" might return results covering its tax implications, pre-existing condition protections, or political history. Simply bolding the word "Obamacare" does not help a user distinguish between these facets.

The authors argue that traditional "word matching" is obvious and offers diminishing returns for user utility. To address this, they introduce GenEx, a generative model designed to provide terse, noun-phrase descriptions of the specific query aspect covered by a search result.

Comparison of standard search snippets versus snippets enhanced with GenEx explanations.

The GenEx Architecture

GenEx treats explanation generation as a sequence transduction problem, mapping a query-document pair to a short explanatory string. While based on the Transformer architecture, the model incorporates two critical modifications to handle the unique requirements of search explanation:

  1. Query-Attention Layers: In standard Transformers, short queries can be "lost" when processed alongside long documents. GenEx introduces specialized layers in the encoder that force document tokens to attend specifically to query tokens, ensuring the resulting representation is query-focused.
  2. Masked-Query Decoding: A common failure mode for generative models in this context is "regurgitation," where the model simply repeats the query as the explanation. To prevent this, GenEx masks query tokens during the decoding process, forcing the model to synthesize new descriptive terms from the document content.
The GenEx model architecture, featuring specialized query-attention layers and masked-query decoding.

Training via Weak Supervision

A major hurdle in developing explanation models is the lack of large-scale, human-labeled datasets. GenEx overcomes this by leveraging "weak supervision" from existing web structures:

  • Wikipedia Headers: The model uses Wikipedia section headers as ground-truth explanations for the text within those sections, treating the article title as the query.
  • Anchor Text: Suffixes of anchor texts pointing to the same page serve as proxies for different facets of that page's content.

This approach allowed the researchers to train on a massive dataset of 6.3 million samples without manual labeling.

Key Results and User Impact

Evaluation across automated metrics and human user studies demonstrated the effectiveness of the GenEx approach:

  • Performance Gains: GenEx significantly outperformed baselines like TextRank and LIME, achieving a 67% to 73% improvement in BLEU-1 scores over a vanilla Transformer.
  • Search Efficiency: In user studies conducted via Amazon Mechanical Turk, participants provided with GenEx explanations identified relevant documents 22% faster than those using snippets alone, saving an average of 7 seconds per search task.
  • Decision Accuracy: The presence of explanations led to near-perfect agreement among users on document relevance (Fleiss’ Kappa of 0.92), compared to 0.67 for snippets.
  • Human Preference: In head-to-head comparisons, human evaluators preferred GenEx-generated explanations over the strongest baseline in 73% of cases.

Conclusion

GenEx demonstrates that generative models can provide significant utility in search by moving beyond simple word matching to aspect-based explanations. By leveraging the inherent structure of the web for training and introducing architectural "nudges" to focus on query relevance, GenEx helps users navigate search results more efficiently and accurately. Future work may extend these capabilities to explain "near-miss" results or adapt the model for conversational search interfaces.

Summary updated

BibTeX
@misc{rahimi2021explaining,
  author = {Razieh Rahimi and Youngwoo Kim and Hamed Zamani and James Allan},
  title = {{Explaining Documents' Relevance to Search Queries}},
  year = {2021},
  eprint = {2111.01314},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.01314},
}
Figure