ScholarGate
Assistant
Process / pipelineInformation-retrieval evaluation / ranking functions

BM25 Probabilistic Ranking (Okapi)

BM25, the Okapi 'Best Matching 25' function, is the dominant classical ranking function in information retrieval and the workhorse term-weighting scheme behind most lexical search engines and bibliographic databases. Developed by Stephen Robertson, Karen Spärck Jones and colleagues at City University London and formalized in Robertson and Zaragoza's 2009 monograph on the Probabilistic Relevance Framework, BM25 scores a document against a query as a sum, over query terms, of inverse-document-frequency weights multiplied by a saturating, length-normalized transform of within-document term frequency. Two free parameters control how quickly repeated terms stop adding evidence (k1) and how strongly document length is penalized (b). BM25 consistently outperformed plain TF-IDF in the TREC evaluations and remains the standard first-stage retrieval baseline against which modern neural rankers are measured.

Apply with LacunaSoonApply, compare, get guidance
Tools & resources
Download slides
Learn & explore
VideoSoon

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

Sources

  1. Robertson, S., & Zaragoza, H. (2009). The Probabilistic Relevance Framework: BM25 and Beyond. Foundations and Trends in Information Retrieval, 3(4), 333-389. DOI: 10.1561/1500000019
  2. Robertson, S. E., Walker, S., Jones, S., Hancock-Beaulieu, M. M., & Gatford, M. (1995). Okapi at TREC-3. In Overview of the Third Text REtrieval Conference (TREC-3), NIST Special Publication 500-225, 109-126. link

How to cite this page

ScholarGate. (2026, June 23). BM25 Probabilistic Ranking (Okapi BM25 Term-Weighting and Document Scoring). ScholarGate. https://scholargate.app/en/bibliometrics/bm25-ranking

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

Compare side by side

Referenced by

ScholarGateBM25 Probabilistic Ranking (Okapi) (BM25 Probabilistic Ranking (Okapi BM25 Term-Weighting and Document Scoring)). Retrieved 2026-06-24 from https://scholargate.app/en/bibliometrics/bm25-ranking · Dataset: https://doi.org/10.5281/zenodo.20539026