Skip to content

ABNIRML: Analyzing the Behavior of Neural IR Models

optionalcorefundamentalpaperrubric 11/122020 · TACL · ~45 min

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

Status

TL;DR. ABNIRML tests what neural rankers prefer without opening them. Each probe is a set of (query, document 1, document 2) triples where the two documents differ mainly in one property. The probe score is the average of +1 (prefers d1d_1), −1 (prefers d2d_2) or 0 (difference below a model-specific threshold δ). Three ways to build probes (measure-and-match, textual manipulation, dataset transfer) reach properties that IR axioms never covered: word order, typos, fluency, formality, succinctness and even factuality.

Why it matters now. This is the behavioural layer of neural IR interpretability, and it sets the questions that later mechanistic work answers. Axiomatic causal interventions and cross-encoders as semantic BM25 reuse the same document-pair idea as clean/corrupt inputs for patching. ABNIRML’s findings are also still live risks for RAG: adding irrelevant text can raise a neural score, scores change with paraphrasing, and some rankers reward factual-looking text.

Document-pair probing (§2.1). For a ranking function R(q,d)R(q,d), each sample ⟨q,d1,d2⟩\langle q, d_1, d_2\rangle gets

eff(q,d1,d2)={+1R(q,d1)−R(q,d2)>δ−1R(q,d1)−R(q,d2)<−δ+0otherwises=1∣S∣∑Seff.\mathrm{eff}(q,d_1,d_2) = \begin{cases} +1 & R(q,d_1) - R(q,d_2) > \delta\\ -1 & R(q,d_1) - R(q,d_2) < -\delta\\ \phantom{+}0 & \text{otherwise} \end{cases} \qquad s = \frac{1}{|S|}\sum_{S}\mathrm{eff}.

s∈[−1,1]s\in[-1,1] for directional probes. Symmetric probes (paraphrases) use eff=1[∣R(q,d1)−R(q,d2)∣>δ]\mathrm{eff}=\mathbb 1[|R(q,d_1)-R(q,d_2)|>\delta], so s∈[0,1]s\in[0,1]. δ is set per model to the median gap between adjacent scores in its top 10 on TREC DL 2019 (§3.3), so a counted difference would reorder neighbours at least half the time. Significance uses a two-sided paired t-test with Bonferroni correction at p<0.01p<0.01.

Three probe strategies (§2.2).

  • Measure and match (MMP). Measure relevance, length, TF and query overlap for judged pairs, then pair documents that match on a control and differ on a variable (e.g. same TF, different relevance grade). Earlier axiom tests such as TFC1 are special cases.
  • Textual manipulation (TMP). Apply a function to a document: shuffle words, shuffle sentences, shuffle only prepositions, remove stopwords and punctuation, lemmatise, insert typos, add DocT5Query terms, or append a non-relevant sentence.
  • Dataset transfer (DTP). Reuse non-IR text pairs: MSPC paraphrases, JFLEG (fluency), GYAFC (formality), WikiTurk (simplicity), WNC (neutrality), XSum/CNN/Daily Mail (succinctness), and factuality pairs. Queries come from titles or from a noun chunk shared by both texts.

MMPs and TMPs use TREC DL 2019 (43 queries, about 215 judgments each) and ANTIQUE (200 test queries). Models: BM25, WMD, SBERT, LightGBM, VBERT (monoBERT), T5-B and T5-L, EPIC, DocT5Query, ANCE and ColBERT.

ABNIRML document-pair probes Three probe strategies on the left produce samples of a query and two documents: measure and match pairs natural documents that match on a control and differ on a variable; textual manipulation edits a document, for example by shuffling words; dataset transfer borrows text pairs such as fluent and non-fluent sentences. In the middle, the ranker scores both documents. On the right, the score gap is compared with a model-specific threshold delta to give plus one, zero or minus one, and the probe score s is the average over samples. Build ⟨q, d₁, d₂⟩ Measure & match same TF (control), different relevance grade (variable) Textual manipulation d₂ = shuffle(d₁), typos(d₁), d₁ + non-relevant sentence Dataset transfer fluent / non-fluent, formal / informal, factual / not Score both ranker R(q, d) BM25, BERT, T5, EPIC, ColBERT, ANCE … Δ = R(q,d₁) − R(q,d₂) Effect and probe score +1 if Δ > δ −1 if Δ < −δ 0 otherwise symmetric: 1 if |Δ| > δ s = mean eff δ = median adjacent gap in its TREC DL 2019 top 10 Behaviour only: probes say what the ranker prefers, not which component causes it.
Original sketch. Each probe sample is a query and two documents that differ in one property, obtained by measuring and matching, by manipulating text, or by borrowing pairs from another dataset. The ranker's score gap, thresholded at δ, gives +1, 0 or −1; the probe score is the average.
  • Beyond TF (Table 1). With TF held constant, contextualised models (SBERT, VBERT, EPIC, T5, ColBERT, ANCE) still separate relevance grades with scores of at least +0.18 on both datasets. Lexical models (BM25, LGBM, DocT5Query) reach at most +0.10. T5-L (+0.53) beats T5-B (+0.43). TF still matters to neural models when it varies.
  • Word order and pre-processing (Table 2). Shuffling words, removing stopwords and punctuation, and lemmatising hurt most trained neural models. Shuffling only sentences still has an effect, so discourse or position plays a role. The untuned SBERT is much less affected, so these sensitivities come from relevance training.
  • Typos. Lexical models handle typos better than trained neural models in all but one case (ANCE on DL19). EPIC and ColBERT, which match at the WordPiece level, are hit hardest.
  • Adding text. Appending a non-relevant sentence often raises neural scores, while BM25 scores fall. Adding DocT5Query terms helps lexical models but often lowers neural scores.
  • Style (Table 3). Contextualised models score paraphrases substantially differently up to 94% of the time. EPIC and ColBERT prefer fluent text (+0.18 to +0.24). Formality preferences differ even between T5 sizes.
  • Factuality. WMD, both T5 models and ColBERT prefer factually correct answers; VBERT, on the same base model as ColBERT, does not.
  • Seeds (§4.2, Table 4). Over five seeds of VBERT and EPIC, MMPs are most stable and TMPs least. The stopword/punctuation probe has SD 0.24 (VBERT) and 0.27 (EPIC), and for VBERT ranges from −0.33 to +0.31.
  • Behaviour only. Probes show that a ranker prefers something, not why or where. The factuality and “added text raises scores” findings call for causal follow-ups such as patching.
  • Artificial documents. TMPs (shuffled words, injected sentences) create text that real collections rarely contain.
  • Probe coverage. The MMPs do not cover all axioms; semantic-matching axioms are probed indirectly through DTPs.
  • Passage ranking only. Long-document aggregation is out of scope.
  • Model set. The models are from 2019–2021. Re-running the probes on LLM rerankers and modern embedding models is a natural next step.
  • Axiomatic causal interventions turns one ABNIRML-style probe (TFC1) into a patching experiment and finds the heads behind it.
  • Cross-encoders as semantic BM25 explains the “beyond exact TF” result mechanistically with soft-TF matching heads.
  • Probing ranking LLMs probes inside RankLlama for the same lexical features ABNIRML controls for from outside.
  • ColBERT is one of the probed models; its factuality preference and typo sensitivity are worth keeping in mind.
  • Activation patching is the step from “which input property matters” to “which component carries it”.

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Derive / compute

    A probe has 200 samples. With the model's δ, 120 samples give R(q,d₁) − R(q,d₂) > δ, 30 give < −δ and 50 fall in between. Compute the probe score s, and explain what changes if the probe is symmetric (paraphrases).

    What a strong answer covers
    • Directional: eff is +1, −1 or 0, so s = (120 − 30 + 0)/200 = 90/200 = 0.45, a moderate preference for d₁.
    • Symmetric: eff = 1 when |R(q,d₁) − R(q,d₂)| > δ and 0 otherwise, so s = (120 + 30)/200 = 0.75, i.e. the model scores the two paraphrases differently 75% of the time.
    • Directional scores lie in [−1, 1] and symmetric ones in [0, 1].
    • A score near 0 can mean no preference or an even split of strong preferences; telling these apart needs the per-sample effects.
  2. Mechanism

    Why does ABNIRML choose δ as the median gap between adjacent scores in each model's top-10 on TREC DL 2019, instead of a fixed threshold or δ = 0?

    What a strong answer covers
    • Models score on different scales (BM25 sums, BERT logits, dot products), so one fixed δ would mean different things for each model.
    • δ = 0 counts tiny score changes that would never reorder a ranked list, making every probe look significant.
    • The median adjacent gap in a real top-10 means a difference larger than δ would swap neighbouring results at least half the time, tying the probe to ranking impact.
    • The δ sweep (§4.1) shows system rankings are stable from the 50th percentile, while very low percentiles are unstable.
  3. Critique

    ABNIRML finds that T5 and ColBERT prefer factually correct answers but VBERT, built on the same BERT base as ColBERT, does not. Why is this a behavioural finding rather than a mechanistic one, and what would a mechanistic follow-up look like?

    What a strong answer covers
    • The probe shows only that output scores differ between factual and non-factual answers; it says nothing about which components produce the difference or whether "knowledge" is involved.
    • The difference could come from surface cues correlated with factuality in the probe data, for example frequency of entity pairs, as the WMD result (also biased toward factual answers, with GloVe embeddings) suggests.
    • Follow-up: build minimal pairs that swap only the entity, patch activations from the factual into the non-factual run, and look for MLP layers or heads that carry the effect, as in ROME's causal tracing.
    • Also run the probe over several training seeds, since ABNIRML shows some preferences flip with the seed alone.
  4. What if…

    What did probing five random-seed versions of VBERT and EPIC reveal, and why does it matter for interpreting any single probe result?

    What a strong answer covers
    • Measure-and-match probes were the most stable across seeds and text-manipulation probes the least.
    • The stopword and punctuation removal probe had SD 0.24 (VBERT) and 0.27 (EPIC); for VBERT the score ranged from −0.33 to +0.31.
    • The CNN succinctness probe for VBERT had SD 0.23, preferring succinct (+0.15) or elaborative (−0.42) text depending on the seed.
    • So a preference seen in one checkpoint may be training noise, not a property of the architecture or pre-training; claims need several seeds.
  5. Design

    Design an ABNIRML-style probe set for a RAG retriever that feeds an LLM, covering one measure-and-match, one textual-manipulation and one dataset-transfer probe. For each, say what d₁ and d₂ are and which behaviour you are testing.

    What a strong answer covers
    • MMP: from judged pairs, hold relevance grade fixed and vary passage length or query-term overlap, to test whether the retriever over-rewards lexical overlap.
    • TMP: append a non-relevant but on-topic sentence or a fake instruction to a relevant passage (d₂) and compare to the original (d₁), to test score inflation and injection risk.
    • DTP: use a claim-verification dataset with supported vs refuted passages to test a preference for factual text, or a summarisation dataset to test succinctness.
    • Choose δ from the retriever's own top-k gaps, apply significance tests with correction, and repeat across seeds or checkpoints.

Done with this page?

Status