Discounted Cumulative Gain and nDCG

A ranked measure for graded relevance. Gains for each relevance grade, logarithmic discounts by rank, normalization by the ideal ranking, traced rank by rank on a worked example with both gain formulas, why the logarithm's base cancels, how the gain formula and graded judgments can reverse a comparison, results on Cranfield, and the measure's pitfalls.

nDCG@$k$ divides a ranking's discounted cumulative gain, $\mathrm{DCG}@k = \sum_{i=1}^{k} \mathit{gain}(\mathit{rel}_i)/\log_2(i + 1)$, by the DCG of the ideal ordering of all the judged documents, so it lies between 0 and 1 and rewards putting the most relevant documents first. A ranking with grades 3, 2, 3, 0, 1, 2 scores 0.961 with linear gain and 0.949 with exponential gain $2^{\mathit{rel}} - 1$. The base of the logarithm cancels, but the gain formula does not: switching it reverses 6.2 percent of the pairs of orderings of those six documents. nDCG@$k$ need not rise with $k$. On Cranfield, grades lower each model's nDCG@10 slightly (BM25 0.368, against 0.385 with binary gains) without changing the models' order.

For the query jaguar habitat, a recent survey of jaguar populations by range country is more useful than a general article about big cats that mentions jaguars. Both are more useful than a page about the car. Binary judgments flatten all of this to relevant or not. Precision, recall and average precision then reward a system equally for ranking the survey or the general article first. Most real search tasks have degrees of relevance, as relevance argues. This article builds the measure that rewards a system for placing the most relevant documents at the top.

Discounted cumulative gain (DCG), introduced by Järvelin and Kekäläinen (2000), is that measure. Its normalized form, nDCG (Järvelin and Kekäläinen, 2002), has been widely adopted, especially with machine-learned ranking (Manning, Raghavan, and Schütze, 2008, §8.4), and learning to rank is designed to optimize it (LambdaRank and LambdaMART derives how a change in nDCG enters the training gradients, and what those methods can be shown to optimize; that they raise nDCG in practice is an empirical finding, not a theorem). It rests on two ideas:

  • documents contribute gain in proportion to how relevant they are;
  • the gain is discounted by how far down the ranking a document appears, because users are less likely to reach it.

Here is the route. First we build the measure in three steps and normalize it by the best possible ranking. Then we trace it rank by rank on a worked example with both common gain formulas. Next we show why the base of the logarithm does not matter, and how the gain formula and graded judgments can each reverse a comparison. Finally we look at nDCG on Cranfield and at the pitfalls of computing it.

The numbers in this article are computed by tools/experiments/eval_measures/worked_examples.py and cranfield_measures.py in the site's repository and rounded to three decimals.

Graded judgments

Graded collections judge documents on a small ordinal scale, for example:

Grade Meaning
3 Highly relevant: directly and fully addresses the need
2 Relevant: substantially useful
1 Marginally relevant: touches on the need
0 Not relevant

For the jaguar query, the survey might be a 3, the big-cats article a 1, and the car page a 0. Web search evaluations have used five-point scales: the dataset of the Yahoo! Learning to Rank Challenge grades each document from 4 (perfect) down through excellent, good and fair to 0 (bad) (Chapelle and Chang, 2011). The measure works with any numeric scale.

Cumulative gain and the discount

The construction proceeds in three steps, each fixing a problem with the one before.

Cumulative gain

The simplest graded measure adds up the grades of the top $k$ results:

$$\mathrm{CG}@k = \sum_{i=1}^{k} \mathit{rel}_i,$$

where $\mathit{rel}_i$ is the grade of the document at rank $i$. It rewards retrieving highly relevant documents.

Example (cumulative gain is blind to order). A ranking with grades 3, 0, 0 in its top three and one with grades 0, 0, 3 have the same CG@3, namely 3. Cumulative gain ignores order, so it cannot tell a system that puts the survey first from one that buries it at rank 3.

Discounting

