TF-IDF and BM25 Are Exact KL Divergences

Ivan Silajev
9/12/2026
cs.IRcs.CL

No confident code implementation found for this paper.

Abstract

TF-IDF and BM25 are two of the most widely used methods for scoring query-document relevance, yet neither has a standard probabilistic derivation that justifies it as a statistical method within a unified framework. We address this gap by showing that both scoring methods admit an exact interpretation as Kullback-Leibler divergences between two probability models.

Show full abstract

We treat the BM25 variant that includes the plus 1 correction in the IDF term, which is the one used in practice, and also discuss the original BM25 formulation without that correction. The resulting framework provides a common theoretical basis for TF-IDF and BM25, clarifies what they measure, and allows them to be compared theoretically with other information retrieval methods rather than only experimentally.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{silajev2026tfidf,
  title  = {TF-IDF and BM25 Are Exact KL Divergences},
  author = {Ivan Silajev},
  year   = {2026},
  eprint = {2609.14016},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.14016v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.14016.svg)](https://codeofpaper.com/paper/2609.14016)

Discussion