Algorithm Search⌘K

Definitionresearch

Alpha-nDCG

Also called alpha-normalized discounted cumulative gain.

An nDCG variant over the subtopics of a query that discounts the gain of a subtopic each time it has already been covered.

Alpha-nDCG is a version of nDCG for queries with several subtopics, or nuggets, such as the meanings of an ambiguous query. A document gains for each nugget it contains, but a nugget that documents higher in the ranking already contain is worth less each time it repeats: its gain is multiplied by 1−α1 - \alpha for each earlier document that has it. So a ranking that covers many nuggets near the top scores higher than one that repeats the same nugget. Clarke, Kolla, Cormack, Vechtomova, Ashkan, Büttcher and MacKinnon defined it in 2008. Its normalizer, the DCG of the ideal ranking, is NP-hard to compute, so in practice it is computed by a greedy algorithm, and the result is then only an approximation of the ideal.

Definition

Input. A ranking d1,d2,…d_1, d_2, \ldots of distinct documents for a query, a set of nuggets 1,…,m1, \ldots, m of the query, judgments J(d,t)∈{0,1}J(d, t) \in \{0, 1\} that say whether document dd contains nugget tt, a parameter 0≤α≤10 \le \alpha \le 1 and a cutoff kk. A document that is not judged contains no nugget.

Gain. Let rt,j−1=∑i<jJ(di,t)r_{t, j - 1} = \sum_{i < j} J(d_i, t) be the number of documents above rank jj that contain nugget tt. The gain at rank jj is

G[j]=∑t=1mJ(dj,t) (1−α)rt,j−1.G[j] = \sum_{t=1}^{m} J(d_j, t) \, (1 - \alpha)^{r_{t, j - 1}} .

The first document with nugget tt gets 1 for it, the second gets 1−α1 - \alpha, the third (1−α)2(1 - \alpha)^2, and so on. One reading: each earlier document with the nugget satisfies the need for it with probability α\alpha, and the gain is the probability that the need is still open.

Discounted gain. DCG[k]=∑j=1kG[j]/log⁡2(1+j)\mathrm{DCG}[k] = \sum_{j=1}^{k} G[j] / \log_2(1 + j), with the discount of nDCG.

Ideal ranking. Clarke et al. define the ideal ranking as one that maximizes the cumulative gain CG[j]=∑i≤jG[i]\mathrm{CG}[j] = \sum_{i \le j} G[i] at every depth jj, and DCG′[k]\mathrm{DCG}'[k] as its discounted gain. Computing it is NP-hard (see below), so they compute it greedily: at each rank, put the document with the largest gain GG given the documents already placed, and break ties arbitrarily.

The measure.

