← Back to System Design Mind Map
🏗️ System DesignID: recsys-offline-metrics

RecSys Metrics: GAUC & NDCG

推荐离线指标 GAUC 与 NDCG
🎯Core Definition
RecSys Offline Evaluation Metrics quantify ranking quality, personalization accuracy, and relevance fidelity before pushing model candidates online; the two flagship metrics are: 1) GAUC (Group Area Under ROC Curve, weighted by user impression volume wuw_u): GAUC=∑uwu⋅AUCu∑uwu\text{GAUC} = \frac{\sum_{u} w_u \cdot \text{AUC}_u}{\sum_{u} w_u}, measuring intra-user personalization ranking ability; 2) NDCG@K (Normalized Discounted Cumulative Gain): NDCG@K=DCG@KIDCG@K\text{NDCG@K} = \frac{\text{DCG@K}}{\text{IDCG@K}}, where DCG@K=∑i=1K2ri−1log⁡2(i+1)\text{DCG@K} = \sum_{i=1}^K \frac{2^{r_i} - 1}{\log_2(i + 1)}, rewarding highly relevant items positioned near top ranking slots via logarithmic position discounting.
💡Use Cases
Offline model validation, hyperparameter tuning, and checkpoint candidate screening for online deployment.
⚡Key Problems Solved
Global AUC is heavily distorted by cross-user baseline CTR disparities (models can score high Global AUC purely by separating active users from inactive users while failing intra-user ranking completely); GAUC isolates true per-user personalization power.
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep Dive
Core Def
Explain the core definition, underlying mechanism/math, and key principles of RecSys Metrics: GAUC & NDCG.
Use Cases
In production engineering, what are the primary use cases for RecSys Metrics: GAUC & NDCG and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
Derive mathematically why Global AUC suffers cross-user bias and demonstrate cases where Global AUC rises while GAUC drops?
2
Derive NDCG@K, DCG@K, and IDCG@K formulas, explaining the psychological grounding of logarithmic position discount log⁡2(i+1)\log_2(i+1)?
3
How should users with only positive (all-click) or only negative (zero-click) labels be filtered/handled when aggregating GAUC?
4
Compare MRR (Mean Reciprocal Rank) vs MAP (Mean Average Precision) across single-positive vs multi-positive recommendation tasks?
5
Why is a +0.005 GAUC improvement considered a massive production milestone directly driving millions in revenue?
Updated 2026-08-14
🎯
Verify Mastery: Practice Exam Questions for "RecSys Metrics: GAUC & NDCG"
Take pitfall multiple-choice questions with derivation options; mistakes are automatically logged.
🚀 Start Card Practice ➔
← Previous CardReranking Diversity & DPP ProcessNext Card →Online A/B Testing & Interleaving

🔗 More System Design Knowledge Cards

引用出处: TalentMe 450+ 工业级 AI 架构考点知识库 (Tech Vault) · 遵循 CC-BY-4.0 知识共享协议
URL: https://talentme.airsota.com/resources/tech/roadmap/mindmap/System_Design/card/recsys-offline-metrics
中文速览与面试要点

推荐离线指标 GAUC 与 NDCG (RecSys Metrics: GAUC & NDCG)

定义: 推荐系统离线评估指标体系 (RecSys Offline Evaluation Metrics) 是一套在模型离线训练完成后、在线推全之前,全面量化模型排序能力、跨用户区分度与推荐质量的数学指标集合;两大核心黄金指标为:1) GAUC (Group Area Under ROC Curve,按用户分组加权 AUC): GAUC = _u w_u AUC_u _u w_u(w_u 通常为用户 u 的曝光展现量或点击量),衡量模型在每个独立用户内部的个性化排序能力;2) NDCG@K (Normalized Discounted Cumulative Gain): NDCG@K = DCG@K IDCG@K(其中 DCG@K = _i=1^K 2^r_i - 1 _2(i + 1)),对排在前列的相关物品赋予更高的对数折损奖励权重。 使用场景: 推荐与广告模型离线验证、模型超参数调优、各迭代版本 Checkpoint 的离线准入选拔。 解决的问题: 全局朴素 AUC (Global AUC) 会受到活跃用户与冷门用户之间基准点击率差异的严重混淆(即便模型完全无法对某个用户的候选排序,仅凭对不同用户整体偏好的区分就能刷出虚高的高 AUC);GAUC 彻底消除了跨用户 Bias,真实反映个性化排序效果。

核心要点

  • 详细推导为什么 Global AUC 会被用户活跃度差异所混淆,并通过反例说明 Global AUC 升高但 GAUC 反而下降的现象?
  • 推导 NDCG@K、DCG@K 与理想排序 IDCG@K 的完整计算公式,并解释对数折损因子 _2(i+1) 的位置心理学依据?
  • 当用户在测试集中只有正样本(全点击)或只有负样本(全未点)时,计算 GAUC 时如何处理该用户的 AUC_u?
  • MRR (Mean Reciprocal Rank) 与 MAP (Mean Average Precision) 在单正例与多正例推荐评测中的适用场景?
  • 为什么离线 GAUC 提升 0.5% (5 个千分点) 在工业界被视为极其显著的重大突破,能直接带来可观的在线商业收入增长?