To reward order, each gain is divided by a discount that grows with rank. The DCG of the top $k$ results is

$$\mathrm{DCG}@k = \sum_{i=1}^{k} \frac{\mathit{gain}(\mathit{rel}_i)}{\log_2(i + 1)}.$$

The discount factor $1/\log_2(i + 1)$ is 1 at rank 1, 0.631 at rank 2, and 0.5 at rank 3. It keeps shrinking, but slowly. A highly relevant document at rank 10 still counts for about 29 percent of what it would at rank 1. The logarithm models a user whose attention fades gradually down the page rather than stopping abruptly.

The $+1$ inside the logarithm is there so that rank 1 is not divided by $\log_2 1 = 0$. Järvelin and Kekäläinen's original definition handled rank 1 differently. It applied no discount to ranks below the logarithm's base $b$, and divided by $\log_b i$ from rank $b$ on (Järvelin and Kekäläinen, 2002, §2.2, eq. 2). With $b = 2$ that leaves ranks 1 and 2 undiscounted, since $\log_2 2 = 1$. The form with $\log(1 + i)$ appears in Burges et al. (2005, §6.1, eq. 16), the paper that introduced RankNet, together with the exponential gain below. It discounts every rank after the first, and it is the one most tools compute.

The weight given to each rank by four discount functions. Notice that the common nDCG discount 1/log2(i+1) and Järvelin and Kekäläinen's original with base 2 fall slowly, still giving rank 20 about a quarter of rank 1's weight. A patience model in which the user continues with probability 0.8 after each result falls geometrically and gives rank 20 almost nothing; 1/i, the weight reciprocal rank gives to the first relevant result, falls fastest at the top.
The weight given to each rank by four discount functions. Notice that the common nDCG discount 1/log2(i+1) and Järvelin and Kekäläinen's original with base 2 fall slowly, still giving rank 20 about a quarter of rank 1's weight. A patience model in which the user continues with probability 0.8 after each result falls geometrically and gives rank 20 almost nothing; 1/i, the weight reciprocal rank gives to the first relevant result, falls fastest at the top.

The choice of discount is a choice of user model.

  • A logarithmic discount assumes users who keep reading, with slowly fading attention.
  • A geometric discount, as in rank-biased precision, assumes each result is a fresh chance to stop.

The figure shows how different the assumptions are in the tail.

Gain

Two forms of the gain are common:

  • Linear gain, $\mathit{gain}(\mathit{rel}) = \mathit{rel}$, the form closest to Järvelin and Kekäläinen's original.
  • Exponential gain, $\mathit{gain}(\mathit{rel}) = 2^{\mathit{rel}} - 1$, popularized in web search and learning-to-rank research (Burges et al., 2005). It gives grades 0, 1, 2, and 3 gains of 0, 1, 3, and 7, strongly emphasizing the most relevant documents.

Under linear gain, a grade-3 document is worth three grade-1 documents. Under exponential gain it is worth seven, and more than two grade-2 documents. Which is right depends on whether a single excellent answer is worth more than several partial ones. That is a question about users, and the formula cannot settle it.

DCG now rewards both grade and position. But its size depends on the query, which is the last problem to fix.

Normalizing by the ideal ranking

DCG values cannot be compared across queries. A query with many highly relevant documents can reach a much larger DCG than one with few. Normalized DCG divides by the DCG of the best possible ranking, the ideal DCG (IDCG). The ideal ranking is obtained by sorting all the judged documents for the query by grade:

$$\mathrm{nDCG}@k = \frac{\mathrm{DCG}@k}{\mathrm{IDCG}@k}.$$

nDCG lies between 0 and 1, and equals 1 exactly when the grades of the top $k$ results match those of the ideal ranking, rank by rank.

