ir_explain

a Python Library of Explainable IR Methods

Conference Paper (2025)
Author(s)

Sourav Saha (Indian Statistical Institute)

Harsh Agarwal (Indian Statistical Institute)

V. Viswanathan (TU Delft - Web Information Systems)

A. Anand (TU Delft - Web Information Systems)

Swastik Mohanty (Indian Statistical Institute)

Debapriyo Majumdar (Indian Statistical Institute)

Mandar Mitra (Indian Statistical Institute)

Research Group
Web Information Systems
DOI related publication
https://doi.org/10.1145/3726302.3730343
More Info
expand_more
Publication Year
2025
Language
English
Research Group
Web Information Systems
Pages (from-to)
3563-3572
Reuse Rights

Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.

Abstract

While recent advancements in Neural Ranking Models have resulted in significant improvements over traditional statistical retrieval models, it is generally acknowledged that the use of large neural architectures and the application of complex language models in Information Retrieval (IR) have reduced the transparency of retrieval methods. Consequently, Explainability and Interpretability have emerged as important research topics in IR. Several axiomatic and post-hoc explanation methods, as well as approaches that attempt to be interpretable-by-design, have been proposed. We present ir_explain, an open-source Python library that implements a variety of well-known techniques for Explainable IR (ExIR) within a common, extensible framework. It supports the three standard categories of post-hoc explanations, namely pointwise, pairwise, and listwise explanations. The library is designed to make it easy to reproduce state-of-the-art ExIR baselines on standard test collections, as well as to explore new approaches to explaining IR models and methods. To facilitate adoption, ir_explain is well-integrated with widely-used toolkits such as Pyserini, PyTerrier (work in progress) and ir_datasets. Downstream applications of ir_explain include explaining the Retrieval-Augmented Generation (RAG) pipeline. The development version of the library is available on GitHub. We release the library as a pip package (https://pypi.org/project/ir-explain/); source code is available from https://github.com/souravsaha/ir_explain.