Abstract
Numerous studies have demonstrated the effectiveness of pretrained contextualized language models such as BERT and T5 for ad-hoc search. However, it is not well-understood why these methods are so effective, what makes some variants more effective than others, and what pitfalls they may have. We present a new comprehensive framework for Analyzing the Behavior of Neural IR ModeLs (ABNIRML), which includes new types of diagnostic tests that allow us to probe several characteristics—such as sensitivity to word order—that are not addressed by previous techniques. To demonstrate the value of the framework, we conduct an extensive empirical study that yields insights into the factors that contribute to the neural model's gains, and identify potential unintended biases the models exhibit. We find evidence that recent neural ranking models have fundamentally different characteristics from prior ranking models. For instance, these models can be highly influenced by altered document word order, sentence order and inflectional endings. They can also exhibit unexpected behaviors when additional content is added to documents, or when documents are expressed with different levels of fluency or formality.
Introduction
The landscape of Information Retrieval (IR) has been transformed by large language models (LLMs) like BERT and T5, which consistently dominate leaderboards. Despite their empirical success, the underlying mechanisms driving their performance remain opaque. Traditional IR models are built on well-defined "axioms" (e.g., term frequency constraints), but recent research suggests these axioms do not fully capture the behavior of neural rankers. This lack of transparency makes it difficult to predict failure modes or identify inherent biases. To address this, we introduce ABNIRML, a diagnostic framework designed to peek inside the "black box" of neural search.
The ABNIRML Framework
The core of ABNIRML is Document Pair Probing. In this setup, a model is presented with a query and two documents ($d_1$ and $d_2$) that are nearly identical except for one controlled characteristic. By observing which document the model prefers, researchers can isolate specific behavioral preferences.
The framework utilizes three distinct strategies for generating these probes:
- Measure and Match Probes (MMPs): These leverage existing IR datasets to find pairs where one variable (e.g., document length) is held constant while another (e.g., term frequency) varies.
- Textual Manipulation Probes (TMPs): These involve programmatically altering documents—such as shuffling word order or introducing typos—to measure the model's sensitivity to linguistic structure.
- Dataset Transfer Probes (DTPs): These repurpose non-IR datasets (e.g., fact-checking or style transfer tasks) to determine if models favor traits like fluency, formality, or factual correctness over pure relevance.
Experimental Setup
We evaluated several state-of-the-art models, including VBERT, T5, ColBERT, EPIC, and ANCE, all trained on the MS-MARCO passage dataset. Probes were constructed using a diverse array of sources:
- IR Benchmarks: TREC Deep Learning 2019 and ANTIQUE.
- Linguistic/Style Datasets: MSPC (paraphrase), JFLEG (fluency), GYAFC (formality), and WikiTurk (simplicity).
- Summarization & Factuality: CNN/DailyMail for succinctness and Natural Questions (NQ) for factual accuracy.
Key Findings
Our analysis revealed several critical insights into neural IR behavior:
Linguistic Maturity and Sensitivity
Unlike traditional "bag-of-words" models, neural rankers exhibit high sensitivity to discourse-level information. Shuffling word or sentence order significantly degrades scores, indicating that these models leverage sophisticated linguistic signals. However, this sensitivity also manifests as inconsistency; models assigned different scores to paraphrases of the same text up to 94% of the time.
The "Truth" Bias
A surprising discovery was the "truth" bias in models like T5 and ColBERT. When presented with two relevant answers, these models often prefer the factually correct one. While seemingly beneficial, this implies the model acts as an implicit fact-checker, which could lead to errors if its internal knowledge is outdated.
Vulnerability to Noise and Typos
Neural models can be counter-intuitively influenced by "noise." Adding a non-relevant sentence to a document can sometimes increase its ranking score—a behavior opposite to BM25. Additionally, models using WordPiece tokenization (e.g., EPIC, ColBERT) are particularly vulnerable to typos, which significantly penalize document scores.
Training Stochasticity
We found that training the same architecture with different random seeds leads to divergent behavioral biases. One instance might favor brevity, while another prefers elaboration, suggesting that model behavior is highly dependent on the specific training run.
Conclusion
ABNIRML provides a robust methodology for auditing neural IR models. While these models demonstrate advanced linguistic capabilities, they also exhibit biases toward factuality and sensitivity to random training variations. Future work will focus on stabilizing the training process and improving model robustness against adversarial text manipulations and common errors like typos.
Summary updated