Abstract
While BERT has fundamentally changed Natural Language Processing, its application to Information Retrieval (IR) reveals a complex landscape. This paper investigates BERT's performance across different ranking tasks, finding that while it excels at question-answering style passage reranking, it struggles with traditional keyword-based web search. Our analysis highlights the critical role of cross-token interaction and the unique ways BERT utilizes special markers and produces polarized relevance scores.
Introduction
The emergence of BERT (Bidirectional Encoder Representations from Transformers) marked a paradigm shift in NLP. However, its effectiveness in ranking documents for search queries—a core task in Information Retrieval—remains less understood. Traditional Neural IR (Neu-IR) models typically utilize either representation-based or interaction-based architectures. This study explores whether BERT's pre-training on general corpora translates to an understanding of search relevance and how its internal mechanisms contribute to ranking performance.
Methods and Datasets
The researchers evaluated four distinct integration strategies for BERT in ranking:
- BERT (Rep): A representation-based approach using
[CLS]token cosine similarity. - BERT (Last-Int): The standard interaction approach concatenating query and document.
- BERT (Mult-Int): Utilizing
[CLS]tokens from all 24 layers of BERT-Large. - BERT (Term-Trans): A hybrid model using contextual embeddings to build a term translation matrix.
These models were tested on two contrasting benchmarks:
- MS MARCO: Focused on passage reranking for natural language questions.
- TREC Web Track (ClueWeb09-B): A traditional ad hoc document ranking task using keyword queries.
Analysis of BERT's Ranking Behavior
The Necessity of Interaction
A key finding is that representation-based BERT (BERT (Rep)) performs poorly compared to interaction-based versions. This indicates that BERT's strength lies not in static document embeddings but in its cross-attention mechanism, which allows for deep query-document term interactions.
The Role of Special Markers
BERT relies heavily on its internal structural tokens. Analysis of token importance across layers shows that [CLS] and [SEP] markers are consistently prioritized. Removing these markers results in a significant performance degradation (approx. 15%), whereas removing stopwords has a negligible impact.
Polarized Relevance Scoring
Unlike traditional neural rankers like Conv-KNRM, which produce a relatively smooth distribution of relevance scores, BERT is highly "opinionated." It tends to push scores toward the extremes of 0.0 or 1.0. This polarization suggests high confidence but may also indicate a tendency toward overfitting on the specific semantics of the training data.
Key Results
- MS MARCO Success: BERT-based interaction models achieved a 30% to 50% improvement in MRR@10 over previous state-of-the-art models like Conv-KNRM.
- TREC Limitations: On traditional keyword search (TREC), BERT performed worse than simpler models pre-trained on search logs. This highlights a gap between "semantic similarity" (learned from Wikipedia) and "search relevance" (learned from user behavior).
Conclusion
BERT's success in ranking is task-dependent. It is a powerful tool for semantic matching and question-answering but lacks the inherent understanding of user intent required for general web search. Future work should focus on pre-training large-scale transformer models on user interaction signals (like clicks) to bridge the gap between linguistic understanding and search relevance.
Summary updated