Why evaluate retrieval/candidate generation with recall@k or precision@k, but rankers with NDCG?

Quick Overview

Asks why the candidate generation stage of a recommender or search system is judged with recall@k or precision@k while the ranking stage is judged with NDCG. Tests understanding of multi-stage architectures, position-weighted metrics, graded relevance and end-to-end evaluation.

Why evaluate retrieval/candidate generation with recall@k or precision@k, but rankers with NDCG?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

In a multi-stage recommendation or search system, why do teams evaluate retrieval (candidate generation) with recall@k or precision@k, but evaluate the ranker with NDCG? ```hint Think about what each stage can lose Ask what happens downstream to a relevant item that one stage drops entirely, and to one that it only places low in its output. ``` ```hint Check where the user looks Consider whose output order the user actually sees, and how attention falls off down the list. ``` ### What a Strong Answer Covers - The different job each stage does in a multi-stage system - Why an item missed at retrieval cannot be recovered, and why order inside the candidate set matters little - What precision@k or the candidate-set size says about the cost passed downstream - How NDCG weights positions and supports graded relevance, and when MRR or a small-k NDCG fits better - Why per-stage metrics need an end-to-end check ### Follow-up Questions - How would you choose k when measuring retrieval recall? - How do you get labels for retrieval recall when the logs only contain items the old system chose to show? - Your ranker's NDCG improved offline but online engagement did not move. What would you check? - When might a rank-aware metric make sense at the retrieval stage?

Overview: Asks why the candidate generation stage of a recommender or search system is judged with recall@k or precision@k while the ranking stage is judged with NDCG. Tests understanding of multi-stage architectures, position-weighted metrics, graded relevance and end-to-end evaluation.

PracHub logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

In a multi-stage recommendation or search system, why do teams evaluate retrieval (candidate generation) with recall@k or precision@k, but evaluate the ranker with NDCG?

What a Strong Answer Covers Guidance

  • The different job each stage does in a multi-stage system
  • Why an item missed at retrieval cannot be recovered, and why order inside the candidate set matters little
  • What precision@k or the candidate-set size says about the cost passed downstream
  • How NDCG weights positions and supports graded relevance, and when MRR or a small-k NDCG fits better
  • Why per-stage metrics need an end-to-end check

Follow-up Questions Guidance

  • How would you choose k when measuring retrieval recall?
  • How do you get labels for retrieval recall when the logs only contain items the old system chose to show?
  • Your ranker's NDCG improved offline but online engagement did not move. What would you check?
  • When might a rank-aware metric make sense at the retrieval stage?