Problem
Teams that build search or recommendation rankers need an offline number to compare ranker versions. No single metric fits every task, because each assumes something about how people read a list. MSE, precision and recall give the same score wherever the relevant items sit. A wrong choice ranks a worse list above a better one and points the team the wrong way.
Example from the article: two result lists for one query. The list with a relevant document first scores worse on MSE and on Kendall Tau distance (9 inversions against 8), although users prefer it.
Solution in brief
A ranking metric must weight relevant results near the top more than those further down. The article goes from unranked metrics through ranked ones (precision@k, AP, RR) to user-oriented ones (nDCG, RBP, ERR), and says for each what it assumes about the user and when it applies.
Questions this case answers
- How to pick an offline quality metric for an ordered list when users only look at the first few items and the usual regression or classification metrics ignore position
- How to choose an offline metric that measures the quality of a ranked list in search or recommendations?
- How to tell whether a ranking metric rewards putting relevant items on top?
- How to compute nDCG, MAP, MRR, RBP and ERR by hand and check the result?
Tools and methods
- precision@k and recall@k — relevant share of the top , and share of all relevant items found there
- AP@k and MAP@k — precision at relevant positions, averaged over queries
- RR and MRR — reciprocal rank of the first relevant item, averaged over queries
- DCG and nDCG — graded relevance with an exponential gain and a logarithmic position discount
- RBP and ERR — metrics built on an explicit model of when the user stops reading
Google or a one-time email code. No password.