The 2-Poisson model (Bookstein and Swanson, 1974; Harter, 1975) describes a term's count in a document as a mixture of two Poisson distributions, $\pi\,\mathrm{Pois}(\lambda_E) + (1 - \pi)\,\mathrm{Pois}(\lambda_N)$: elite documents, which are about the term's concept, and non-elite ones. Fitted by EM to Cranfield, it reproduces the counts of flutter almost exactly ($\pi = 0.036$, $\lambda_E = 5.48$, $\lambda_N = 0.004$), where a single Poisson predicts essentially none of the 22 abstracts with six or more occurrences. For four terms, the posterior probability of eliteness and the eliteness term weight estimated from Cranfield's judgments are settled by the second or third occurrence, and the weight is bounded. Robertson and Walker (1994) kept only that shape, the saturating curve $\mathit{tf}/(\mathit{tf} + k_1)$ of BM25, which was chosen, not derived.
In the Cranfield collection of 1,400 aerodynamics abstracts, the word flutter appears in 56 documents, about 0.2 times per document on average. If occurrences were scattered at random through the text, like typing errors, essentially no document would contain it six or more times. In fact 22 documents do. Most documents never mention flutter, and a small group mention it again and again, because they are about flutter. The Binary Independence Model sees none of this: for query 185, experimental studies on panel flutter, it left 12 abstracts tied, four of them relevant. So what does a word's count tell us about whether a document is about it, and how much should each further occurrence count?
The 2-Poisson model answers with a hidden variable: the count is evidence of whether the document is about the term's concept, and that evidence is nearly complete after two or three occurrences. It describes a term's frequency in a document as depending on whether the document is about the term's concept. The model is too complex to use directly in ranking, but its shape is the source of the term frequency saturation in BM25.
Here is the route. First we see why the simplest model of counts, a single Poisson distribution, fails on real terms. Then we fit the two-class mixture to Cranfield counts by EM. Next we compute how quickly the count settles whether a document is "about" a term, and the term weight that implies, using Cranfield's relevance judgments. Finally we follow the path from that weight to the BM25 formula, and note where the model falls short. The fits come from tools/experiments/cranfield/twopois.py and twopois_eliteness.py (terms are stemmed, so boundary appears in the data as boundari).
Why a single Poisson fails
The Poisson distribution describes counts of events that occur independently at a constant average rate. With mean $\lambda$, the probability of exactly $k$ occurrences is
$$P(k) = \frac{e^{-\lambda} \lambda^k}{k!}.$$
If a term occurred at a constant rate throughout the collection, its count in a document would be Poisson with $\lambda$ equal to its average count per document. We fit that model to four Cranfield terms, after stemming, and compare its predictions with the actual number of documents at each count. It fails badly. For flutter:
| Occurrences in document | 0 | 1 | 2 | 3 | 4 | 5 | 6 or more |
|---|---|---|---|---|---|---|---|
| Documents observed | 1,344 | 7 | 3 | 8 | 8 | 8 | 22 |
| Single Poisson, $\lambda = 0.201$ | 1,144.6 | 230.6 | 23.2 | 1.6 | 0.1 | 0.0 | 0.0 |
The rate is the mean count, 282 occurrences in 1,400 documents, $\lambda = 282/1400 = 0.2014$, and the predictions use that unrounded value: $1400\, e^{-0.2014} = 1144.6$ documents with no occurrence and $1144.6 \times 0.2014 = 230.6$ with one.
The single Poisson predicts far too few documents with no occurrences, far too many with exactly one, and almost none with many. The real distribution has two humps: a large mass at zero and a long tail of documents that use the word heavily. The same pattern holds for the other three terms fitted below (shock, heat and boundary). Harter (1975) called words of this kind specialty words, and contrasted them with non-specialty words, whose counts he took to follow a single Poisson distribution. (Maximum Likelihood Estimation fits a third model to the same counts, the negative binomial, and compares the three by their maximized log-likelihoods.)
Two humps suggest two kinds of document. That is the model's next step.
The 2-Poisson mixture
Bookstein and Swanson (1974) and Harter (1975) proposed that a content term divides the documents into two classes:
- Elite documents are about the concept the term represents. In them the term occurs at a high rate, $\lambda_E$.
- Non-elite documents are not about the concept. In them the term occurs only incidentally, at a low rate, $\lambda_N$.
If a fraction $\pi$ of documents is elite, the count of the term in a random document follows a mixture of two Poisson distributions:
$$P(k) = \pi\, \frac{e^{-\lambda_E} \lambda_E^k}{k!} + (1 - \pi)\, \frac{e^{-\lambda_N} \lambda_N^k}{k!}.$$
The model can be read as a story of how a document is written (Robertson and Zaragoza, 2009, §3.4.1). The author first decides, for each term, whether the document will be about that term's concept. Then the words are written, and each word position is filled with the term at the rate its class dictates. The decision is invisible; only the counts are observed. When the counts come in time order and the hidden class tends to persist from one to the next, the same mixture becomes a Poisson hidden Markov model; Hidden Markov Models fits one to weekly deaths by the same EM algorithm.
Fitting the mixture by EM
The three parameters can be estimated from the observed counts with the expectation-maximization (EM) algorithm. Here is the idea. If we knew which documents were elite, estimating the parameters would be easy: $\pi$ would be the elite fraction and each $\lambda$ the average count in its class. If we knew the parameters, computing each document's probability of being elite would be easy too, by Bayes' rule. EM alternates between the two.
- Start from a guess. The experiment starts at $\pi = 0.1$, $\lambda_E = \max(5\bar{k}, 1)$, and $\lambda_N = 0.3\bar{k} + 0.001$, where $\bar{k}$ is the mean count.
- E-step. For each document $d$ with count $k_d$, compute its posterior probability of being elite: $$r_d = \frac{\pi\, \mathrm{Pois}(k_d; \lambda_E)}{\pi\, \mathrm{Pois}(k_d; \lambda_E) + (1 - \pi)\, \mathrm{Pois}(k_d; \lambda_N)}.$$
- M-step. Re-estimate the parameters as if each document were elite with weight $r_d$: $$\pi = \frac{1}{n} \sum_d r_d, \qquad \lambda_E = \frac{\sum_d r_d\, k_d}{\sum_d r_d}, \qquad \lambda_N = \frac{\sum_d (1 - r_d)\, k_d}{\sum_d (1 - r_d)}.$$
- Repeat steps 2 and 3. Each round cannot decrease the likelihood of the data.
Where the M-step formulas come from. Suppose each document's class were known, with $z_d = 1$ for elite and 0 for non-elite. The log-likelihood of the counts and classes together would be
$$\sum_d \Bigl[ z_d \bigl(\log \pi - \lambda_E + k_d \log \lambda_E\bigr) + (1 - z_d) \bigl(\log (1 - \pi) - \lambda_N + k_d \log \lambda_N\bigr) \Bigr] - \sum_d \log k_d!,$$
since an elite document with count $k_d$ has probability $\pi\, e^{-\lambda_E} \lambda_E^{k_d} / k_d!$ and a non-elite one $(1 - \pi)\, e^{-\lambda_N} \lambda_N^{k_d} / k_d!$. The classes are not known, so the M-step maximizes the expectation of this expression under the E-step's posteriors, which replaces each $z_d$ by $r_d$. Call the result $Q(\pi, \lambda_E, \lambda_N)$. Each parameter appears in separate terms, so each is found by setting one derivative to zero:
$$\frac{\partial Q}{\partial \pi} = \frac{\sum_d r_d}{\pi} - \frac{\sum_d (1 - r_d)}{1 - \pi} = 0 \;\Longrightarrow\; \pi = \frac{\sum_d r_d}{\sum_d r_d + \sum_d (1 - r_d)} = \frac{1}{n} \sum_d r_d,$$
$$\frac{\partial Q}{\partial \lambda_E} = \sum_d r_d \Bigl( -1 + \frac{k_d}{\lambda_E} \Bigr) = 0 \;\Longrightarrow\; \lambda_E = \frac{\sum_d r_d\, k_d}{\sum_d r_d},$$
$$\frac{\partial Q}{\partial \lambda_N} = \sum_d (1 - r_d) \Bigl( -1 + \frac{k_d}{\lambda_N} \Bigr) = 0 \;\Longrightarrow\; \lambda_N = \frac{\sum_d (1 - r_d)\, k_d}{\sum_d (1 - r_d)}.$$
The second derivatives, $-\sum_d r_d / \pi^2 - \sum_d (1 - r_d)/(1 - \pi)^2$, $-\sum_d r_d k_d / \lambda_E^2$ and $-\sum_d (1 - r_d) k_d / \lambda_N^2$, are negative, so each stationary point is a maximum. These are the formulas of step 3: weighted versions of the fraction and the two means that known classes would give.
Why the likelihood cannot decrease. Write $\theta$ for the three parameters and $\ell(\theta) = \sum_d \log P(k_d; \theta)$ for the log-likelihood of the counts. For any weights $r_d$ strictly between 0 and 1, define
$$F(r, \theta) = \sum_d \Bigl[ r_d \log \frac{P(k_d, z_d = 1; \theta)}{r_d} + (1 - r_d) \log \frac{P(k_d, z_d = 0; \theta)}{1 - r_d} \Bigr].$$
The logarithm is concave, so a weighted average of logarithms is at most the logarithm of the weighted average (Jensen's inequality). The weighted average inside is $P(k_d, z_d = 1; \theta) + P(k_d, z_d = 0; \theta) = P(k_d; \theta)$, so $F(r, \theta) \le \ell(\theta)$ for every $r$ and $\theta$. When $r_d$ is the posterior under $\theta$, both ratios equal $P(k_d; \theta)$ and the inequality is an equality. Now follow one round from $\theta$ to $\theta'$. The E-step sets $r$ to the posterior under $\theta$, so $F(r, \theta) = \ell(\theta)$. The M-step chooses $\theta'$ to maximize $Q$, which differs from $F(r, \cdot)$ only by terms without $\theta$, so $F(r, \theta') \ge F(r, \theta)$. Together,
$$\ell(\theta') \ge F(r, \theta') \ge F(r, \theta) = \ell(\theta).$$
This is the two-class case of the monotonicity theorem of Dempster, Laird, and Rubin (1977, Theorem 1). Their proof splits the log-likelihood into two terms and applies Jensen's inequality to one of them; the lower bound used here rests on the same inequality. The argument shows that the likelihood never falls, not that the algorithm finds the best parameters: EM can stop at a local maximum, and the result can depend on the starting guess. The EM Algorithm proves the general argument, starting from this fit of flutter, and shows where the algorithm can stop and how fast it converges.
For flutter, the first rounds run as follows (log-likelihood in natural logs):
| Iteration | $\pi$ | $\lambda_E$ | $\lambda_N$ | Log-likelihood |
|---|---|---|---|---|
| 0 (start) | 0.1000 | 1.007 | 0.0614 | −656.26 |
| 1 | 0.0766 | 2.586 | 0.0036 | −434.93 |
| 2 | 0.0451 | 4.450 | 0.0010 | −374.00 |
| 3 | 0.0391 | 5.113 | 0.0015 | −369.53 |
| 4 | 0.0375 | 5.294 | 0.0028 | −368.08 |
| 6 | 0.0361 | 5.463 | 0.0042 | −367.61 |
| 10 and after | 0.0360 | 5.485 | 0.0044 | −367.60 |
The first E-step sees that documents with many occurrences are far better explained by the high-rate class, so the elite rate jumps, and the elite class shrinks to the documents that really use the word. The log-likelihood column rises at every step, as the argument above requires. By iteration 10 the estimates no longer change at four decimals. Fitted to the Cranfield counts:
| Term | Documents containing it | Elite fraction $\pi$ | $\lambda_E$ | $\lambda_N$ |
|---|---|---|---|---|
| flutter | 56 | 0.036 | 5.48 | 0.004 |
| shock | 240 | 0.121 | 4.41 | 0.063 |
| heat | 306 | 0.170 | 3.81 | 0.065 |
| boundary | 469 | 0.240 | 3.71 | 0.144 |
The mixture's predictions for flutter are 1,344.0, 7.0, 3.2, 5.7, 7.9, 8.6, and 23.6 documents at counts 0 through 6 or more. They are nearly identical to the observed 1,344, 7, 3, 8, 8, 8, and 22. About 3.6 percent of the documents, roughly 50, are elite for flutter and mention it about five and a half times on average. The rest almost never mention it.
For the other three terms, the mixture is far closer than a single Poisson but not exact. For shock it predicts 22 documents with two occurrences where there are 38. For boundary it misses the counts at three and four occurrences by about a dozen documents each. Two classes capture most of the structure, not all of it. Boundary, a very common concept in aerodynamics, has nearly a quarter of the collection in its elite set.
The mixture describes counts well. But a retrieval model needs to know what the counts say about relevance, and that runs through the hidden class.
Eliteness and relevance
The model's central idea is eliteness: a hidden property of a document-term pair, whether the document is about the term's concept. Term frequency is evidence of eliteness, and eliteness, not frequency itself, is what relates to relevance. A document relevant to a query about flutter is likely to be elite for flutter. Seeing the word many times makes eliteness more probable, but only up to a point. Once a document is clearly elite, further occurrences say little more.
How fast the evidence accumulates
The E-step's posterior $r_d$ is exactly the probability that a document is elite given its count, and it can be tabulated. For flutter and one occurrence, Bayes' rule compares how well each class explains the count:
- the elite class: $0.036 \times e^{-5.485} \times 5.485 = 0.00082$;
- the non-elite class: $0.964 \times e^{-0.00436} \times 0.00436 = 0.00418$ (the fitted $\lambda_N$ is 0.00436 before rounding).
So
$$P(\text{elite} \mid \mathit{tf} = 1) = \frac{0.00082}{0.00082 + 0.00418} = 0.164.$$
A single mention is more likely incidental than topical.
Example (the second occurrence of flutter). $P(\text{elite} \mid \mathit{tf} = 2)$ is near 1, although one occurrence gave only 0.164. At two occurrences the non-elite class, with its rate of 0.0044, can hardly produce the count at all, and the posterior jumps to 0.996. The second mention does far more than double the evidence of the first.
| Term | tf = 0 | tf = 1 | tf = 2 | tf = 3 | tf = 4 |
|---|---|---|---|---|---|
| flutter | 0.000 | 0.164 | 0.996 | 1.000 | 1.000 |
| shock | 0.002 | 0.111 | 0.898 | 0.998 | 1.000 |
| heat | 0.005 | 0.222 | 0.944 | 0.999 | 1.000 |
| boundary | 0.009 | 0.187 | 0.856 | 0.994 | 1.000 |
For all four terms, the second and third occurrences settle the question. A document with 20 occurrences is no more elite than one with 4. This is the saturation that BM25 builds in.
A posterior probability of eliteness is not yet a term weight. To get one, the model has to say how eliteness relates to relevance.
The eliteness term weight
Robertson, van Rijsbergen, and Porter (1981) built a retrieval model on this idea, in which eliteness, not the term itself, is what relevance depends on. Here is the plan. Relevant and nonrelevant documents differ only in how often they are elite; given the class, counts follow the same two Poissons. The weight of a count is then the BIM's log odds ratio, applied to counts instead of presence.
The formal version. The model needs two kinds of quantity:
- $p_1 = P(\text{elite} \mid R = 1)$ and $p_0 = P(\text{elite} \mid R = 0)$, how often relevant and nonrelevant documents are elite for the term;
- $E_1(\mathit{tf})$ and $E_0(\mathit{tf})$, the elite and non-elite Poisson probabilities of a count.
A relevant document is elite with probability $p_1$ and non-elite with probability $1 - p_1$, and given its class the count follows that class's Poisson. By total probability, the probability of a count in a relevant document is $p_1 E_1(\mathit{tf}) + (1 - p_1) E_0(\mathit{tf})$. A nonrelevant document is elite with probability $p_0$, so the probability of the same count in a nonrelevant document is $p_0 E_1(\mathit{tf}) + (1 - p_0) E_0(\mathit{tf})$. Both steps use the model's central assumption, that the count depends on relevance only through eliteness. Take the log odds ratio of a count $\mathit{tf}$ against a count of zero, exactly as the BIM takes the log odds ratio of presence against absence. That gives the term weight (Robertson and Zaragoza, 2009, eq. 3.6):
$$w(\mathit{tf}) = \log \frac{\big(p_1 E_1(\mathit{tf}) + (1 - p_1) E_0(\mathit{tf})\big)\,\big(p_0 E_1(0) + (1 - p_0) E_0(0)\big)}{\big(p_1 E_1(0) + (1 - p_1) E_0(0)\big)\,\big(p_0 E_1(\mathit{tf}) + (1 - p_0) E_0(\mathit{tf})\big)}.$$
The weight is zero at $\mathit{tf} = 0$ by construction, since numerator and denominator are then the same product. Its behavior as $\mathit{tf}$ grows follows from a rearrangement that Robertson and Walker (1994, eq. 6) give. Here is the idea: divide out the elite Poisson, and what remains of each mixture is a constant plus a term that shrinks geometrically with $\mathit{tf}$.
The formal version. Put in the Poisson probabilities $E_1(\mathit{tf}) = e^{-\lambda_E} \lambda_E^{\mathit{tf}} / \mathit{tf}!$ and $E_0(\mathit{tf}) = e^{-\lambda_N} \lambda_N^{\mathit{tf}} / \mathit{tf}!$. Divide the two mixtures that contain $\mathit{tf}$, one in the numerator and one in the denominator, by $E_1(\mathit{tf})$. Each becomes $p + (1 - p)\, E_0(\mathit{tf})/E_1(\mathit{tf})$, and
$$\frac{E_0(\mathit{tf})}{E_1(\mathit{tf})} = \Bigl(\frac{\lambda_N}{\lambda_E}\Bigr)^{\mathit{tf}} e^{\lambda_E - \lambda_N} = x(\mathit{tf}),$$
in which the factorials have canceled. Divide the two mixtures at count zero by $E_0(0) = e^{-\lambda_N}$. Each becomes $p\,\varepsilon + (1 - p)$ with $\varepsilon = E_1(0)/E_0(0) = e^{-(\lambda_E - \lambda_N)}$. Both divisions remove the same factor from numerator and denominator, so the weight is unchanged:
$$w(\mathit{tf}) = \log \frac{\bigl(p_1 + (1 - p_1)\, x(\mathit{tf})\bigr)\,\bigl(p_0\, \varepsilon + 1 - p_0\bigr)}{\bigl(p_0 + (1 - p_0)\, x(\mathit{tf})\bigr)\,\bigl(p_1\, \varepsilon + 1 - p_1\bigr)}.$$
Three properties follow when $\lambda_E > \lambda_N$ and $p_1 > p_0$, which is the case of a useful term.
- The weight increases with every occurrence. Only $x$ depends on $\mathit{tf}$, and $x$ falls by the factor $\lambda_N / \lambda_E < 1$ with each occurrence. The ratio $f(x) = \frac{p_1 + (1 - p_1) x}{p_0 + (1 - p_0) x}$ has derivative $\frac{(1 - p_1)(p_0 + (1 - p_0)x) - (1 - p_0)(p_1 + (1 - p_1)x)}{(p_0 + (1 - p_0)x)^2} = \frac{p_0 - p_1}{(p_0 + (1 - p_0)x)^2}$, which is negative. So $f$ rises as $x$ falls, and $w$ rises with $\mathit{tf}$.
- The weight has a finite limit. As $\mathit{tf} \to \infty$, $x \to 0$ and $f \to p_1 / p_0$, so $$\lim_{\mathit{tf} \to \infty} w(\mathit{tf}) = \log \frac{p_1\,(p_0\, \varepsilon + 1 - p_0)}{p_0\,(p_1\, \varepsilon + 1 - p_1)}.$$ This is exact. The weight can never exceed it, however often the term occurs.
- The limit is close to the weight of eliteness itself. If $\varepsilon$ is neglected, the limit becomes $\log \frac{p_1 (1 - p_0)}{p_0 (1 - p_1)}$. That is the BIM's log odds ratio for the eliteness feature: the weight eliteness would have if it could be observed. This last step is an approximation. Robertson and Walker (1994, eq. 7) present it as one and warn that it "may not be a good one" for a poor or infrequent term, for which $\varepsilon$ is not very small. Robertson and Zaragoza (2009, eq. 3.8) state the approximate form as the limit.
The quantity neglected, $\varepsilon = e^{-(\lambda_E - \lambda_N)}$, is the chance that an elite document has no occurrence, relative to a non-elite one. For flutter it is 0.0042, and for boundary 0.028. Keeping it gives a slightly lower exact limit, shown in the last column of the table below.
Cranfield's relevance judgments allow every quantity in this weight to be estimated. The Poisson rates come from the EM fit above. For $p_1$ and $p_0$, take the Cranfield queries that contain the term. Average the posterior eliteness of their judged relevant documents, and separately of all their other documents. For flutter, 11 queries contain the word, with 75 (query, relevant document) pairs between them:
| Term | Queries | $p_1$ | $p_0$ | $w(1)$ | $w(2)$ | $w(3)$ | Limit, eq. 3.8 | Exact limit |
|---|---|---|---|---|---|---|---|---|
| flutter | 11 | 0.791 | 0.032 | 2.86 | 4.71 | 4.72 | 4.73 | 4.72 |
| shock | 10 | 0.657 | 0.117 | 0.87 | 2.54 | 2.64 | 2.67 | 2.65 |
| heat | 23 | 0.653 | 0.167 | 1.00 | 2.14 | 2.20 | 2.23 | 2.20 |
| boundary | 28 | 0.728 | 0.237 | 0.81 | 1.95 | 2.08 | 2.15 | 2.09 |
Relevant documents are elite for the query's terms most of the time (65 to 79 percent), and nonrelevant ones rarely. The weight rises from zero, reaches 93 to nearly 100 percent of its limit by the second occurrence, and is flat from the third.
Example (the second occurrence of shock adds more than the first). For shock the first occurrence takes the weight from 0 to 0.87, and the second from 0.87 to 2.54, an increase of 1.67. For heat the two steps are 1.00 and 1.15, and for boundary 0.81 and 1.14 (differences of the unrounded weights). For flutter the first step is the larger, 2.86 against 1.85. A single mention is weak evidence of eliteness, the second is strong, and the weight follows the posterior. Robertson and Walker (1994, §4.2) note that the weight can be S-shaped for some combinations of parameters, "increasing slowly at first, then more rapidly, then slowly again". Robertson and Zaragoza (2009, §3.4.4) describe the same initial upturn as occurring for some combinations, with most realistic ones giving a curve that bends down from the start.
But the full model needed four parameters per term, none of them directly observable because eliteness is hidden. Estimating them here took relevance judgments for many queries and an EM fit per term. Robertson and Walker (1994, §3) report that the earlier attempt to estimate the parameters and use them in weighting functions gained little in performance. The next section shows how they kept the shape without the parameters.
From the model to BM25
Robertson and Walker (1994) took a different approach. Instead of estimating the 2-Poisson model, they designed a simple function with the same qualitative shape:
$$\frac{\mathit{tf}}{\mathit{tf} + k_1}.$$
It is 0 at $\mathit{tf} = 0$, increases with every occurrence, and approaches 1 as $\mathit{tf}$ grows. The single parameter $k_1$ controls how quickly it saturates. They multiplied it by the Robertson–Spärck Jones weight of the Binary Independence Model, which stands in for the model's asymptotic maximum.
It matters which of these steps are derivations and which are the authors' approximations, because the result is often described loosely as "derived from the 2-Poisson model". The path has five steps.
- Derived. Given the model's assumptions (binary eliteness, Poisson counts in each class, relevance related to counts only through eliteness, and independence across terms), the weight $w(\mathit{tf})$ above is exact. So are its three properties: zero at zero, increasing, and bounded by the exact limit.
- Approximated. The limit is replaced by the eliteness log odds ratio $\log \frac{p_1(1 - p_0)}{p_0(1 - p_1)}$, by neglecting $\varepsilon$ (Robertson and Walker, 1994, eq. 7).
- Chosen, not derived. The curve $\mathit{tf}/(k_1 + \mathit{tf})$ is a simple function with properties 1 to 3, picked to stand in for $w(\mathit{tf})$ divided by its limit. Robertson and Walker (1994, §4.2) introduce it as a function that rises to its maximum "in approximately the right fashion", and say that the model "tells us nothing" about the value of $k_1$. They also note where it differs: this curve bends down from the start, while the model's weight can be S-shaped, as it is for three of the four Cranfield terms above. Robertson and Zaragoza (2009, §3.4.4) put it plainly: lacking a generative model that yields a convenient formula, the authors "decided to fit a simple parametric curve to this shape".
- Substituted. The eliteness log odds ratio of step 2 cannot be estimated, because eliteness is hidden. In its place they use the ordinary presence-absence weight of the BIM, the Robertson–Spärck Jones weight, which Robertson and Walker call "the obvious simple alternative". The two are different quantities: one is the log odds ratio of eliteness and the other of presence, and nothing in the model makes them equal.
- Motivated by the model, then simplified. Under the verbosity hypothesis, a document of length $\mathit{dl}$ has both Poisson means multiplied by $\mathit{dl}/\mathit{avdl}$, where $\mathit{avdl}$ is the average length. Robertson and Walker (1994, eq. 14) write the exact weight this implies and call its analysis "a little complex". What they use instead (their eq. 10) is the saturation curve with $k_1$ scaled by the same ratio, $\mathit{tf} / (k_1\, \mathit{dl}/\mathit{avdl} + \mathit{tf})$, which they say "exhibits some of the correct properties, but not all". Dividing top and bottom by $\mathit{dl}/\mathit{avdl}$ shows that this is the same curve applied to the count rescaled to average length, $\mathit{tf}' = \mathit{tf} \cdot \mathit{avdl}/\mathit{dl}$. Their analysis also gives a second length term, applied once per query term to the whole score; they approximated it by a correction with its own constant $k_2$ (their eq. 13), which later versions dropped as unimportant (Robertson and Zaragoza, 2009, §3.5.1).
The 1994 paper tested two functions built this way: BM15, with no length scaling, and BM11, with the full scaling of step 5. BM25 joined them with a parameter $b$ that interpolates between the two, and was introduced in the Okapi system's TREC-3 experiments (Robertson et al., 1995; see Okapi BM25). BM25 also scales the saturation function by $k_1 + 1$, so that a single occurrence in a document of average length keeps the binary model's weight. In short, the model supplies the shape and the bound, and steps 2 to 5 are engineering choices that keep the behavior the theory predicts while avoiding parameters that cannot be estimated.
The comparison in the figure is informative in both directions. The shape is right: zero at zero, rising, leveling off. The speed differs. The fitted 2-Poisson weight is essentially flat after three occurrences, while $\mathit{tf}/(\mathit{tf} + 1.2)$ is still at 71 percent of its limit at $\mathit{tf} = 3$ and 89 percent at $\mathit{tf} = 10$. Two features of real text that the model leaves out plausibly account for some of the gap:
- The model treats every document as the same length, so a long abstract that is elite for flutter and a short one are expected to use the word equally often.
- It allows only two levels of aboutness, so a document entirely devoted to flutter and one with a paragraph on it are both just "elite".
If repetition carries some further evidence of how central a topic is, a gentler curve should rank better than the fitted one. On Cranfield it does: the $k_1$ tuned in comparing ranking models is 1.5, not 0.3.
A common intuition says that a document using a query word twenty times must be more relevant than one using it six times. The data in this article show why saturation is right instead. For a term like flutter, a document with 2 occurrences is very probably elite, and one with 20 is no more elite than one with 6. Linear term frequency, as in raw TF-IDF, keeps rewarding repetition long after eliteness is settled. The saturating curve stops.
Limits
The 2-Poisson model is itself a simplification:
- It ignores document length, although longer documents naturally contain more occurrences.
- It assumes exactly two classes, though some terms seem to have degrees of aboutness.
- It treats each term separately, ignoring that elite sets for related terms overlap. Dependence between query terms is the subject of term dependence models.
Its lasting value is not as a model to estimate but as an explanation of why term frequency matters and why its effect should diminish.
Worked problems
The course text does not treat the 2-Poisson model, so these problems are posed on the article's own Cranfield fits. Each exercises one result of the article, and the script recomputes every number.
Problem 1. Flutter occurs 282 times in the 1,400 Cranfield abstracts. Under a single Poisson model, find the expected number of abstracts with no occurrence, with one, and with six or more, and compare with the observed 1,344, 7 and 22.
The rate is the mean count, $\lambda = 282/1400 = 0.2014$. Then $P(0) = e^{-0.2014} = 0.8176$, so $1400 \times 0.8176 = 1144.6$ abstracts are expected to lack the word, against 1,344 observed. $P(1) = \lambda\, e^{-\lambda} = 0.1647$, so 230.6 are expected to contain it once, against 7. The probability of six or more is 1 minus the sum of $P(0)$ to $P(5)$, about $8 \times 10^{-8}$, so the expected number of such abstracts is 0.0001, against 22 observed. A constant rate cannot produce both the 1,344 abstracts without the word and the 22 that use it six or more times.
Problem 2. The fitted mixture for shock has $\pi = 0.1205$, $\lambda_E = 4.4067$ and $\lambda_N = 0.0628$. Find the probability that an abstract is elite for shock given one occurrence, and given two.
By Bayes' rule the posterior is the elite class's share of the mixture probability at that count. At one occurrence:
- elite: $\pi\, e^{-\lambda_E} \lambda_E = 0.1205 \times e^{-4.4067} \times 4.4067 = 0.00648$;
- non-elite: $(1 - \pi)\, e^{-\lambda_N} \lambda_N = 0.8795 \times e^{-0.0628} \times 0.0628 = 0.05188$.
The posterior is $0.00648 / (0.00648 + 0.05188) = 0.111$. At two occurrences each term gains a factor $\lambda / 2$:
- elite: $0.00648 \times 4.4067 / 2 = 0.01427$;
- non-elite: $0.05188 \times 0.0628 / 2 = 0.00163$.
The posterior is $0.01427 / (0.01427 + 0.00163) = 0.898$. Each further occurrence multiplies the odds of eliteness by $\lambda_E / \lambda_N = 70$, which is why one occurrence leaves the question open and two nearly close it. The values agree with the table of posteriors above.
Problem 3. For flutter, $p_1 = 0.7911$, $p_0 = 0.0323$, $\lambda_E = 5.485$ and $\lambda_N = 0.0044$. Find the approximate and the exact limit of the eliteness weight, and the share of the exact limit reached at one, two and three occurrences.
The approximate limit neglects $\varepsilon$:
$$\log \frac{p_1 (1 - p_0)}{p_0 (1 - p_1)} = \log \frac{0.7911 \times 0.9677}{0.0323 \times 0.2089} = \log 113.6 = 4.732.$$
For the exact limit, $\varepsilon = e^{-(5.485 - 0.0044)} = 0.0042$, and
$$\log \frac{p_1 (p_0\, \varepsilon + 1 - p_0)}{p_0 (p_1\, \varepsilon + 1 - p_1)} = \log \frac{0.7911 \times 0.9679}{0.0323 \times 0.2122} = 4.717.$$
The two differ by 0.015: the correction is small here because an abstract that is elite for flutter almost never lacks the word. The weights at one, two and three occurrences are 2.862, 4.712 and 4.717, which are 60.7, 99.9 and 100.0 percent of the exact limit. (The inputs are shown to four digits; the script works from the unrounded fit.)
Problem 4. Show that after every M-step the mixture's mean count, $\pi \lambda_E + (1 - \pi) \lambda_N$, equals the mean count of the data, whatever the posteriors $r_d$ were.
Substitute the M-step formulas. The first product is
$$\pi \lambda_E = \frac{\sum_d r_d}{n} \cdot \frac{\sum_d r_d\, k_d}{\sum_d r_d} = \frac{1}{n} \sum_d r_d\, k_d,$$
and in the same way, with $1 - \pi = \frac{1}{n} \sum_d (1 - r_d)$,
$$(1 - \pi) \lambda_N = \frac{\sum_d (1 - r_d)}{n} \cdot \frac{\sum_d (1 - r_d)\, k_d}{\sum_d (1 - r_d)} = \frac{1}{n} \sum_d (1 - r_d)\, k_d.$$
Adding them, the weights $r_d$ and $1 - r_d$ sum to 1 for each document, and the total is $\frac{1}{n} \sum_d k_d$. For flutter, $0.0360 \times 5.485 + 0.9640 \times 0.0044 = 0.2017$ from the rounded parameters, and 0.2014 from the unrounded ones, the mean count of Problem 1. The mixture keeps the single Poisson's mean and changes only how that mean is shared between the two classes.
Problem 5. At what count does the curve $\mathit{tf}/(\mathit{tf} + k_1)$ reach 90 percent of its limit, for $k_1 = 1.2$ and for $k_1 = 0.3$?
The limit is 1, so we need $\mathit{tf}/(\mathit{tf} + k_1) = 0.9$, that is $\mathit{tf} = 0.9\,\mathit{tf} + 0.9\,k_1$, or $\mathit{tf} = 9 k_1$. For $k_1 = 1.2$ this is 10.8 occurrences, and for $k_1 = 0.3$ it is 2.7. The fitted 2-Poisson weights pass 90 percent of their limits at the second occurrence (93 percent or more for all four terms), which is why the figure needs a $k_1$ near 0.3 to match their speed.
What we have learned
A content word's counts do not follow a single Poisson distribution. They follow a mixture of two: a small elite class of documents about the term's concept, where it occurs often, and a large non-elite class, where it barely occurs. Fitted by EM on Cranfield, the mixture reproduces the counts of flutter almost exactly. The posterior probability of eliteness is settled by the second or third occurrence. So is the eliteness term weight computed from Cranfield's judgments, which reaches its limit by the third. The full model needs four hidden parameters per term, which is why Robertson and Walker kept only its shape, the saturating curve $\mathit{tf}/(\mathit{tf} + k_1)$.
That curve still has to be joined to the IDF weight, corrected for document length, and tuned. Okapi BM25 does all three, and breaks the ties that the BIM left on query 185.
References
- Bookstein, A., and Swanson, D. R. (1974). Probabilistic models for automatic indexing. Journal of the American Society for Information Science, 25(5), 312–316. record
- Dempster, A. P., Laird, N. M., and Rubin, D. B. (1977). Maximum likelihood from incomplete data via the EM algorithm. Journal of the Royal Statistical Society, Series B, 39(1), 1–38. record · 6 pages
- Harter, S. P. (1975). A probabilistic approach to automatic keyword indexing. Part I: On the distribution of specialty words in a technical literature. Journal of the American Society for Information Science, 26(4), 197–206. record
- Robertson, S. E., van Rijsbergen, C. J., and Porter, M. F. (1981). Probabilistic models of indexing and searching. In R. N. Oddy et al. (Eds.), Information Retrieval Research, 35–56. Butterworths. record
- Robertson, S. E., and Walker, S. (1994). Some simple effective approximations to the 2-Poisson model for probabilistic weighted retrieval. In Proceedings of SIGIR 1994, 232–241. record · 4 pages
- Robertson, S. E., Walker, S., Jones, S., Hancock-Beaulieu, M., and Gatford, M. (1995). Okapi at TREC-3. In Overview of the Third Text REtrieval Conference (TREC-3), NIST Special Publication 500-225, 109–126. 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
Reviewed: verified, 16 Nov 2026 · checked against sources, 23 Nov 2026 · citations checked, 17 Nov 2026 · editorial review, 23 Nov 2026 · 11 revisions