Two details of the definition are worth settling. First, ties in grade do not make the ideal ambiguous. Several documents usually share a grade, so several orderings are sorted by grade. They all have the same sequence of grades by rank, and DCG depends only on that sequence, so they all give the same IDCG. Second, the cutoff is optional. nDCG with no cutoff sums over the whole ranking and divides by the DCG of all the judged documents in ideal order. It is nDCG@$k$ with $k$ at least the length of the ranking and the number of judged documents. A cutoff is usual because it states how far down the measure looks.

That the sorted order is the best possible, so that nDCG cannot exceed 1, takes one line. If a document with the larger gain stands below one with the smaller gain, exchanging them moves the larger gain to the larger discount factor. For gains $g > g'$ and discount factors $w \ge w'$ (a rank beyond the cutoff has factor 0), the change in DCG is $(gw + g'w') - (gw' + g'w) = (g - g')(w - w') \ge 0$. Any ordering can be sorted by a sequence of such exchanges, none of which lowers DCG, so the sorted order attains the maximum. Multi-Stage Ranking uses the same argument to bound what any re-ranker of a fixed candidate set can reach.

A worked example

A system returns six documents with grades 3, 2, 3, 0, 1, 2. Suppose these are all the judged documents for the query, so the ideal ranking is 3, 3, 2, 2, 1, 0.

Rank $i$ Discount $1/\log_2(i+1)$ System grade Linear gain, discounted Exponential gain, discounted
1 1.000 3 3.000 7.000
2 0.631 2 1.262 1.893
3 0.500 3 1.500 3.500
4 0.431 0 0 0
5 0.387 1 0.387 0.387
6 0.356 2 0.712 1.069
DCG@6 6.861 13.848

The ideal ranking's DCG, with the same discounts applied to the grades in sorted order:

Rank $i$ Discount Ideal grade Linear gain, discounted Exponential gain, discounted
1 1.000 3 3.000 7.000
2 0.631 3 1.893 4.417
3 0.500 2 1.000 1.500
4 0.431 2 0.861 1.292
5 0.387 1 0.387 0.387
6 0.356 0 0 0
IDCG@6 7.141 14.595

so

Gain nDCG@6
Linear 6.861 / 7.141 = 0.961
Exponential 13.848 / 14.595 = 0.949

The ranking is nearly ideal. Its main fault is placing a grade-2 document above a grade-3 one at ranks 2 and 3. The exponential form penalizes that more, because it values the grade-3 document much more highly than the grade-2 one.

nDCG at each cutoff

Example (nDCG is not monotone in the cutoff). DCG@$k$ can only grow as $k$ grows, but nDCG@$k$ can fall: here it is 1.000 at $k = 1$ and 0.871 at $k = 2$. Accumulating the rows gives DCG and IDCG at every cutoff, and their ratio:

Cutoff $k$ DCG@$k$ (linear) IDCG@$k$ (linear) nDCG@$k$ (linear) nDCG@$k$ (exponential)
1 3.000 3.000 1.000 1.000
2 4.262 4.893 0.871 0.779
3 5.762 5.893 0.978 0.959
4 5.762 6.754 0.853 0.872
5 6.149 7.141 0.861 0.876
6 6.861 7.141 0.961 0.949
Left: cumulative DCG of the system and of the ideal ranking at each cutoff, with linear gain; the shaded gap is what the system loses. Right: nDCG at each cutoff for both gains. Notice that nDCG is not monotone in k: it drops at rank 2, where the system has a grade-2 document and the ideal a grade-3, recovers at rank 3 when the system's second grade-3 document arrives, and drops again at rank 4, where the system has nothing relevant.
Left: cumulative DCG of the system and of the ideal ranking at each cutoff, with linear gain; the shaded gap is what the system loses. Right: nDCG at each cutoff for both gains. Notice that nDCG is not monotone in k: it drops at rank 2, where the system has a grade-2 document and the ideal a grade-3, recovers at rank 3 when the system's second grade-3 document arrives, and drops again at rank 4, where the system has nothing relevant.

