TL;DR
PGT (Pseudo Relevance Feedback Using a Graph-Based Transformer) enhances Transformer-based search rerankers by incorporating "pseudo relevance feedback"—using top-ranked documents as extra context. By using a graph-based architecture to sparsify attention, PGT achieves higher accuracy than standard BERT rerankers while being significantly more computationally efficient than "full-attention" models.
What Problem Does This Paper Address?
In Information Retrieval (IR), Pseudo Relevance Feedback (PRF) is a classic trick: you take the top results from an initial search, assume they are relevant, and use them to "expand" or refine the original query. While this works wonders for traditional models (like BM25), it’s hard to do with modern Transformer-based rerankers (like BERT).
The challenge is two-fold:
- Context Poverty: Standard BERT rerankers usually only look at a single (Query, Document) pair. The query is often too short to fully describe what the user wants.
- Quadratic Complexity: Transformers have a "computational tax"—as you add more text (like multiple feedback documents), the processing cost grows quadratically ($O(n^2)$). This makes feeding 5–10 extra documents into a standard Transformer prohibitively slow and memory-intensive.
Methods
The authors introduce PGT, which adapts the Transformer-XH architecture to handle PRF. Instead of one giant sequence, PGT treats the search task as a graph problem:
- Nodes as Sequences: Each node in the graph represents a sequence containing the query, the candidate document ($d_c$), and one feedback document ($d_i$).
- Two-Level Attention:
- Intra-node (Token-level): Inside each node, standard BERT-style attention allows tokens to interact (e.g., the query "talks" to the feedback document).
- Inter-node (Document-level): To save computation, PGT "sparsifies" the attention. Only the special
[CLS]tokens (which represent the summary of each node) are allowed to attend to each other in the final layers. - Graph Structure: The graph is fully connected at the
[CLS]level, allowing information from all feedback documents to be aggregated to help score the candidate document.
This approach allows the model to "see" many feedback documents without the massive computational overhead of a single, massive self-attention block.
Datasets
The researchers evaluated PGT using:
- MS MARCO Passage Ranking: A massive dataset with ~8.8 million passages and 0.5 million queries.
- TREC 2019 Deep Learning Track: Used for the final evaluation, featuring 43 queries with high-quality, manual relevance labels from NIST.
Key Insights and Ideas
- The Query is Not Enough: One of the most interesting findings is that the query itself is often an "impoverished description" of the user's need. PGT performs best when it focuses on the relationship between the candidate document and the feedback documents, rather than just the query.
- Sparsification Works: You don't need every word in feedback document A to look at every word in feedback document B. Document-level interaction (via
[CLS]tokens) is sufficient to aggregate the "relevance signal" needed for reranking. - Efficiency Gains: Because PGT is more accurate, it can achieve top-tier results by reranking fewer documents (a smaller "reranking depth"). This leads to a massive reduction in total system latency.
Key Results
- Accuracy: PGT outperformed the standard BERT reranker, improving MAP@10 (Mean Average Precision) by 13% when using BM25 as the initial ranker and 7.4% when using a stronger initial ranker (CRM).
- Computational Efficiency:
- On a per-example basis, PGT uses only 88% of the operations required by a full-attention BERT PRF model.
- When accounting for the fact that PGT requires a smaller reranking depth to be effective, its total computational cost is only 44% of the full-attention alternative.
- Scalability: While standard BERT is limited to about 5 feedback documents due to sequence length limits, PGT scales easily. The authors found that using 7 feedback documents provided the best balance of performance.
Limitations and Future Work
- Initial Ranker Quality: Like all PRF methods, PGT is a "rich get richer" system; if the initial search results are complete garbage, the feedback won't help.
- Fixed Graph Topology: The current model uses a pre-defined, fully connected graph for the
[CLS]tokens. Future work could explore dynamic graphs that learn which feedback documents are most useful to attend to. - Feedback Selection: The paper uses a simple "top-k" approach for feedback documents. Exploring more sophisticated ways to select diverse or high-confidence feedback documents could further boost performance.
Summary updated