Skip to content

Probing Ranking LLMs: A Mechanistic Analysis for Information Retrieval

optionalextendedfrontierpaperrubric 8/122024 · ICTIR 2025 · ~30 min

Tanya Chowdhury, Atharva Nijasure, James Allan

Status

TL;DR. Which classic learning-to-rank features do LLM rerankers compute internally? The authors probe RankLlama2-7b and 13b, plus their own RankLlama3-8b and RankPythia-6.9b (LoRA rank 32, MS MARCO). They fit a Lasso regression probe per layer and feature on mean-pooled residual activations. Coverage features and mean length-normalised TF are strongly encoded; BM25 and sum or max of TF are not.

For each layer, mean-pool the post-MLP residual stream over the input tokens. Fit a sparse linear probe (Lasso, α = 0.1, 5-fold CV, 60:20:20 split) to one MSLR-style feature at a time, and read R² (§3). Features with R² > 0.85 in some layer count as strong positives; those below 0.1 in the final layer count as absent. The probe set is 19 MSLR features, five statistical similarity scores (tf·idf cosine, Euclidean, Manhattan, KL, JS), and BERT and T5 embedding similarity.

Results. Across the four models, coverage features reach R² of about 0.95–0.98. Statistical similarity scores correlate poorly, with Euclidean highest at about 0.6 and tf·idf cosine lowest. BERT and T5 similarity reach moderate R² (0.7 on 7b, 0.82 on 13b). On out-of-distribution data (200 queries each from BEIR SciDocs and SoDup, StackOverflow duplicate questions), the feature patterns hold for three models. For RankLlama2-13b, stream length, sum and mean of TF, and mean of tf·idf are decodable only in-distribution, which the authors read as overfitting to MS MARCO (§4.3).

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. Mechanism

    The probes regress an IR feature (e.g. covered query-term ratio) on mean-pooled residual activations of one layer with Lasso (α = 0.1) and report R². What does a high R² at layer l establish, and what does it not?

    What a strong answer covers
    • It shows the feature is linearly decodable from a sparse set of neurons at that layer, on this data distribution.
    • It does not show the model uses the feature for its score; decodable information can be unused or a by-product of correlated features.
    • Mean pooling over tokens can hide where the feature is computed (query vs document tokens).
    • A causal test would be needed, e.g. ablating or patching the identified neurons and measuring the change in the reranking score.
  2. Critique

    The paper finds covered-query-term ratio and mean of length-normalised TF strongly encoded (R² > 0.85) but BM25, sum and max of normalised TF near zero. Give two reasons a ranker could implement BM25-like behaviour and still fail a BM25 probe.

    What a strong answer covers
    • The model may compute a non-linear or semantic variant (soft TF, saturating) that a linear probe on the BM25 value cannot recover.
    • Per-term computation can be spread across tokens and heads; mean-pooling across the sequence destroys the per-term structure BM25 needs.
    • BM25 components (IDF, TF, length) may be present separately without their product being linearly encoded.
    • The cross-encoder BM25 paper finds exactly such a decomposition causally in a smaller model, so the two results are compatible.
  3. Design

    Turn one finding of this paper into a causal experiment on RankLlama, in the style of activation patching.

    What a strong answer covers
    • Pick a feature with high R², e.g. covered query-term number, and build minimal pairs that differ only in how many query terms the passage covers.
    • Patch the residual stream (or the probe's top neurons) from the higher-coverage run into the lower one at the layers where R² rises.
    • Measure the normalised change in the reranking score; compare with patching random neurons of the same count.
    • If patching moves the score, the feature is used, not just decodable.

Done with this page?

Status