DCG@$k$, like recall at $k$, can only grow with $k$. nDCG@$k$ can rise and fall, because the ideal ranking also gains at every cutoff. A system's nDCG@2 can be worse than its nDCG@3, as here, so a measure reported at one cutoff says little about another. At $k = 2$ the exponential gain is much harsher (0.779 against 0.871). The ideal's second document is worth 7 under exponential gain and only 3 under linear.

Which logarithm?

Papers sometimes use the natural logarithm or base 10 in the discount. Does the choice change nDCG? For the form $1/\log_b(i + 1)$, it does not. Since $\log_b x = \ln x / \ln b$, changing the base from 2 to $b$ multiplies every discount by the same constant $\ln b / \ln 2$. DCG and IDCG are both multiplied by it, and it cancels in the ratio. The table checks this on the worked example:

Discount DCG@6 (linear) IDCG@6 (linear) nDCG@6 linear / exponential
$1/\log_2(i+1)$ 6.861 7.141 0.961 / 0.949
$1/\ln(i+1)$ 9.899 10.302 0.961 / 0.949
$1/\log_{10}(i+1)$ 22.792 23.722 0.961 / 0.949
Järvelin and Kekäläinen, $b = 2$ 8.097 8.693 0.932 / 0.898
Järvelin and Kekäläinen, $b = 10$ 11.000 11.000 1.000 / 1.000

DCG itself changes with the base, so unnormalized DCG values are comparable only with the same base.

The original form is different, because its discount is not a constant multiple of anything: changing $b$ changes which ranks are undiscounted. With $b = 10$, ranks 1 to 9 are undiscounted, and rank 10 is divided by $\log_{10} 10 = 1$, so the whole first page counts at face value. nDCG@6 then reduces to cumulative gain divided by ideal cumulative gain, and every ordering of the six documents scores 1. The parameter $b$ was meant to model patience. Järvelin and Kekäläinen (2002, §2.2) note that a higher base means a smaller discount, for a searcher likely to examine results at least down to the base rank.

The base is harmless, then, as long as the form is fixed. The gain formula and the use of grades at all are not harmless, as the next section shows.

How the choices change conclusions

Linear versus exponential gain

The two gain formulas can disagree about which of two rankings is better. Take two other rankings of six documents for the same query, whose judged documents, and so whose ideal ranking 3, 3, 2, 2, 1, 0, are those above. Each misses one of the grade-3 documents and shows a nonrelevant document in its place:

Ranking Top three grades nDCG@3 linear nDCG@3 exponential
X: 3, 0, 0, 2, 2, 1 3, 0, 0 0.509 0.542
Y: 2, 2, 1, 3, 0, 0 2, 2, 1 0.638 0.418

Under linear gain, Y's three useful documents (2 + 2 + 1) beat X's single excellent one. Under exponential gain the excellent document is worth 7, against Y's 3 + 3 + 1 spread over lower ranks, and X wins. The two rankings also swap places at nDCG@6: 0.699 and 0.708 under linear gain, 0.672 and 0.576 under exponential.

Such reversals are not rare. The six documents can be ordered in 180 distinguishable ways, giving 16,110 pairs of orderings. The two gain formulas rank 1,002 of those pairs (6.2 percent) in opposite orders at nDCG@6.

Graded versus binary relevance

Graded judgments can also reverse the verdict of a binary measure. Suppose a query has one highly relevant document, three marginal ones, and two nonrelevant ones. Two systems rank them as follows:

  • U: 1, 1, 1, 3, 0, 0 (the three marginal documents first, then the highly relevant one);
  • V: 3, 0, 1, 1, 1, 0 (the highly relevant document first, then a nonrelevant one).

Example (binary and graded measures disagree). Counting every grade above 0 as relevant, average precision prefers U, while a user who wants the one good answer prefers V, and so does nDCG:

Ranking AP (grades above 0 relevant) nDCG@6 linear nDCG@6 exponential
U: 1, 1, 1, 3, 0, 0 1.000 0.750 0.601
V: 3, 0, 1, 1, 1, 0 0.804 0.946 0.971

