Language Model Re-rankers are Fooled by Lexical Similarities

Lovisa Hagström, Ercong Nie, Ruben Halifa, Helmut Schmid, Richard Johansson, Alexander Junge

TL;DR

State-of-the-art language model (LM) re-rankers are widely trusted to bring deep semantic understanding to Retrieval-Augmented Generation (RAG) pipelines, but they are surprisingly vulnerable to surface-level keyword matches. This paper demonstrates that when confronted with "distractor" passages—irrelevant text that happens to share high lexical overlap with a query—expensive LM re-rankers frequently fail to outperform a simple, cheap BM25 baseline.

What Problem Does This Paper Address?

In standard Retrieval-Augmented Generation (RAG) systems, an initial fast retrieval step (like BM25) pulls a broad candidate set of documents from a corpus. Because these initial methods rely heavily on keyword matching, engineering pipelines often deploy an expensive Language Model (LM) re-ranker to re-order the candidates based on deeper semantic relevance before feeding them to the generation model.

Figure 1: An overview of a RAG pipeline.

The implicit assumption is that LM re-rankers always outperform simple lexical matching. However, the authors investigate a critical vulnerability: distractors. These are non-relevant passages that exhibit high syntactic or lexical similarity to the query. The paper explores whether LM re-rankers are truly robust against these surface-level similarities across different domains, or if they are simply being "fooled" by the same keywords that trick simpler algorithms.

Methods

The authors benchmarked 6 different LM re-rankers, including three closed-source models (Cohere, GPT-4o, and GPT-4o mini) and three open-source models (BGE-reranker-v2-gemma, Jina-reranker-v1-turbo-en, and Jina-reranker-v2-base-multilingual), comparing them all against a standard BM25 baseline.

To diagnose exactly why and when re-rankers fail, they introduced a novel gold-from-similar separation metric ($D_S$). Specifically focusing on BM25 scores ($D_{BM25}$), this metric calculates the difference between the maximum similarity score of the true ("gold") passage and the maximum similarity score of the incorrect ("non-gold") passages for a given query:

$$D_S(q, \mathbf{p}, \mathbf{y}) = \max_{i: y_i=1} S(q, p_i) - \max_{i: y_i=0} S(q, p_i)$$

A low or negative $D_{BM25}$ score indicates a highly adversarial scenario where an irrelevant distractor passage has a much higher keyword overlap with the query than the actual correct passage does.

Finally, they evaluated common performance-alleviation strategies:

  1. Prepending page titles to passages to preserve document context.
  2. Incorporate context, utilizing GPT-4o mini to generate contextual summaries.
  3. Prompt tuning, adjusting the instructions to better fit specific tasks like fact-checking.

Datasets

The models were evaluated across three datasets representing distinct domains and difficulty levels:

  • Natural Questions (NQ): A standard benchmark focused on generic QA using Wikipedia pages.
  • LitQA2: A specialized scientific information extraction dataset consisting of biomedical literature, characterized by complex domain-specific language.
  • DRUID (Dataset of Retrieved Unreliable, Insufficient and Difficult-to-understand contexts): A challenging fact-checking dataset containing claims paired with noisy evidence automatically scraped from the web.

Key Insights and Ideas

  • The Surface-Level Trap: LM re-rankers excel when the correct answer naturally shares high lexical similarity with the query. However, when the gold passage uses different phrasing (low $D_{BM25}$ values), re-rankers consistently fall for lexical distractors.
  • The Real-World Performance Gap: While advanced re-rankers dominate on clean, curated datasets like NQ, their advantage shrinks dramatically on noisy web data (DRUID). On DRUID, the re-rankers' predictions actually aligned more closely with BM25 lexical scores than with the ground-truth gold labels.
  • Missing Context Drives Errors: A primary reason re-rankers fail on low-$D_{BM25}$ samples is the lack of document-level context. When a webpage is chopped into isolated chunks, a chunk containing the exact keywords of a query looks more appealing to an LM than the true answer chunk, which might rely on a page title or previous paragraph to make sense.
Distribution of D_BM25 across datasets, showing how lower scores correlate with incorrect re-ranker predictions.

Key Results

  • DRUID Benchmark Struggles: On NQ, GPT-4o vastly outperformed BM25 (0.85 vs 0.46 Precision@1). However, on the noisy DRUID dataset, the best-performing re-ranker (BGE) only achieved 0.73 P@1, barely outperforming the simple BM25 baseline of 0.66.
  • Catastrophic Failure on Low-$D_{BM25}$: When isolating hard samples where $D_{BM25} < 0.5$, all re-rankers failed dramatically. On these samples within DRUID, BGE’s precision plummeted to 0.24 and Cohere dropped to 0.10.
  • Prompting to the Rescue: While structural fixes like prepending titles failed on noisy web text, domain-specific prompt engineering yielded massive gains. Tailoring the prompt to a fact-checking format boosted GPT-4o's performance on DRUID from 0.73 to 0.83 P@1.

Limitations and Future Work

The authors note that current standard evaluation datasets are not explicitly designed to measure a model's preference for lexical similarity over semantic truth. They emphasize the urgent need for the NLP community to develop more adversarial, real-world aligned evaluation datasets that intentionally feature high-rate distractors. Furthermore, this study only looked at a subset of mitigation strategies; future work should explore how dynamic chunk sizes or avoiding text chunking altogether might alleviate these lexical vulnerabilities.

Summary updated

Abstract

Language model (LM) re-rankers are used to refine retrieval results for retrieval-augmented generation (RAG). They are more expensive than lexical matching methods like BM25 but assumed to better process semantic information and the relations between the query and the retrieved answers. To understand whether LM re-rankers always live up to this assumption, we evaluate 6 different LM re-rankers on the NQ, LitQA2 and DRUID datasets. Our results show that LM re-rankers struggle to outperform a simple BM25 baseline on DRUID. Leveraging a novel separation metric based on BM25 scores, we explain and identify re-ranker errors stemming from lexical dissimilarities. We also investigate different methods to improve LM re-ranker performance and find these methods mainly useful for NQ. Taken together, our work identifies and explains weaknesses of LM re-rankers and points to the need for more adversarial and realistic datasets for their evaluation.
BibTeX
@inproceedings{hagstrom2025language,
  author = {Lovisa Hagström and Ercong Nie and Ruben Halifa and Helmut Schmid and Richard Johansson and Alexander Junge},
  title = {{Language Model Re-rankers are Fooled by Lexical Similarities}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure