Modeladvanced
BM25F
Also called field-weighted BM25.
Extends BM25 to documents with fields by combining weighted, field-normalized term frequencies before the saturation step.
BM25F is the form of BM25 for documents with fields, such as a title, a body and the anchor text of links to the page. For each query term it adds the term frequencies of the fields, each one multiplied by a field weight and divided by a length factor of its own field, and it applies the saturation of BM25 once to that sum. Robertson, Zaragoza and Taylor (2004) proposed it because adding the BM25 scores of the separate fields lets one term count several times at nearly full strength, which undoes the saturation. With one field of weight 1, BM25F is exactly BM25.
The machine
Fields. A document has fields , each a list of tokens. For field let be its length, the average of over the collection and the number of occurrences of in that field. Each field has a weight and a slope .
Score. The length factor of a field and the weighted pseudo-frequency of a term are
and the score, with natural logs, is
The idf is computed on whole documents: counts the documents that contain in any field. Robertson and Zaragoza (2009) write the formula without the factor . This page keeps it, as on the BM25 page. It multiplies every score by one constant and does not change the ranking.
One field. With and , and
which is the tf part of BM25. So BM25F moves the length normalization of BM25 inside each field and keeps one saturation.
Why combine before the saturation. In the two-Poisson view, a document is elite for a term or not, and every field is evidence about that one hidden event. A word in the title and the same word in the body are two observations of the same eliteness, so their counts should add before they pass through the saturating curve. With for every field and integer weights, is the term frequency of the document in which field is written out times, so a title weight of 2 means "read the title twice".
Example. Split each document of the toy collection of the information retrieval pages into a title, its first three tokens, and a body, the rest. Every title has 3 tokens, so and . The body of has 6 tokens and every other body has 7, so . Take , , for both fields, , and the Lucene idf of the whole documents: 0.6931 for "sorted", 0.9445 for "array" and 1.2809 for "search".
- = "the sorted array" + "of ids is compressed with gap encoding". Both "sorted" and "array" are in the title, so for each, with tf part . The score is .
- = "binary search finds" + "a key in a sorted array". "Search" is in the title, with . "Sorted" and "array" are in the body, where , so and the tf part is . The score is .
On q1 = "sorted array search":
| rank | document | BM25F | BM25 on whole documents | sum of field scores |
|---|---|---|---|---|
| 1 | 3.4888 | 3.0283 | 4.2894 | |
| 2 | 2.2517 | 1.6292 | 3.2752 | |
| 3 | 1.8857 | 1.8893 | 1.8857 | |
| 4 | 1.7613 | 1.2743 | 2.5619 | |
| 5 | 0.6880 | 0.6896 | 0.6880 |
The rank column is for BM25F. Document moves above , because its query terms are in its title, while those of are in its body. The last column adds times a BM25 score computed on each field alone. It ranks , whose only query term is "search" in the title, above . In the field sum, one title occurrence of "search" adds , twice the full weight of a single occurrence. In BM25F it adds , still below the bound . On q2 = "posting list merge" BM25F gives 3.3089, and 2.2090 (in id order) and 1.7613, while the field sum puts (2.5619) above and (2.2090) only because "merge" is in its title.
What it counts
- Parameters. , and a weight and a slope for each field: numbers, tuned on judged queries. Short fields such as titles vary little in length and often get a different from the body.
- Statistics. and over whole documents, for each document and field, and for each field.
- Index. Either one posting list for each term and field, merged at query time, or one list for each term whose postings hold a frequency for each field. Scoring costs postings, as for BM25.
- Bound. The contribution of a term is below whatever the fields hold, the same bound as in BM25, so the pruning methods of BM25 such as WAND apply.
Relation to other models
- BM25. BM25F with one field of weight 1 is BM25. With several fields and , , it differs from BM25 on the whole document only in that each field is normalized by its own average length.
- Pivoted length normalization. Each is a pivoted normalization of one field, with pivot and slope .
- Linear combination of field scores. Adding times the BM25 score of each field is the obvious alternative. Each field then has its own saturation, so a term in fields can add up to times the bound of one field. Robertson, Zaragoza and Taylor (2004) show that this rewards a term spread over fields too much compared with a term repeated in one field.
- Anchor text. The text of links that point to a page is a field of the page in web search, and BM25F is a usual way to weight it against the title and the body; see anchor text indexing.
- Learning to rank. BM25F scores, and the scores of single fields, are standard features of learning to rank. The field weights can also be learned directly from judgments.
Known results in the model
- Saturation is kept. For any fields, weights and lengths, the contribution of a term is an increasing function of with the limit . The field sum has no such single bound.
- Weights as repetition. With all and integer weights, BM25F equals BM25 with on the document with each field repeated times (Robertson, Zaragoza and Taylor 2004).
- One idf for each term. The idf is a property of the term in the whole collection, not of a field, because eliteness belongs to the document. A field sum often uses the idf of each field, which is one more way in which it differs from BM25F.
- Use. Search engines that index fields, such as Lucene and the engines built on it, offer queries over several fields that combine the field frequencies before the saturation in this way.
References
- Stephen Robertson, Hugo Zaragoza and Michael Taylor, Simple BM25 extension to multiple weighted fields, Proceedings of CIKM 2004, 42 to 49, why a linear combination of the BM25 scores of the fields breaks the saturation of term frequency, and the combination of weighted field frequencies before the saturation
- Stephen Robertson and Hugo Zaragoza, The probabilistic relevance framework, BM25 and beyond, Foundations and Trends in Information Retrieval 3(4), 333 to 389, 2009, the BM25F formula with per-field weights and per-field length normalization, and eliteness as a property of the whole document
- Stefan Buettcher, Charles L. A. Clarke and Gordon V. Cormack, Information Retrieval, Implementing and Evaluating Search Engines, MIT Press, 2010, Chapter 8 (probabilistic retrieval, BM25 and its extension to fields)
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag E7EQCD Edit this page History Report an error Markdown