U puts all four relevant documents first, so AP, which sees only relevant or not, scores it perfectly. But it makes the user read three marginal documents before the one that answers the need. V shows the answer first and pays for it with a nonrelevant document at rank 2. nDCG prefers V by a wide margin. Which is right depends on the user, but only graded judgments allow the question to be asked.

On Cranfield

On a real collection, Cranfield, grades change the numbers more than the conclusions. The Cranfield collection has graded judgments from 1 (a complete answer) to 4 (minimum interest), as test collections describes. The comparison in comparing ranking models uses gain $5 - \text{grade}$, so a complete answer has gain 4. Computing nDCG@10 for the same runs with binary gains instead shows how much the grades matter there:

Model nDCG@10, graded nDCG@10, binary
BIM 0.268 0.282
TF-IDF 0.356 0.371
BM25 0.368 0.385

All three scores are a little lower with grades. Within the top ten, the systems do not consistently place the complete answers above the documents of minimum interest. The ordering of the models does not change, and the per-query comparison of BM25 with TF-IDF changes direction on only 6 of the 225 queries. On this collection, grading changes the numbers more than the conclusions.

Properties

  • Graded and top-weighted. nDCG uses the degree of relevance and the position. Precision at $k$ uses neither, and AP uses only position.
  • Focused on the top. DCG@10 needs grades only for the ten results shown. The ideal ranking still depends on knowing the best-graded documents for the topic, so incomplete judgments can distort nDCG through its denominator, as the pitfalls below explain.
  • Comparable across queries, because each query is normalized to its own ideal.

nDCG@10 is also the single retrieval measure of the BEIR benchmark and of MTEB's retrieval tasks; Evaluating Embedding Models gives BEIR's reason for choosing it and what those benchmark averages leave out.

Pitfalls

  • Which formula? The two gain functions give different values, and implementations also differ in their discounts. Järvelin and Kekäläinen's original applied no discount to ranks up to the logarithm's base. Published nDCG values are comparable only when the formula is stated, and evaluation tools should be checked for which form they compute. trec_eval's ndcg, for example, uses the relevance grade itself as the gain unless gains are given on the command line. It divides by $\log_2(i + 1)$, and builds the ideal ranking from all the judged documents (National Institute of Standards and Technology, trec_eval source, m_ndcg.c).
  • What counts as ideal? The ideal ranking should be built from all the judged documents for the query, not only from those the system retrieved. Building it from the retrieved documents alone makes a system that retrieves few relevant documents look perfect. Suppose a query's judged documents have grades 3, 3, 2, 1, 0, 0, and a system retrieves two documents graded 1 and 0. Its nDCG@2 is $1/(3 + 3 \times 0.631) = 0.204$. Built from the two retrieved documents, the ideal would be 1, 0, and nDCG@2 would be 1.000.
  • Queries with nothing relevant. If no judged document has a positive grade, IDCG is zero and nDCG is undefined. Tools handle this differently, by skipping such queries or by scoring them 0 or 1, which can shift averages.

The demo in evaluating ranked results computes nDCG with either gain for any assignment of grades, and its presets include this article's example.

Expected reciprocal rank (Chapelle, Metzler, Zhang, and Grinspan, 2009) assumes a cascade model of users. They read down the ranking and stop as soon as they are satisfied, and highly relevant documents are more likely to satisfy them. A highly relevant document near the top then reduces the value of everything below it, since the user has probably stopped. It generalizes reciprocal rank to graded relevance. User models behind retrieval metrics is its home: it derives the formula from the cascade model and computes it for this article's worked example (0.922) and for the rankings X, Y, U and V.

Rank-biased precision uses a different model, in which the user stops after each result with a fixed probability, whatever the result contained. These measures, nDCG, and average precision differ mainly in their assumptions about how people read results. Choosing among them means choosing a model of the user.

A variant for rankings that should cover several aspects of a query, alpha-nDCG, keeps the discount and the normalization but lowers the gain of an aspect each time it reappears, so that a list that repeats itself scores less than one that covers more. Result Diversification defines it and shows why its ideal ranking is hard to compute.