α-nDCG[k]=DCG[k]DCG′[k].\alpha\text{-nDCG}[k] = \frac{\mathrm{DCG}[k]}{\mathrm{DCG}'[k]} .

It is undefined when no judged document contains a nugget, as nDCG is. With α=0\alpha = 0 no repeat is discounted, every document gets one unit for each nugget it has, and alpha-nDCG is standard nDCG with the number of nuggets of a document as its grade. With α=1\alpha = 1 only the first copy of each nugget counts, and CG[k]\mathrm{CG}[k] is the number of nuggets covered by the top kk.

The ideal ranking is NP-hard

Claim 1. For α=1\alpha = 1, deciding whether some ranking reaches CG[k]=m\mathrm{CG}[k] = m, that is, whether kk documents cover all nuggets, is NP-complete.

Proof. Clarke et al. reduce from vertex cover. Given a graph and a number kk, make one document for each vertex and one nugget for each edge, and let a document contain the nuggets of the edges at its vertex. With α=1\alpha = 1, CG[k]\mathrm{CG}[k] of a ranking is the number of edges touched by its top kk vertices, so it equals mm exactly when those vertices form a vertex cover of size kk. Membership in NP is clear: a ranking is a certificate that can be checked in polynomial time. □\square

So an algorithm that computes the ideal ranking of the definition in polynomial time would decide vertex cover, and the problem is NP-hard. An ordering that maximizes CG at every depth at once need not even exist: the counterexample below has a different best set at depth 1 and at depth 2.

The greedy normalizer

Claim 2. Let DCG′[k]\mathrm{DCG}'[k] come from the greedy ranking, with any tie rule. Then for every ranking, DCG[k]≤ee−1DCG′[k]\mathrm{DCG}[k] \le \frac{e}{e - 1} \mathrm{DCG}'[k]. So the reported alpha-nDCG is at most e/(e−1)≈1.582e/(e - 1) \approx 1.582, and it can be larger than 1.

Proof. CG[j]\mathrm{CG}[j] depends only on the set SS of the top jj documents: f(S)=∑t∑c=0nt(S)−1(1−α)cf(S) = \sum_t \sum_{c=0}^{n_t(S) - 1} (1 - \alpha)^c, where nt(S)n_t(S) is the number of documents of SS with nugget tt. Adding dd to SS adds ∑t∈d(1−α)nt(S)\sum_{t \in d} (1 - \alpha)^{n_t(S)}, which is the gain GG of dd at the next rank. This added value never grows as SS grows, so ff is monotone and submodular. The greedy ranking adds at each rank the document of largest gain, so its top jj is the greedy solution for jj documents, and the Nemhauser-Wolsey-Fisher theorem gives CG′[j]≥(1−1/e) CG∗[j]\mathrm{CG}'[j] \ge (1 - 1/e) \, \mathrm{CG}^*[j], where CG∗[j]\mathrm{CG}^*[j] is the largest value of any ranking at depth jj. Now write wj=1/log⁡2(1+j)w_j = 1/\log_2(1 + j) and wk+1=0w_{k+1} = 0. Summation by parts gives DCG[k]=∑j=1kCG[j](wj−wj+1)\mathrm{DCG}[k] = \sum_{j=1}^{k} \mathrm{CG}[j] (w_j - w_{j+1}), with coefficients at least 0 because ww decreases. So for every ranking, DCG[k]≤∑jCG∗[j](wj−wj+1)≤ee−1∑jCG′[j](wj−wj+1)=ee−1DCG′[k]\mathrm{DCG}[k] \le \sum_j \mathrm{CG}^*[j] (w_j - w_{j+1}) \le \frac{e}{e - 1} \sum_j \mathrm{CG}'[j] (w_j - w_{j+1}) = \frac{e}{e - 1} \mathrm{DCG}'[k]. □\square

Clarke et al. write that if no ties occur, the greedy approach computes the ideal gain vector, and that a run which beats the approximation when ties occur would be credited with an ideal result. The first part does not hold, as the second counterexample below shows. The greedy value is a good normalizer in practice, but a value above 1 is possible with or without ties.

Examples and non-examples

A worked example with α=1/2\alpha = 1/2

This is the example of Clarke et al. Ten documents a to j are ranked in that order, and six nuggets 85.1 to 85.6 are judged:

Rank jj 1 2 3 4 5 6 7 8
Document a b c d e f g h
Nuggets 85.2, 85.4 85.2 85.2 none 85.1, 85.6 85.1 85.3 85.1
G[j]G[j] 2 0.5 0.25 0 2 0.5 1 0.25
DCG[j]\mathrm{DCG}[j] 2 2.315 2.440 2.440 3.214 3.392 3.726 3.804
DCG′[j]\mathrm{DCG}'[j] 2 3.262 3.762 3.977 4.171 4.260 4.343 4.343
α\alpha-nDCG[j][j] 1 0.710 0.649 0.614 0.771 0.796 0.858 0.876

Documents i and j contain no nugget. Document b repeats 85.2 once, so it gets 1/21/2, and c repeats it twice, so it gets 1/41/4. The greedy ideal ranking is a, e, g, b, f, c, h, with gains 2, 2, 1, 0.5, 0.5, 0.25, 0.25. Here a and e tie at rank 1 and the tie is broken by name. For this example a search over all orders of the seven documents with nuggets shows that the greedy values are the best at every depth.

With α=0\alpha = 0 the gains of the run are 2, 1, 1, 0, 2, 1, 1, 1, and α\alpha-nDCG[8] is 0.932: the three copies of 85.2 in a row cost nothing. With α=1\alpha = 1 the gains are 2, 0, 0, 0, 2, 0, 1, 0 and α\alpha-nDCG[8] is 0.826.

Ties broken badly

Let α=1/2\alpha = 1/2, and let d1 contain t1 and t2, d2 contain t1 and t3, and d3 contain t2 and t4. All three tie with gain 2 at rank 1. If the tie rule picks d1, then d2 and d3 tie with gain 1.5 at rank 2, and the greedy DCG′[2]=2+1.5⋅0.6309=2.946\mathrm{DCG}'[2] = 2 + 1.5 \cdot 0.6309 = 2.946. The ranking d2, d3 covers four new nuggets and has DCG[2]=2+2⋅0.6309=3.262\mathrm{DCG}[2] = 2 + 2 \cdot 0.6309 = 3.262, so its alpha-nDCG[2] is 1.107.

No ties, and still not ideal

Let α=1\alpha = 1, with nuggets 0 to 7, d1 containing 0, 2, 3, 5 and 7, d2 containing 0, 4, 6 and 7, and d3 containing 1, 2, 3 and 5. At rank 1 the gains are 5, 4 and 4, so greedy picks d1 with no tie. At rank 2 the new nuggets of d2 are 4 and 6 and those of d3 are 1, so greedy picks d2, again with no tie, and DCG′[2]=5+2⋅0.6309=6.262\mathrm{DCG}'[2] = 5 + 2 \cdot 0.6309 = 6.262. The ranking d2, d3 covers all eight nuggets: DCG[2]=4+4⋅0.6309=6.524\mathrm{DCG}[2] = 4 + 4 \cdot 0.6309 = 6.524, and its alpha-nDCG[2] is 1.042. No ranking maximizes CG at both depths: depth 1 needs d1 first, and depth 2 needs d2 and d3.

Non-examples

  • nDCG with the number of nuggets as the grade. That is the case α=0\alpha = 0, and it gives no credit for diversity.
  • An intent-aware measure such as NDCG-IA of Agrawal et al., which computes nDCG for each subtopic and averages the values with the probability of each subtopic. It weights the subtopics but has no discount for repeats inside one subtopic list. See search result diversification.
  • Alpha-nDCG with the ideal taken from the run's own documents. As for nDCG, the ideal must come from all judged documents.
  • nDCG is the case α=0\alpha = 0.
  • The greedy ideal is the greedy algorithm for maximum coverage when α=1\alpha = 1, and the hardness is the hardness of vertex cover and set cover.
  • Expected reciprocal rank also lets the documents above lower the worth of a document, through the probability that the user has already stopped. Averaged over subtopics it gives an intent-aware measure of diversity.
  • Search result diversification is the ranking problem that alpha-nDCG evaluates.

Claims 1 and 2 are proved. That alpha-nDCG matches what users of ambiguous queries want is a question of measurement; Clarke et al. apply it to the question series of the TREC 2006 question answering track. The value of α\alpha must be reported with the results.

References

  1. Charles L. A. Clarke, Maheedhar Kolla, Gordon V. Cormack, Olga Vechtomova, Azin Ashkan, Stefan Büttcher and Ian MacKinnon, Novelty and diversity in information retrieval evaluation, SIGIR 2008, the model of documents and needs as sets of nuggets and the gain with parameter alpha; Section 5.1 (the ideal ordering, the proof that computing it is NP-complete by a reduction from vertex cover, and the greedy approximation with ties broken arbitrarily); Section 5.2 (alpha-nDCG, and the case alpha = 0); Section 6 (the TREC 2006 question answering data)
  2. George L. Nemhauser, Laurence A. Wolsey and Marshall L. Fisher, An analysis of approximations for maximizing submodular set functions I, Mathematical Programming 14, 1978, pp. 265-294, the greedy bound 1 - 1/e for monotone submodular maximization under a cardinality constraint

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.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/1G955M/text.yaml