BM25F (Robertson, Zaragoza, and Taylor, 2004) extends BM25 to documents with fields. It turns each field's occurrences into a weighted, length-normalized count, $\widetilde{\mathit{tf}}_{t,d} = \sum_f w_f\, \mathit{tf}_{t,f,d} / B_{f,d}$, and applies BM25's saturation once to the total, so a title weight of 3 makes one title occurrence worth exactly three body occurrences. Adding separate per-field BM25 scores instead lets a term spread across fields escape saturation. When the field scores share one $k_1$, this article proves that no reweighting of their sum ranks three small documents as BM25F does. On a November 2026 snapshot of this site's search index, BM25F put the target first for 57 of 60 known-item queries (the list used to tune it, exact-title rule off), per-field summing for 52, and BM25 on concatenated fields for 50.
Every Cranfield abstract has a title as well as a text. Abstract 390, the theoretical paper that BM25 ranked fourth for query 185, is titled some panel-flutter studies using piston theory. The Cranfield experiments in this topic run title and text together as one bag of words, so a panel in that title counts exactly like a panel in the text. Yet an author chooses a title to say what the document is about, so a query word there is stronger evidence. Weighted zone scoring applies that idea to Boolean matches. This article shows how BM25, with its saturating curve, can give a title word more weight without losing the saturation.
The obvious answer is to compute a BM25 score for each field separately and add the scores with weights. Robertson, Zaragoza, and Taylor (2004) showed that this approach is subtly wrong. They proposed BM25F, which combines the fields before the term frequency saturation rather than after. BM25F became the standard way to rank structured documents with BM25, and it was central to strong web search results at TREC.
Here is the route. First we see what goes wrong when field scores are added, both in numbers and in the terms of the 2-Poisson model. Then we derive the BM25F formula in its two published versions and check that it reduces to BM25. Next we work a small two-field example by hand and prove from it that, when the fields share one saturation, no choice of weights makes a sum of field scores rank like BM25F. Finally we trace BM25F on a real fielded index, the search box of this site, and see where it and per-field summing disagree. The article assumes Okapi BM25; the site's implementation is described in full in How This Search Works.
The problem with adding field scores
BM25's term frequency component saturates. For a document of average length it is $\frac{\mathit{tf}\,(k_1 + 1)}{\mathit{tf} + k_1}$. It rises quickly for the first few occurrences and then levels off at $k_1 + 1$. The saturation encodes the idea, from the 2-Poisson model, that once a document is clearly about a term's concept, further occurrences add little.
Adding per-field scores applies the saturation separately in each field. Each field's first occurrence then receives the steep early part of its own curve. The sum can far exceed what any amount of evidence in a single field could produce. Take two fields, title weighted 3 and body weighted 1, and $k_1 = 1.2$. Under per-field summing, the most a term can contribute is $(3 + 1) \times 2.2 = 8.8$ times its IDF. That is four times the maximum of 2.2 that BM25 allows for one field.
A document that mentions a query term once in the title and once in the body is thus treated as though it held two independent pieces of evidence. Robertson and colleagues argued that occurrences in different fields are evidence about the same underlying question: whether the document is about the term. So they should be combined before the diminishing returns are applied.
The argument from eliteness
The objection can be put in the terms of the 2-Poisson model. There, a document is either elite for a term (it is about the term's concept) or not. The term frequency is evidence about that hidden property, and BM25's saturating curve approximates how strongly a given frequency indicates eliteness.
Scoring each field with its own curve and adding the results makes two assumptions:
- that each term has a separate eliteness property in each field, title-eliteness and body-eliteness;
- that these properties are independent given relevance.
Robertson and Zaragoza (2009, sec. 3.6.1) call this "a little unreasonable". A better assumption is that eliteness belongs to the term and the document, and is shared across fields. What differs by field is the relationship between eliteness and frequency. An author who has chosen a topic packs its words far more densely into a title than into body sentences. Under that assumption, the evidence from all fields should be accumulated first. The saturation is applied once to the total, and only then are the terms combined. That is the order BM25F uses.
What a title occurrence is worth
The difference shows clearly if we ask what a single title occurrence is worth in body occurrences. Take the two-field setting above, with IDF 2.0 and every field of average length.
Example (one title word against any amount of body text). Under per-field summing, no number of body occurrences scores as much as one title occurrence. The title occurrence scores $3 \times 2.0 \times \frac{1 \times 2.2}{1 + 1.2} = 6.0$. The body's score is $2.0 \times \frac{2.2\,n}{n + 1.2}$ for $n$ occurrences, which is below $2.0 \times 2.2 = 4.4$ for every $n$ and approaches 4.4 as $n$ grows without limit (4.348 at 100 occurrences). So under summing, one word in the title outweighs any amount of body text, a ratio no one chose.
- BM25F. One title occurrence adds 3 to the pseudo frequency, so it scores exactly what three body occurrences score, $2.0 \times \frac{3 \times 2.2}{3 + 1.2} = 3.143$. The weight 3 means what it says.
- A second title occurrence. On top of the first, it adds 2.250 under summing, more than the first body occurrence (2.000), because the title's curve is multiplied by 3. Under BM25F it adds 0.524, since the shared curve is already flattening.
Adding per-field scores also makes the field weights hard to interpret. The weight multiplies a value that has already been saturated. So it scales the field's maximum contribution along with its first occurrence, and it has no reading in terms of occurrences. In BM25F, described next, an integer weight has a simple reading: a weight of 3 counts the field as if its text appeared three times (Robertson and Zaragoza, 2009, sec. 3.6.4).
The BM25F formula
Here is the idea in one sentence: turn every field's occurrences into body-equivalent occurrences, add them up, and saturate the total once.
The formal version. BM25F first forms a single pseudo term frequency for each term in each document. It weights each field's frequency and normalizes it by that field's length:
$$\widetilde{\mathit{tf}}_{t,d} = \sum_{f} w_f \, \frac{\mathit{tf}_{t,f,d}}{B_{f,d}}, \qquad B_{f,d} = (1 - b_f) + b_f\, \frac{l_{f,d}}{\bar{l}_f},$$
where:
- $\mathit{tf}_{t,f,d}$ is the number of occurrences of $t$ in field $f$ of document $d$;
- $w_f$ is the field's weight;
- $l_{f,d}$ is the field's length in $d$, and $\bar{l}_f$ the average length of that field across the collection;
- $b_f$ is a per-field length normalization parameter.
The score then applies the saturation once:
$$\mathrm{BM25F}(d, q) = \sum_{t \in q} \mathrm{IDF}(t)\, \frac{\widetilde{\mathit{tf}}_{t,d}\,(k_1 + 1)}{\widetilde{\mathit{tf}}_{t,d} + k_1}.$$
Length normalization has moved inside the field sum, so each field is normalized by its own typical length. A long body and a long title are long in different senses, and a single document-level length would conflate them. This per-field form was used by Zaragoza and colleagues (2004) at TREC, and Robertson and Zaragoza (2009, eqs. 3.19 to 3.21) give it as BM25F. They write the weight as $v_s$ and the field (a stream) as $s$, and they omit the $(k_1 + 1)$ factor, which multiplies every score by the same constant and so does not change the ranking.
The simple version. The original proposal (Robertson, Zaragoza, and Taylor, 2004) normalized by a single document length. Robertson and Zaragoza (2009, eqs. 3.16 to 3.18) call it the simple BM25F. It forms a weighted term frequency and a weighted document length,
$$\mathit{tf}'_{t,d} = \sum_f w_f\, \mathit{tf}_{t,f,d}, \qquad L'_d = \sum_f w_f\, l_{f,d}, \qquad L'_{\mathrm{avg}} = \text{the average of } L'_d \text{ over the collection},$$
and applies ordinary BM25 to them with one $b$:
$$\mathrm{IDF}(t)\, \frac{\mathit{tf}'_{t,d}}{\mathit{tf}'_{t,d} + k_1\left(1 - b + b\, L'_d / L'_{\mathrm{avg}}\right)}.$$
Both versions do the same two things in the same order. They add the fields' weighted frequencies into one number per term, and only then apply the saturation, once. They differ only in where the length normalization sits: on the whole document in the simple version, on each field in the other.
Checking that it reduces to BM25
A new formula should give back the old one when there is nothing new to model. Two special cases confirm that BM25F generalizes BM25 rather than replacing it.
One field. With a single field of weight 1, the pseudo frequency is $\mathit{tf}/B_d$, and the term score is
$$\mathrm{IDF}(t)\,\frac{(\mathit{tf}/B_d)(k_1 + 1)}{\mathit{tf}/B_d + k_1} = \mathrm{IDF}(t)\,\frac{\mathit{tf}\,(k_1 + 1)}{\mathit{tf} + k_1 B_d},$$
after multiplying the numerator and denominator by $B_d$. Since $k_1 B_d = k_1\left(1 - b + b\,L_d/L_{\mathrm{avg}}\right)$, this is exactly BM25. Dividing the frequency by $B_d$ before saturating is the same as scaling $k_1$ by $B_d$ inside the saturation, which is how the BM25 article writes it.
Integer weights, one shared $b$. If the weights of the simple version are integers, it is ordinary BM25 applied to a document in which each field's text has been copied $w_f$ times (Robertson and Zaragoza, 2009, sec. 3.6.4). The reason is a count. In the copied document, term $t$ occurs $\sum_f w_f\, \mathit{tf}_{t,f,d}$ times, which is $\mathit{tf}'_{t,d}$. The copied document has $\sum_f w_f\, l_{f,d}$ tokens, which is $L'_d$, and the average of that over the collection is $L'_{\mathrm{avg}}$. BM25 on the copied collection therefore computes exactly the simple formula; the worked problems check one case. With per-field $b_f$, the copying picture no longer holds exactly. But the weights still count occurrences, since each field's frequency is first scaled by its own normalizer and then multiplied by $w_f$.
The IDF
BM25F keeps one IDF per term, computed over whole documents: a term's document frequency counts documents that contain it in any field. Robertson and Zaragoza (2009, sec. 3.6.3) note that this works well in practice. It can misbehave, though, when one field is very verbose and contains most terms for most documents. They leave the right definition of IDF for fielded documents as an open question.
With the formula in hand, we can put the two methods side by side on a few documents.
A worked comparison
Take two fields: title, with weight 3 and $b = 0.5$, and body, with weight 1 and $b = 0.75$. Let $k_1 = 1.2$ and take a term with IDF 2.0. Three documents contain the term. All their fields are of average length except Z's body, which is twice the average.
Example (a tie under BM25F, a factor of two under summing). Document X has one title occurrence and one body occurrence. Document Y has four body occurrences and none in the title. Under BM25F they tie. A title occurrence is worth three body occurrences, as the weights say, so both have a pseudo frequency of 4 and score 3.385. Under per-field summing X scores 8.000, more than twice Y's 3.385. Its single title occurrence and single body occurrence each receive the steep first step of a separate saturation curve.
| Document | Title occurrences | Body occurrences | Sum of field scores | Pseudo tf | BM25F |
|---|---|---|---|---|---|
| X | 1 | 1 | 8.000 | 4.000 | 3.385 |
| Y | 0 | 4 | 3.385 | 4.000 | 3.385 |
| Z (body twice the average length) | 1 | 4 | 8.885 | 5.286 | 3.586 |
Z has one more title occurrence than Y. Its body is long, so its four body occurrences are discounted by the length normalization. BM25F ranks it a little above X and Y. Per-field summing ranks it about 11 percent above X and far above Y. So the two methods disagree most about Y, the document whose evidence is all in one field.
The intermediate values, rounded to three decimals, are:
- X under summing. Title: $3 \times 2.0 \times \frac{1 \times 2.2}{1 + 1.2} = 6.000$. Body: $2.0 \times \frac{2.2}{2.2} = 2.000$. Sum 8.000.
- X under BM25F. Pseudo frequency $3 \times 1/1 + 1 \times 1/1 = 4$. Score $2.0 \times \frac{4 \times 2.2}{4 + 1.2} = 3.385$.
- Y. One field only, so both methods give $2.0 \times \frac{4 \times 2.2}{4 + 1.2} = 3.385$. When all the evidence is in one field, summing and BM25F agree.
- Z. The body normalizer is $B = 0.25 + 0.75 \times 2 = 1.75$, so the body contributes $4/1.75 = 2.286$ to the pseudo frequency, which is $3 + 2.286 = 5.286$, and BM25F gives $2.0 \times \frac{5.286 \times 2.2}{5.286 + 1.2} = 3.586$. Summing gives the title's 6.000 plus the body's $2.0 \times \frac{4 \times 2.2}{4 + 1.2 \times 1.75} = 2.885$, for 8.885.
No choice of weights repairs the sum
The comparison used the same weights, 3 and 1, in both methods. A sum of field scores might still be made to rank like BM25F with other weights. For the setting of this example, in which both field scores saturate with the same $k_1$, it cannot, and three documents are enough to prove it.
Here is the idea in one sentence: BM25F says that X and Y are equally good and that a document with two title occurrences is better than both, and no pair of weights on the two field scores can say both things at once.
The formal version. Let a sum of field scores be $a\, s(\mathit{tf}_{\text{title}}) + c\, s(\mathit{tf}_{\text{body}})$ with any weights $a, c \ge 0$, not both zero, where $s(x) = 2.0 \times \frac{2.2\,x}{x + 1.2}$ is one field's BM25 score for this term at average length. The values needed are $s(1) = 2.000$, $s(2) = 2.750$ and $s(4) = 3.385$. Add a third document W with two title occurrences and none in the body, all fields of average length. Under BM25F, with weights 3 and 1:
| Document | Title occurrences | Body occurrences | Pseudo tf | BM25F |
|---|---|---|---|---|
| W | 2 | 0 | 6 | $2.0 \times \frac{6 \times 2.2}{6 + 1.2} = 3.667$ |
| X | 1 | 1 | 4 | 3.385 |
| Y | 0 | 4 | 4 | 3.385 |
So BM25F ranks W above X, and Y level with X. For the sum to agree, two conditions must hold.
- Y is not below X. That is $c\, s(4) \ge a\, s(1) + c\, s(1)$, or $a \le \frac{s(4) - s(1)}{s(1)}\, c = 0.692\, c$.
- W is above X. That is $a\, s(2) > a\, s(1) + c\, s(1)$, or $a > \frac{s(1)}{s(2) - s(1)}\, c = 2.667\, c$.
The first needs $a \le 0.692\,c$ and the second needs $a > 2.667\,c$. If $c > 0$ these contradict each other. If $c = 0$ the first forces $a \le 0$, so both weights are zero, which was excluded. No weights satisfy both, so no weighted sum of the two field scores orders W, X and Y as BM25F does. The script also searches every pair of weights from 0 to 20 in steps of 0.01 and finds none.
Example (what the proof covers). The argument is a proof for this setting and not a general theorem. Its setting is that both field scores saturate with the same $k_1 = 1.2$, the fields are of average length, and BM25F uses weights 3 and 1. A sum whose body score had its own, much larger $k_1$ can order W, X and Y as BM25F does. With a body $k_1$ of 1,000 and the title's still 1.2, the weights $a = 2.988\,c$ put Y level with X, at 7.976 for $c = 1$, and W above both, at 8.217. Any body $k_1$ above 32 allows this, and none at or below 32 does. A very large $k_1$ makes the body score nearly linear in the count. In the limit where both field scores are linear, the sum with weights 3 and 1 is the pseudo frequency itself, which ranks single-term documents of average length exactly as BM25F does. What the three documents show is that a sum of field scores with one shared saturation, the natural rival of BM25F, cannot be repaired by reweighting.
The same conclusion can be read from one number. Write $F(i, j)$ for the score of a document with $i$ title and $j$ body occurrences. For any function of the form $g(i) + h(j)$, the mixed difference $F(1,1) - F(1,0) - F(0,1) + F(0,0)$ is zero, because $g$ and $h$ each appear once with each sign. For BM25F it is $3.385 - 3.143 - 2.000 + 0 = -1.758$. The second occurrence, in whichever field it falls, is worth less because of the first, and a sum of separate field scores has no term through which one field's count can affect the other's contribution. The counterexample above shows more than this, since it concerns the ranking and not only the score values.
BM25F on this site
The Cranfield abstracts have only a title and a text, and the Cranfield experiments in this topic do not separate them. For a fielded index with real queries, we turn to the search box of this site, which ranks its pages with BM25F (app/search.py). It is a small but complete instance. How This Search Works describes the whole engine as it stands and works a current score by hand. This section uses it only to compare BM25F with per-field summing. The site's full search results now also fuse this BM25F ranking with a dense ranking by reciprocal rank fusion, while the instant results stay BM25F alone. Hybrid Retrieval analyses that kind of combination, and Dense Passage Retrieval compares a dense retriever with this BM25F ranker on the site's passages.
The numbers in this section are a snapshot taken in November 2026, when the index held 152 articles. They come from the live index, so they shift whenever an article is added or edited. The exact values, counts and even the rankings below may no longer hold for the site as it stands today. The script tools/experiments/search/bm25f_site.py rebuilds the index from the current pages and recomputes every one of them. What the section illustrates, the gap between BM25F and per-field summing, does not depend on the exact values.
Fields and parameters
At the time of the snapshot, each article was split into four fields:
| Field | Contents | Weight $w_f$ | $b_f$ | Average length (tokens) |
|---|---|---|---|---|
| title | the article's title | 12 | 0.5 | 3.8 |
| summary | the one-paragraph summary and the tags | 1 | 0.5 | 54.9 |
| headings | all section headings, joined | 4 | 0.5 | 29.1 |
| body | the text, with math and code removed | 1 | 0.5 | 2,117.2 |
Since the snapshot, a fifth field, math, has been added. It holds the names of the Greek letters used in a page's formulas, with weight 0.1 and $b_f = 0.5$, so that a search for lambda can find a $\lambda$ without letting formulas outrank prose. The other weights, the $b_f$ and $k_1$ are unchanged.
Lengths count stop words, since positions are kept for phrase queries. The weights and $k_1 = 1.2$ were tuned on the first half of a list of known-item queries (tools/search/queries.tsv) and checked on the second half. In such a list, each query has one article that should come first. The implementation follows Robertson and Zaragoza (2009, eq. 3.21) closely. It omits the $(k_1 + 1)$ factor, and it uses one IDF over whole pages, Lucene's $\ln\left(1 + \frac{N - \mathit{df} + 0.5}{\mathit{df} + 0.5}\right)$. Its term score is therefore
$$\mathrm{IDF}(t)\,\frac{\widetilde{\mathit{tf}}_{t,d}}{k_1 + \widetilde{\mathit{tf}}_{t,d}},$$
which is at most the IDF itself.
Example (what a title weight of 12 buys). A single occurrence in a title of average length earns about 91 percent of a term's maximum score on its own. The title weight of 12 looks large next to the body's 1, and this is its effect: a title of average length (3.8 tokens) has $B = 1$, so one occurrence there adds 12 to the pseudo frequency, and the saturation factor is $12/13.2 = 0.91$. A single title word nearly saturates the term, which is what a known-item search wants.
Robertson and Zaragoza (2009, eq. 5.1) suggest scaling $k_1$ when fields are weighted, since the weights inflate the pseudo frequencies. The factor is the ratio of weighted to unweighted average document length. Here the ratio is $\frac{12 \times 3.8 + 54.9 + 4 \times 29.1 + 2{,}117.2}{3.8 + 54.9 + 29.1 + 2{,}117.2} = 1.06$ (rounded), because the body dominates both sums. So the suggested $k_1$ would be about 1.27, close to the 1.2 the tuning chose.
One term, traced
For the query pagerank, the term occurs in 9 of the 152 articles (one of them this one), so its IDF is $\ln(1 + 143.5/9.5) = 2.779$. In the article PageRank it appears in every field:
| Field | tf | Length | $B_f$ | $w_f\,\mathit{tf}/B_f$ |
|---|---|---|---|---|
| title | 1 | 1 | $0.5 + 0.5 \times 1/3.8 = 0.63$ | 19.04 |
| summary | 3 | 72 | 1.16 | 2.60 |
| headings | 2 | 102 | 2.25 | 3.55 |
| body | 48 | 5,445 | 1.79 | 26.88 |
The table's inputs are rounded and its last column is not: the column was computed from the unrounded lengths and averages. The title row shows the difference. With the average title length rounded to 3.8, $B_f = 0.632$ and $12/0.632 = 19.00$. The unrounded average was a little above 3.8. A value of 19.04 is what a total of 583 or 584 title tokens over the 152 articles gives (an average of 3.84 either way, and $B_f = 0.630$); neighboring totals give 19.03 or 19.05.
The pseudo frequency is the sum of the last column, $19.04 + 2.60 + 3.55 + 26.88 = 52.07$, about 52.1, and the saturation factor is $52.1/(1.2 + 52.1) = 0.977$. The term score is $2.779 \times 0.977 = 2.72$, close to the ceiling of 2.78. Per-field summing would instead give each field its own factor, $w_f$ times $x/(1.2 + x)$ for that field's normalized frequency $x$, and add them. That gives a score of 28.3, ten times the ceiling that BM25F respects.
For a one-word query the inflation hardly matters. Every article is inflated by the same rule, and both methods put PageRank first. It matters when a query has several words and the inflation favors whichever word happens to appear in many fields. The next section shows that happening on one of the site's real queries.
Where the two methods disagree
The known-item query watch a web page for changes is meant to find Monitoring Websites. After stop-word removal and stemming it has four terms. Watch is rare (it occurs in 8 articles), and web, page, and chang are common. The figure shows each term's contribution to the two leading articles under both methods.
The article Web Crawling contains web in all four fields. Under per-field summing, each field contributes its own saturated score, weighted by up to 12. So web, a common term with IDF about 1.23, contributes about 12.2. Under BM25F the same four fields are pooled into one pseudo frequency of about 38, and the term contributes 1.20, just under its IDF. The rare and specific word watch occurs only in the body and summary of Monitoring Websites. Under BM25F it then decides the ranking, as it should.
One query could be a fluke. Over the whole list of known-item queries (60 at the time of the snapshot), the scoring function makes a visible difference. The comparison below uses three functions with the same parameters. The search's rule that puts exact title matches first is switched off, so that only the scoring differs:
| Scoring | Queries with the target first (of 60) | Mean reciprocal rank |
|---|---|---|
| BM25F, as deployed | 57 | 0.975 |
| Per-field BM25, weighted and summed | 52 | 0.915 |
| BM25 on the four fields concatenated | 50 | 0.904 |
Concatenating the fields throws away the knowledge that a title word matters more than a body word. Summing per-field scores keeps that knowledge but inflates terms that are spread across fields. BM25F keeps the first without the second. The list is small and was used to tune the weights, so the comparison favors the deployed function somewhat. But the per-query failures of the alternatives are of the kinds the theory predicts:
- common words that appear in many fields of the wrong article;
- articles whose titles alone should have decided the ranking.
Saturation has a cost of its own, which appeared after the snapshot as the wiki grew. A term that already saturates in one article's title is near its ceiling of $\text{idf}$. An article that mentions the same term fifty times in its body is near the same ceiling. So a large title weight cannot separate them. In November 2026 the query bm25 began to rank Comparing Ranking Models above Okapi BM25.
The search now adds a small bonus outside the saturation to a page whose title terms $T$ contain every query term in $Q$. The bonus is $2 \times |Q| / |T|$, larger the more of the title the query covers. On the known-item list it fixed bm25 without costing any other query. The result was the same for any weight from 0.5 to 8 (tools/search/evaluate.py). How This Search Works traces the bonus and the exact-title rule on a current query.
Why the browser can rank like the server
BM25F combines fields before saturating, but it still adds up over query terms. A document's score is a sum of one contribution per term, and each contribution depends only on the term and the document. The site exploits this. When it starts, it precomputes the BM25F contribution of every (term, page) pair. The browser receives those numbers, and its instant results only add them up (app/static/js/search-core.js). This is the same move as storing precomputed impacts in an index, described in implementing BM25. It works for BM25F for the same reason. The same additivity gives every term a largest possible contribution, and Dynamic Pruning with MaxScore and WAND uses those per-term bounds to skip postings on this site's BM25F index without changing the top results.
Choosing the weights
The site's weights came from a grid search on known-item queries. RankNet works through learning them instead from graded judgments with a pairwise cost, and states what that experiment can and cannot show. In general the weights are chosen the same way, by tuning on judged queries, with more to tune. BM25F has more parameters than BM25: a weight and a length normalization parameter for every field, plus $k_1$. They are tuned on queries with relevance judgments. The usual method optimizes a measure such as nDCG over a grid, or with coordinate search, one parameter at a time.
Typical findings give high weights to the title and to anchor text, which are short and written to describe the page, and lower weights to the body. Anchor text is aggregated from all links pointing to a page, so its length varies enormously. Fields of such different lengths were the reason for giving each field its own $b$ (Zaragoza et al., 2004).
The values can be far from BM25's defaults. Zaragoza and colleagues reported these for the TREC 2003 web tasks (Robertson and Zaragoza, 2009, Table 3.1):
- for the topic distillation task, $k_1 = 27.5$, title weight 38.4, anchor weight 35 and body weight 1, with $b$ of 0.95, 0.6 and 0.7 for title, anchor and body;
- for the named-page task, $k_1 = 4.9$, with title and anchor weights of 13.5 and 11.5.
The large $k_1$ goes with the large weights. The weights inflate the pseudo frequencies, so the saturation constant must grow with them for the curve to keep its shape.
With many parameters, a full grid is too expensive. Robertson and Zaragoza (2009, sec. 5.2.1) suggest a schedule that tunes strongly dependent parameters together:
- first $k_1$ and a single $b$, with all weights 1 (plain BM25);
- then the field weights jointly, rescaling $k_1$ as described above;
- then $k_1$ and each $b_f$ one at a time, repeating until nothing improves.
The number of parameters makes overfitting a real risk. The test collection discipline of tuning on development queries and reporting on separate test queries matters more here than for plain BM25.
Where BM25F is used
BM25F was used in strong submissions to TREC web search tracks in the mid-2000s (Zaragoza et al., 2004). The idea of combining field frequencies before saturating has carried into production search libraries. Elasticsearch, for example, offers a combined_fields query that searches several text fields as if their contents had been indexed into one combined field. Its documentation says that the scoring is based on the simple BM25F formula of Robertson and Zaragoza (2009), and adds that the scores do not obey the BM25F model perfectly (Elastic, n.d.). In systems that use learning to rank, BM25F scores, or per-field BM25 scores, are common features, so that a learned model can decide how much each field should count. Entity search is another use: Entity-Oriented Search ranks 4.6 million entity descriptions with BM25F.
Worked problems
These problems are posed on the article's two-field example (title weight 3 with $b = 0.5$, body weight 1 with $b = 0.75$, $k_1 = 1.2$, IDF 2.0); the course text has no exercises on BM25F. The script tools/experiments/search/bm25f_example.py checks every number.
Problem 1 (a long title and a short body). A document has the term twice in a title that is 1.5 times the average title length, and three times in a body that is half the average body length. Find its pseudo frequency, its BM25F score, and the sum of its per-field scores.
Solution. The normalizers are $B_{\text{title}} = 0.5 + 0.5 \times 1.5 = 1.25$ and $B_{\text{body}} = 0.25 + 0.75 \times 0.5 = 0.625$. The title contributes $3 \times 2/1.25 = 4.8$ and the body $1 \times 3/0.625 = 4.8$, so the pseudo frequency is 9.6. Then
$$\mathrm{BM25F} = 2.0 \times \frac{9.6 \times 2.2}{9.6 + 1.2} = 2.0 \times 1.9556 = 3.911.$$
For the sum, the title's normalized frequency is $2/1.25 = 1.6$ and its score is $3 \times 2.0 \times \frac{1.6 \times 2.2}{1.6 + 1.2} = 7.543$. The body's normalized frequency is 4.8 and its score is $2.0 \times \frac{4.8 \times 2.2}{4.8 + 1.2} = 3.520$. The sum is 11.063, about 2.8 times the BM25F score and 2.5 times the ceiling of 4.4 that a single saturation allows.
Problem 2 (the simple version is BM25 on a copied document). Use the simple version with weights 3 and 1 and one $b = 0.75$, without the $(k_1 + 1)$ factor. A document has a 4-token title containing the term once and a 96-token body containing it twice. Across the collection the average title has 5 tokens and the average body 120. Compute the simple BM25F score, and check that BM25 gives the same score to the document obtained by writing the title three times before the body.
Solution. The weighted frequency is $3 \times 1 + 2 = 5$, the weighted length $3 \times 4 + 96 = 108$, and the weighted average length $3 \times 5 + 120 = 135$. The normalizer is $0.25 + 0.75 \times 108/135 = 0.85$, and the score is
$$2.0 \times \frac{5}{5 + 1.2 \times 0.85} = \frac{10}{6.02} = 1.661.$$
The copied document has $3 \times 4 + 96 = 108$ tokens, of which $3 \times 1 + 2 = 5$ are the term. Every document of the copied collection gains two extra titles, so its average length is $3 \times 5 + 120 = 135$. BM25 therefore sees the same three numbers, 5, 108 and 135, and returns the same 1.661. The script builds the copied token list and confirms that the two scores are equal.
Problem 3 (rescaling $k_1$). For the collection of Problem 2, find the $k_1$ that Robertson and Zaragoza's rule (2009, eq. 5.1) suggests for weights 3 and 1 when plain BM25 uses $k_1 = 1.2$.
Solution. The rule multiplies $k_1$ by the ratio of the weighted to the unweighted average document length. That ratio is $\frac{3 \times 5 + 120}{5 + 120} = \frac{135}{125} = 1.08$, so the suggested value is $1.2 \times 1.08 = 1.296$. The change is small because the body, whose weight is 1, holds most of the tokens. A weight of 3 on a field that held most of the tokens would nearly triple $k_1$.
Problem 4 (a short title). A term occurs once in a title that is half the average title length and nowhere else. Find how many body occurrences it is worth in a body of average length, and how many in a body of twice the average length.
Solution. The title's normalizer is $B_{\text{title}} = 0.5 + 0.5 \times 0.5 = 0.75$, so the occurrence adds $3 \times 1/0.75 = 4$ to the pseudo frequency. A body of average length has $B_{\text{body}} = 1$, so four body occurrences add the same 4. A body of twice the average length has $B_{\text{body}} = 0.25 + 0.75 \times 2 = 1.75$, and $n$ occurrences add $n/1.75$, which equals 4 when $n = 7$. Both documents then score $2.0 \times \frac{4 \times 2.2}{4 + 1.2} = 3.385$, the score of X and Y above. A short title raises the worth of its words, and a long body lowers the worth of its own.
What we have learned
Fields carry evidence of different strength, but they are evidence about one question: whether the document is about the term. Adding a BM25 score per field answers that question once per field, so a term spread across fields escapes saturation. On this site's snapshot that let web swell to ten times its BM25F contribution. BM25F instead converts each field's occurrences into weighted, length-normalized counts, adds them, and saturates once. A weight then means what it says: a title weight of 3 makes one title occurrence worth three body occurrences. With one shared saturation, no reweighting of the summed field scores can reproduce that, as documents W, X and Y showed.
BM25 and BM25F both treat a query as a flat list of terms. A searcher may mean something more structured: panel and flutter together, experimental insisted on, one concept counting twice as much as another. Bayesian inference networks represent that structure explicitly, and they rank query 185 with it. Term dependence models take up the first of those cases, query words that should occur near each other.
BM25F combines the evidence of several fields inside one scoring function, before saturation. Rank fusion is the other way to combine evidence: it merges the finished rankings of separate systems, after each has scored the documents on its own.
References
- Elastic (n.d.). Combined fields. Elasticsearch query DSL reference. elastic.co/docs/reference/query-languages/query-dsl/query-dsl-combined-fields-query (accessed November 2026). record
- Robertson, S., Zaragoza, H., and Taylor, M. (2004). Simple BM25 extension to multiple weighted fields. In Proceedings of CIKM 2004, 42–49. record · 3 pages
- Robertson, S., and Zaragoza, H. (2009). The probabilistic relevance framework: BM25 and beyond. Foundations and Trends in Information Retrieval, 3(4), 333–389. record · 8 pages
- Zaragoza, H., Craswell, N., Taylor, M., Saria, S., and Robertson, S. (2004). Microsoft Cambridge at TREC-13: Web and HARD tracks. In Proceedings of the Thirteenth Text REtrieval Conference (TREC 2004). record
Reviewed: verified, 16 Nov 2026 · checked against sources, 23 Nov 2026 · citations checked, 16 Nov 2026 · editorial review, 23 Nov 2026 · 12 revisions