Worked problems

The course text defines nDCG in §8.4 and sets no exercise on it, so the problems below are posed on this unit's own data: the rankings X and Y above, the worked ranking of evaluating ranked results, and Cranfield query 1 as described in test collections. The numbers are recomputed in tools/experiments/eval_measures/worked_examples.py.

Problem 1 (the reversal at cutoff 3, step by step). For the rankings X (grades 3, 0, 0, 2, 2, 1) and Y (grades 2, 2, 1, 3, 0, 0) of six documents for the query of the worked example (ideal ranking 3, 3, 2, 2, 1, 0), compute nDCG@3 under linear and under exponential gain, showing DCG and IDCG.

Solution. Under linear gain X scores 0.509 and Y 0.638; under exponential gain X scores 0.542 and Y 0.418. The discount factors at ranks 1 to 3 are 1, 0.631 and 0.5. The ideal top three is 3, 3, 2.

Linear gain Exponential gain
DCG@3 of X $3 + 0 + 0 = 3.000$ $7 + 0 + 0 = 7.000$
DCG@3 of Y $2 + 2(0.631) + 1(0.5) = 3.762$ $3 + 3(0.631) + 1(0.5) = 5.393$
IDCG@3 $3 + 3(0.631) + 2(0.5) = 5.893$ $7 + 7(0.631) + 3(0.5) = 12.917$
nDCG@3 of X $3.000/5.893 = 0.509$ $7.000/12.917 = 0.542$
nDCG@3 of Y $3.762/5.893 = 0.638$ $5.393/12.917 = 0.418$

The normalizer is the same for both rankings, so the reversal is already visible in DCG: 3.000 against 3.762 with linear gain, 7.000 against 5.393 with exponential. Under linear gain Y's three documents add up to more than X's one. Under exponential gain the single grade-3 document is worth 7, more than Y's $3 + 1.893 + 0.5$.

Problem 2 (binary judgments). The worked ranking has relevant documents at ranks 1, 3, 6 and 9 of ten, and a fifth relevant document that was not retrieved. Treating relevant as grade 1, compute nDCG@5 and nDCG@10.

Solution. nDCG@5 is 0.509 and nDCG@10 is 0.732. With grades 0 and 1 the two gain formulas coincide, since $2^1 - 1 = 1$. A relevant document at rank $i$ adds $1/\log_2(i + 1)$:

$$\mathrm{DCG}@5 = 1 + \frac{1}{\log_2 4} = 1.500, \qquad \mathrm{DCG}@10 = 1 + 0.500 + \frac{1}{\log_2 7} + \frac{1}{\log_2 10} = 1 + 0.500 + 0.356 + 0.301 = 2.157.$$

The ideal ranking puts the five relevant documents at ranks 1 to 5, including the one the system missed:

$$\mathrm{IDCG}@5 = \mathrm{IDCG}@10 = 1 + 0.631 + 0.500 + 0.431 + 0.387 = 2.948.$$

So nDCG@5 $= 1.500/2.948 = 0.509$, the value the test in implementing evaluation measures expects, and nDCG@10 $= 2.157/2.948 = 0.732$. The missed document lowers both, through the denominator. Had the ideal been built from the four retrieved relevant documents only, IDCG would be 2.562 and nDCG@10 would be inflated to 0.842.

Problem 3 (a real query with a reversed scale). For Cranfield query 1, the judgments hold 7 documents of grade 2, 14 of grade 3 and 7 of grade 4, on Cranfield's scale where a lower grade is better, and none of grade 1. BM25's top ten contain, in order, a grade-3 document, the document coded −1, a grade-2 document and a grade-3 document, followed by six documents with no positive judgment. With gain $5 - \text{grade}$ for grades 1 to 4 and gain 0 otherwise, compute nDCG@10, and compare it with the value under binary gains.

