Techniquecore
Pivoted document length normalization
Also called pivoted normalization.
Tilts the length normalization of term weights around a pivot so that long documents are not penalized more than their relevance rate suggests.
Pivoted document length normalization replaces the length normalizer of a document, such as its cosine norm, by the tilted line , where the pivot is a typical value of and the slope is between 0 and 1. Documents longer than the pivot get a smaller normalizer than before, so a higher score, and shorter ones get a larger normalizer. Singhal, Buckley and Mitra (1996) introduced it after they found that cosine normalization ranks long documents lower than their rate of relevance. The length factor of BM25 is the same line, with the average length as the pivot and the parameter as the slope.
In plain words
Long documents hold more words and repeat them more, so their raw scores are high. A normalization divides each score by a measure of length to cancel this. Singhal, Buckley and Mitra measured, on judged queries, how often documents of each length were relevant and how often the system retrieved them. With cosine normalization, short documents were retrieved more often than they were relevant, and long documents less often.
Pivoting keeps the normalization of one typical length, the pivot, and makes the normalization change more slowly with length on both sides of it. A document of the pivot length keeps its score. Shorter documents go down a little and longer documents go up a little. One number, the slope, says how far to tilt, and it is tuned on judged queries.
When it applies
Use pivoting when:
- the score of a document is a sum of term weights divided by a normalizer that grows with the length of the document;
- the documents vary much in length, as in news, web pages or patents;
- relevance judgments show that the chance of retrieval falls faster with length than the chance of relevance;
- there are training queries to tune one slope.
Notation: is the length of in tokens, the average length, the old normalizer, the pivot and the slope.
The template
PIVOTED-SCORE(q, d, s, p)- 1
u ← OLD-NORM(d) ▷ hole: cosine norm, number of distinct terms, or length in tokens - 2
z ← (1 - s) · p + s · u ▷ the tilted normalizer - 3
return (sum over t in q of w(t, q) · w(t, d)) / z ▷ hole: the unnormalized term weights
Where the pivot comes from. Singhal, Buckley and Mitra sort the documents into bins by length and plot two curves against length: the fraction of relevant documents in each bin, and the fraction of retrieved documents. Under the old normalization the curves cross at one length. Documents shorter than that are retrieved too often, and longer ones too rarely. Turning the normalizer around the crossing point, the pivot, with a slope below 1 moves the retrieval curve toward the relevance curve. In practice the pivot is set to the average of the old normalizer over the collection, and only the slope is tuned.
The form with the average length. Dividing every score by the same positive number does not change the order, so the normalizer of L2 can be written as . With and this is
which is 1 for a document of average length, for an empty document and grows by for each extra average length. Singhal (2001) gives the full weighting, with natural logs,
with usually 0.20.
Walk-through on the toy collection. In the toy collection of the information retrieval pages, , , every other document has 10 tokens, and . With :
- ;
- for a document of 10 tokens.
The idf factors are 0.8109 for "sorted", 1.0986 for "array" and 1.5041 for "search", and a term with gets . On q1 = "sorted array search":
| rank | document | sum of the numerators | |||
|---|---|---|---|---|---|
| 1 | 3.4136 | 3.4752 | 3.7455 | ||
| 2 | 2.3366 | 2.3307 | 2.3074 | ||
| 3 | 1.9095 | 1.9047 | 1.8857 | ||
| 4 | 1.5041 | 1.5003 | 1.4853 | ||
| 5 | 0.8109 | 0.8089 | 0.8008 |
The column has no length normalization. The shorter gains as grows, and the documents of 10 tokens lose. The lengths in the toy collection differ by one token, so the order does not change. In a collection with a document of 5 tokens and one of 20 tokens, gives the normalizers 0.506 and 2.025, while gives 0.901 and 1.205: the long document now loses a factor of 1.2 in place of 2.
Classic examples
- Vector space model with pivoted cosine. The old normalizer is the cosine norm of the document vector, and the pivot is its average over the collection.
- Tf-idf with pivoted unique normalization. The old normalizer is the number of distinct terms of the document, used with the L tf letter in the SMART scheme Lnu.ltu of Singhal, Buckley and Mitra.
- BM25. Its length factor is the template with , and slope , usually 0.75. It is applied inside the saturation of tf, not to the whole score.
- BM25F. Each field has its own factor , with its own slope.
Variations
- Pivoted byte size. The old normalizer is the length of the document in bytes. It suits text with many recognition errors, where false words inflate the number of distinct terms.
- Normalization inside the tf function. BM25 divides by the factor before the saturation, so the normalization changes the shape of the tf curve and not only its scale.
- Lower-bounded tf. Lv and Zhai (2011) show that under such a normalization a very long document that contains a query term can score almost as low as one that does not contain it. They add a constant to the normalized tf part, which gives BM25+ and similar forms.
- Other length corrections. Divergence from randomness rescales the term frequency as , and Dirichlet smoothing of the query likelihood model corrects for length through its prior.
Pitfalls
- Slope out of range. For the normalizer of a short document can be 0 or negative. Keep .
- A slope for every collection. The best slope depends on the collection and on the query set. A slope tuned on one test collection need not be good on another.
- Stale averages. When documents are added or removed, changes. An index that keeps an old average gives a normalizer that is no longer 1 at the average length.
- Normalizing the query. Any factor that depends only on the query multiplies all scores by the same number and does not change the order, so pivoting the query side is wasted work.
Exercises
- Show that the normalizers and give the same ranking for every query. Hint: the first is times the second.
- Compare the pivoted normalizer with itself. For which documents is it smaller? Answer: exactly when , that is, for , when : the documents above the pivot.
- On the toy collection with , which query term weights of q2 = "posting list merge" are divided by 1.0025? Answer: all of them, because "posting", "list" and "merge" occur only in documents of 10 tokens.
References
- Amit Singhal, Chris Buckley and Mandar Mitra, Pivoted document length normalization, Proceedings of SIGIR 1996, 21 to 29, the probability of relevance and of retrieval as functions of document length, the pivoted normalization (1 - slope) times pivot plus slope times old normalization, and pivoted unique normalization
- Amit Singhal, Modern information retrieval, a brief overview, IEEE Data Engineering Bulletin 24(4), 35 to 43, 2001, the pivoted normalization weighting formula with 1 + ln(1 + ln tf), the factor (1 - s) + s dl / avdl, s usually 0.20, and its comparison with Okapi BM25
- Christopher D. Manning, Prabhakar Raghavan and Hinrich Schuetze, Introduction to Information Retrieval, Cambridge University Press, 2008, Chapter 6, Section 6.4.4 (pivoted normalized document length)
- Yuanhua Lv and ChengXiang Zhai, Lower-bounding term frequency normalization, Proceedings of CIKM 2011, 7 to 16, very long documents get too small a normalized term frequency under length normalization, and a lower bound added to the term frequency part
Where this leads
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 | W3 standard |
|
Tag HX3AB5 Edit this page History Report an error Markdown