Abstract
The bidirectional encoder representations from transformers (BERT) model has recently advanced the state-of-the-art in passage re-ranking. In this paper, we analyze the results produced by a fine-tuned BERT model to better understand the reasons behind such substantial improvements. To this aim, we focus on the MS MARCO passage re-ranking dataset and provide potential reasons for the successes and failures of BERT for retrieval. In more detail, we empirically study a set of hypotheses and provide additional analysis to explain the successful performance of BERT.
Introduction
In Information Retrieval (IR), the primary objective is to identify the most relevant documents or passages for a given user query. For decades, traditional models like BM25 have served as the benchmark, relying heavily on "term matching"—the frequency of query terms appearing within a document.
The advent of BERT (Bidirectional Encoder Representations from Transformers) has led to significant performance gains on leaderboards such as MS MARCO. However, the qualitative reasons for BERT's superiority over keyword-based models remain under-explored. This study aims to dissect BERT's performance, identifying specific linguistic and structural factors that contribute to its success, as well as its remaining limitations.
Methods and Data
The authors fine-tuned a BERT-Large model on the MS MARCO (Microsoft MAchine Reading COmprehension) v2 dataset. This dataset is particularly robust for modern neural IR as it is based on real Bing search queries and human-annotated relevant passages, containing approximately 400 million training tuples.
A pointwise approach was employed for re-ranking, where the model predicts a relevance score for a single query-passage pair. To analyze the results, BERT was compared against BM25 using diagnostic metrics:
- Fraction of Query Tokens (FQT): Evaluates reliance on query term repetition.
- Fraction of Novel Terms (FNT): Measures the ability to retrieve relevant documents using synonyms or related concepts.
- Answer Type Classification: Categorizes queries (e.g., numeric, location) to identify model-specific strengths and weaknesses.
Key Results
BERT demonstrated a substantial improvement over traditional IR models. On the MS MARCO development set, BERT achieved an MRR@10 of 36.53%, more than doubling the performance of standard BM25 (16.70%).
In a head-to-head comparison across 5,738 queries, BERT outperformed BM25 on 57% of the queries, while BM25 was superior on only 12%.
Analysis and Discussion
The analysis revealed several critical insights into BERT's retrieval behavior:
Semantic Matching vs. Keyword Stuffing
While BM25 is biased toward passages that frequently repeat query terms—a characteristic that often leads to the selection of low-quality, repetitive passages—BERT excels at identifying "novel" terms. BERT successfully retrieves documents containing semantically related words not present in the original query, confirming its capacity for true semantic matching. Visualizing BERT's attention maps reveals how it links morphological variants or synonyms, such as "confident" in a query to "confidence" in a passage.
The Long-Query Paradox
Contrary to the hypothesis that longer queries provide more context for BERT, performance actually decreased more sharply for BERT than for BM25 as query length increased. This suggests that BERT may struggle to effectively weight and capture context across longer sequences in a retrieval context.
Categorical Strengths and Weaknesses
BERT is particularly effective for "Abbreviation" type questions (e.g., "What does NASA stand for?"). However, it remains relatively mediocre at handling "Numerical" and "Entity" type queries. Specifically, BERT often fails to correctly rank passages where relevance hinges on specific numbers or quantities.
Conclusion
While BERT represents a transformative leap in passage re-ranking, it is not without flaws. Its primary limitations—numerical reasoning, long-context encoding, and specific entity recognition—provide a roadmap for future IR research. Addressing these failure modes will be essential for developing the next generation of retrieval models.
Summary updated