Solution. nDCG@10 is 0.343 with graded gains and 0.425 with binary gains. The gains are 3 for grade 2, 2 for grade 3 and 1 for grade 4. The ranking's gains by rank are 2, 0, 3, 2, 0, 0, 0, 0, 0, 0, so

$$\mathrm{DCG}@10 = 2 + \frac{3}{\log_2 4} + \frac{2}{\log_2 5} = 2 + 1.500 + 0.861 = 4.361.$$

The ideal top ten holds the seven documents of gain 3 and then three of the fourteen of gain 2. The discount factors for ranks 1 to 10 are 1, 0.631, 0.5, 0.431, 0.387, 0.356, 0.333, 0.315, 0.301 and 0.289. The first seven sum to 3.638 and the last three to 0.906, so

$$\mathrm{IDCG}@10 = 3(3.638) + 2(0.906) = 10.914 + 1.811 = 12.725, \qquad \mathrm{nDCG}@10 = \frac{4.361}{12.725} = 0.343.$$

With binary gains, the three relevant documents at ranks 1, 3 and 4 give $\mathrm{DCG}@10 = 1 + 0.5 + 0.431 = 1.931$. The query has 28 relevant documents, so the ideal fills all ten ranks and $\mathrm{IDCG}@10 = 3.638 + 0.906 = 4.544$, giving $1.931/4.544 = 0.425$. The graded value is lower because the ranking's three relevant documents are of the middle grades, while the ideal's top seven are all of the best grade available. This is the pattern of the Cranfield table above, on one query. The reversed scale matters in the first step only: using the raw grades 2, 3 and 4 as gains would reward the least useful documents most.

What we have learned

nDCG adds up graded gains, discounts each by $\log_2$ of its rank plus one, and divides by the same sum for the ideal ranking; the worked example scores 0.961 with linear gain and 0.949 with exponential. The base of the logarithm cancels, but the gain formula does not. Switching it reverses 6.2 percent of the pairs of orderings of the worked example's six documents, and graded judgments can reverse a verdict of average precision. On Cranfield, grades lowered every model's nDCG@10 slightly without changing their order. The ideal ranking must come from all the judged documents, not only the retrieved ones.

The discount of nDCG was chosen, not derived. The next article, User Models Behind Retrieval Metrics: RBP and ERR, derives measures from explicit models of how a user reads a ranking, and shows what the logarithmic discount does and does not assume. After it, Relevance Judgments, Pooling, and Agreement turns to the judgments that every measure has so far taken as given.

References

  • Burges, C., Shaked, T., Renshaw, E., Lazier, A., Deeds, M., Hamilton, N., and Hullender, G. (2005). Learning to rank using gradient descent. In Proceedings of ICML 2005, 89–96. record · 6 pages
  • Chapelle, O., and Chang, Y. (2011). Yahoo! Learning to Rank Challenge overview. In Proceedings of the Learning to Rank Challenge, PMLR 14, 1–24. record · 7 pages
  • Chapelle, O., Metzler, D., Zhang, Y., and Grinspan, P. (2009). Expected reciprocal rank for graded relevance. In Proceedings of CIKM 2009, 621–630. record · 2 pages
  • Järvelin, K., and Kekäläinen, J. (2000). IR evaluation methods for retrieving highly relevant documents. In Proceedings of SIGIR 2000, 41–48. record
  • Järvelin, K., and Kekäläinen, J. (2002). Cumulated gain-based evaluation of IR techniques. ACM Transactions on Information Systems, 20(4), 422–446. record · 2 pages
  • Manning, C. D., Raghavan, P., and Schütze, H. (2008). Introduction to Information Retrieval, section 8.4. Cambridge University Press. record · 102 pages
  • National Institute of Standards and Technology. trec_eval. https://github.com/usnistgov/trec_eval record · 4 pages

Reviewed: verified, 16 Nov 2026 · checked against sources, 23 Nov 2026 · citations checked, 16 Nov 2026 · editorial review, 23 Nov 2026 · 12 revisions