Interpreting Multilingual and Document-Length Sensitive Relevance Computations in Neural Retrieval Models through Axiomatic Causal Interventions
Oliver Savolainen, Dur e Najaf Amjad, Roxana Petcu
TL;DR
This reproducibility study investigates how neural retrieval models encode task-relevant signals, focusing on term frequency and document length, using axiomatic causal interventions via activation patching. It reproduces key findings from the original work on TAS-B, showing that term-frequency information is distributed across occurrences in early layers and moves to the CLS token in later layers, and that specific attention-heads contribute to these signals. The authors extend the analysis to Spanish and Chinese data (mMARCO) and to document-length encoding via the LNC1 axiom, demonstrating partial cross-language generalization and CLS-centered length encoding. The results underscore the utility of activation patching for mechanistic interpretability in information retrieval, while also highlighting reproducibility challenges and the need for more robust, cross-language interpretability methods.
Abstract
This reproducibility study analyzes and extends the paper "Axiomatic Causal Interventions for Reverse Engineering Relevance Computation in Neural Retrieval Models," which investigates how neural retrieval models encode task-relevant properties such as term frequency. We reproduce key experiments from the original paper, confirming that information on query terms is captured in the model encoding. We extend this work by applying activation patching to Spanish and Chinese datasets and by exploring whether document-length information is encoded in the model as well. Our results confirm that the designed activation patching method can isolate the behavior to specific components and tokens in neural retrieval models. Moreover, our findings indicate that the location of term frequency generalizes across languages and that in later layers, the information for sequence-level tasks is represented in the CLS token. The results highlight the need for further research into interpretability in information retrieval and reproducibility in machine learning research. Our code is available at https://github.com/OliverSavolainen/axiomatic-ir-reproduce.
