ABNIRML: Analyzing the Behavior of Neural IR Models

Sean MacAvaney, Sergey Feldman, Nazli Goharian, Doug Downey, Arman Cohan · DOI

TL;DR

While neural information retrieval (IR) models like BERT and T5 dominate search leaderboards, understanding why they make specific ranking decisions has remained a challenge. This paper introduces ABNIRML, a diagnostic framework that uses contrastive document pairs to systematically probe the behavioral traits, stylistic preferences, and hidden biases of neural rankers. The authors reveal that these models possess unexpected characteristics, including an inherent bias toward factually correct text and a vulnerability to ranking inflation from irrelevant text insertions.

What Problem Does This Paper Address?

Pretrained contextualized language models have fundamentally shifted the state-of-the-art in ad-hoc search (ranking documents by relevance to a query). However, because these models operate as black boxes, it is difficult to determine whether they are truly capturing deep linguistic meaning or simply exploiting surface-level shortcuts.

Traditional IR evaluation relies on macro-metrics (like Mean Reciprocal Rank) that measure overall accuracy but fail to explain why a model prefers one document over another. Prior axiomatic approaches designed to evaluate traditional search engines do not fully explain neural behavior. ABNIRML addresses this gap by providing a targeted framework to isolate and quantify how specific textual properties—such as word order, writing style, fluency, and factuality—impact a model's scoring decisions.

Methods

The core of the ABNIRML framework is a Document Pair Probing strategy. Instead of evaluating a model on a standard ranked list, the framework feeds the ranker a query ($q$) and a pair of contrastive documents ($d_1$ and $d_2$) that are nearly identical except for one specific attribute of interest.

The authors propose three distinct strategies for generating these contrastive pairs:

  1. Measure and Match Probes (MMPs): These probes pull real documents from existing IR datasets, holding one variable constant (e.g., document length) while varying another (e.g., term frequency).
  2. Textual Manipulation Probes (TMPs): These apply automated, controlled perturbations directly to document text—such as shuffling word or sentence order, removing stopwords, or injecting common typographical errors.
  3. Dataset Transfer Probes (DTPs): These repurpose non-IR datasets (e.g., style transfer, summarization, or fact-checking corpora) to isolate preferences for high-level traits like fluency, formality, simplicity, and factual correctness.

To prevent minor, noisy score fluctuations from skewing the analysis, the framework introduces a tuned margin threshold ($\delta$). A model is only considered to have a preference if the score difference between $d_1$ and $d_2$ exceeds this threshold.

Figure 1: Overview of strategies for constructing probes. Each probe in ABNIRML is comprised of samples, each of which consists of a query (q) and two documents (d1 and d2).

Datasets

  • Training: The neural models evaluated were trained on the MS-MARCO passage dataset (~809k queries, 8.8M passages).
  • MMPs & TMPs Generation: Built using the TREC Deep Learning 2019 passage dataset and the ANTIQUE non-factoid QA dataset.
  • DTPs Generation: Repurposed from several non-IR benchmarks:
  • Paraphrasing: Microsoft Paraphrase Corpus (MSPC)
  • Fluency: JFLEG
  • Formality: GYAFC
  • Simplicity: WikiTurk
  • Neutrality: Wikipedia Neutrality Corpus (WNC)
  • Succinctness: XSum and CNN/DailyMail
  • Factuality: Natural Questions (NQ)

Key Insights and Ideas

  • True Linguistic Awareness: Unlike traditional lexical models (like BM25), neural rankers can successfully differentiate document relevance grades even when exact term frequency (TF) is held completely constant. They are genuinely utilizing syntax and context.
  • The Factuality Bias: Models like T5 and ColBERT inherently prefer answers that are factually correct over those containing false information, even when both options are structurally and topically relevant to the query. This indicates that real-world knowledge absorbed during pre-training actively influences ranking signals.
  • Adversarial Vulnerabilities: Introducing completely non-relevant sentences to the end of a document actually increases the ranking score for many trained contextualized models. This presents a potential vulnerability where content creators could artificially boost search rankings by appending hidden or irrelevant text.
  • Random Training Biases: Probing identical model architectures trained with different random seeds revealed that stylistic preferences (such as favoring succinct vs. elaborative text) can emerge purely by chance during the fine-tuning process, rather than being an inherent property of the model's architecture.

Key Results

  • Relevance vs. Term Frequency: When term frequency was held constant, contextualized models (BERT, T5, ColBERT, ANCE) still achieved strong positive preference scores ($> +0.18$) toward highly relevant documents, whereas lexical models scored $\le +0.10$.
  • Sensitivity to Word Order: Shuffling the word order of a document drastically penalized neural rankers, dropping scores by up to $-0.76$ for EPIC and ColBERT on the TREC DL19 dataset.
  • Paraphrase Discrepancies: Even though paraphrases share identical meanings, neural models assigned substantially different ranking scores to paraphrased document pairs up to 94% of the time.
  • Quantifying Factuality: On the Natural Questions dataset, T5-Large demonstrated a clear preference for factual text over altered, non-factual text, scoring up to $+0.38$ on organizational entities.

Limitations and Future Work

  • Artificial Text Constraints: Textual Manipulation Probes (TMPs) rely on synthetic alterations (like randomized word shuffling) that create highly unnatural text, which may not perfectly mirror the types of documents models encounter in the wild.
  • Fine-Tuning Instability: The high variance in stylistic preferences across different random seeds highlights a need for more stable training techniques to ensure models do not pick up arbitrary, unintended biases.
  • Inconsistent Length Preferences: Models exhibited conflicting behaviors across different summarization datasets (preferring summaries in XSum but full text in CNN/DailyMail), suggesting that document structure and dataset-specific formatting heavily confound succinctness evaluations.

Summary updated

BibTeX
@article{macavaney2020abnirml,
  author = {Sean MacAvaney and Sergey Feldman and Nazli Goharian and Doug Downey and Arman Cohan},
  title = {{ABNIRML: Analyzing the Behavior of Neural IR Models}},
  journal = {Trans. Assoc. Comput. Linguistics},
  year = {2020},
  url = {https://openreview.net/forum?id=buvXnmKiy2U},
}
Figure