Back to Classic ML Mind Map
中文·English
📊 Classic MLID: mrr-gauc

MRR & GAUC

MRR 与 GAUC
🎯Core Definition
two industry-grade ranking/recommendation metrics. Mean reciprocal rank MRR=1QqQ1rankqMRR = \frac{1}{|Q|} \sum_{q \in Q} \frac{1}{rank_q}, where rankqrank_q is the position of the first relevant item in the result list of query qq, contributing 0 when nothing relevant exists; MRR lies in (0,1](0, 1]. Numerical example: for 3 queries whose first relevant item is at ranks 1, 3 and 5, MRR=13(1+13+15)=13×1.5330.511MRR = \frac{1}{3}(1 + \frac{1}{3} + \frac{1}{5}) = \frac{1}{3} \times 1.533 \approx 0.511.
📌Overview
GAUC (Group AUC): compute an AUC per user, then average weighted by each user's sample size, GAUC=uwuAUCuuwuGAUC = \frac{\sum_u w_u \cdot AUC_u}{\sum_u w_u}, typically wuw_u = number of impressions/samples of user uu. Numerical example: user A has 80 samples with AUCA=0.7AUC_A = 0.7, user B has 20 samples with AUCB=0.6AUC_B = 0.6, so GAUC=80×0.7+20×0.6100=56+12100=0.68GAUC = \frac{80 \times 0.7 + 20 \times 0.6}{100} = \frac{56 + 12}{100} = 0.68, whereas a simple average over users would give (0.7+0.6)/2=0.65(0.7 + 0.6)/2 = 0.65.
💡Use Cases
search/QA/knowledge-retrieval “first hit” evaluation uses MRR; recsys fine-ranking (Alibaba's DIN paper) uses GAUC for per-user ranking quality; interviews often probe the difference, the hand computation, and industrial choice.
Key Problems Solved
MRR cares only about the position of the first relevant result — in search, users barely scroll past the first screen, so extra relevant items and later positions matter little, and MRR focuses attention on “how fast the first hit appears”; global AUC is dominated by heavy active users in recommendation (long-tailed user distribution), so a few power users with good rankings inflate the global AUC and hide poor experience for most users; GAUC evaluates at user granularity and weights each user by sample size, mirroring the “one model per user” personalization view and treating long-tail users more fairly.
🎯5 High-Frequency Exam Points
1
Hand-compute MRR: first relevant items at ranks 1, 3 and 5 for 3 queries; what does a query with no relevant result contribute?
2
MRR vs NDCG: why does MRR only look at the first relevant position, and how does that connect to “search users only look at the first screen”?
3
Why use GAUC instead of global AUC in recommendation? How does the long-tailed user distribution mislead global AUC?
4
Hand-compute GAUC: user A with 80 samples at AUC 0.7 and user B with 20 samples at AUC 0.6; show why it differs from the simple average.
5
Industrial metric selection: which metrics for recall vs fine-ranking stages, and why does the DIN paper use GAUC?
Updated 2026-08-12
🎯
Test Your Knowledge: Practice Questions for "MRR & GAUC"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardNDCGNext CardProbability Calibration

🔗 More Classic ML Knowledge Cards

AdaBoost DerivationBagging & Random ForestBaum-Welch (HMM EM)GBDT Negative Gradient