Skip to content
The Plain Paper

Measure

Normalized Discounted Cumulative Gain (NDCG)

Normalized Discounted Cumulative Gain (NDCG) is a metric for evaluating ranked results against relevance labels. It rewards relevant items near the top of a list and expresses the result relative to an ideal ranking.

What it is

NDCG evaluates a ranked list using relevance scores, which can represent different degrees of relevance rather than only relevant or not relevant. It gives more credit to highly relevant results and less credit to relevant results that appear farther down the list.1

The normalization divides the score for a ranking by the score of the best possible ranking for the same relevance labels. This makes the score 1 for an ideal ranking; with nonnegative relevance scores, it is between 0 and 1.2

How it works

First, order the true relevance scores according to the system’s predicted scores. Apply a logarithmic discount by rank, so relevance at lower positions contributes less. Add the discounted values to get the ranking’s discounted cumulative gain.12

Next, calculate the discounted cumulative gain for the ideal ordering of the same results and divide the system’s score by that ideal score. For NDCG@K, only the first K positions contribute, and the ideal score is also calculated at that cutoff.2

Where it came from

The discounted cumulative gain measure underlying NDCG was proposed by Järvelin and Kekäläinen at SIGIR 2000. Their work “Cumulated gain-based evaluation of IR techniques” was published in 2002.23

Strengths and limits

NDCG can use graded relevance, rewarding highly relevant results more than marginally relevant ones. Its rank discount reflects that results lower in the list are less likely to be examined and take more effort to reach.1

Negative true relevance scores can produce NDCG values outside the usual range of 0 to 1. When predicted scores contain ties, the default calculation averages over tied results; ignoring ties when they are present can give incorrect results.2

How recent papers use it

“Exploring Semantic Table Search in Data Lakes” uses NDCG to evaluate ranking performance. “LQ-Rec: Late Quantization for Sequential Recommendation” reports the metric at K values of 5 and 10.45

“Music Similarity Learning in Sparse Latin Scenarios” uses NDCG at cutoffs 5 and 10, noting that it penalizes errors near the top of the list. “IntentGR: Enhancing Intent for End-to-End Personalized Generative Retrieval in Search” uses NDCG@K to account for the ground-truth item’s position in the top-K list.67

“MIPR: A Benchmark for Reasoning-Intensive Multimodal Intent-to-Product Retrieval with Multi-Category Solutions” computes NDCG using gains of 2 for L1, 1 for L2, and 0 for other products. “More Than a Score: Reinforcement Learning with Verbalized Feedback for Generative Recommendation” uses a top-K version in full-item ranking evaluation.89

Names and versions

Also written as
NDCG@K, NDCG@K (N@K), Normalized Discounted Cumulative Gain (N@K)
Versions of it
  • NDCG@10 (1 paper)
  • nDCG@5 (0 papers)

Papers that mention Normalized Discounted Cumulative Gain (NDCG)

  1. 19 Nov 2026Used

    Exploring Semantic Table Search in Data Lakes

    NDCG is used to evaluate ranking performance.

  2. 18 Nov 2026Used

    LQ-Rec: Late Quantization for Sequential Recommendation

    A ranking metric reported at K values 5 and 10.

  3. 17 Nov 2026Used

    Music Similarity Learning in Sparse Latin Scenarios

    A ranking metric used at cutoffs K=5 and K=10 that penalizes errors near the top of the list.

  4. 17 Nov 2026Used

    IntentGR: Enhancing Intent for End-to-End Personalized Generative Retrieval in Search

    NDCG@K accounts for the ground-truth item's position in the top-K list.

  5. 17 Nov 2026Used

    MIPR: A Benchmark for Reasoning-Intensive Multimodal Intent-to-Product Retrieval with Multi-Category Solutions

    nDCG is computed with gains of 2 for L1, 1 for L2, and 0 for all other products.

  6. 17 Nov 2026Used

    More Than a Score: Reinforcement Learning with Verbalized Feedback for Generative Recommendation

    A top-K recommendation metric used in full-item ranking evaluation.

Sources

  1. 1Discounted Cumulated Gain | Springer Nature Linklink.springer.com
  2. 2ndcg_score — scikit-learn 1.9.1 documentationscikit-learn.org
  3. 3Graded Relevance Assessments andGraded Relevance Measures of NTCIR:A Survey of the First Twenty Yearsarxiv.org
  4. 4Exploring Semantic Table Search in Data LakesPaper explained on this site
  5. 5LQ-Rec: Late Quantization for Sequential RecommendationPaper explained on this site
  6. 6Music Similarity Learning in Sparse Latin ScenariosPaper explained on this site
  7. 7IntentGR: Enhancing Intent for End-to-End Personalized Generative Retrieval in SearchPaper explained on this site
  8. 8MIPR: A Benchmark for Reasoning-Intensive Multimodal Intent-to-Product Retrieval with Multi-Category SolutionsPaper explained on this site
  9. 9More Than a Score: Reinforcement Learning with Verbalized Feedback for Generative RecommendationPaper explained on this site

Every paragraph above was checked against the sources it cites before it was published.