Metrics That Matter

By Ludovico Bessi, Senior ML Engineer at Google ยท Updated

Recommender metrics come in three layers: model metrics (AUC, log loss, recall@K, NDCG) measured offline, product metrics (CTR, watch time, retention) measured online, and business metrics (revenue, long-term growth). Good teams know which offline metrics predict which online outcomes, and guard against optimizing proxies.

Three Layers of Metrics

Recommender teams track three kinds of numbers, and confusing them is a classic source of wasted effort:

  1. Model metrics โ€” how well a model predicts its training labels (AUC, log loss, recall@K, NDCG). Computed offline.
  2. Online product metrics โ€” what users do in an A/B test (click-through rate, watch time, sessions, retention).
  3. North-star and guardrail metrics โ€” what the business actually cares about over months (daily active users, long-term retention, revenue, satisfaction surveys), plus things that must not get worse (latency, reports, creator health).

A model metric is only useful to the extent that it moves product metrics, which matter only to the extent that they move the north star.

Retrieval Metrics

Retrieval returns an unordered (or loosely ordered) set; what matters is whether the good items are in it.

  • Recall@K: of the items the user actually engaged with, what fraction appear in the top K retrieved? The main retrieval metric.
  • Hit rate@K: whether at least one engaged item is in the top K (common in next-item prediction).
  • Coverage: what fraction of the catalog ever gets retrieved. Low coverage signals popularity bias.

A useful production variant: ranker-recall โ€” what fraction of the items the downstream ranker would place in its top 10 does this retrieval source produce? This measures retrieval by what it contributes to the final list.

Ranking Metrics

Classification metrics

Most rankers predict probabilities (click, like, finish). Standard metrics:

  • AUC (ROC area): probability that a random positive is scored above a random negative. Insensitive to calibration.
  • Log loss (cross-entropy): penalizes confident wrong predictions and depends on calibration. Small relative improvements (0.1โ€“0.5%) are often significant at scale.
  • Normalized entropy (NE): log loss divided by the entropy of the background rate, used by Meta to compare across datasets with different base rates.
  • Group AUC (GAUC): AUC computed per user and averaged (weighted by impressions). Matches how ranking is used โ€” ordering items for one user โ€” better than global AUC, which mixes users.

Ranking quality

  • NDCG@K (normalized discounted cumulative gain): rewards placing highly relevant items near the top, with a logarithmic position discount. Supports graded relevance.
  • MRR (mean reciprocal rank): average of 1/rank of the first relevant item. Good when one correct answer matters.
  • MAP: mean average precision across relevant items.

Calibration

If the model says 5% click probability, about 5% should click. Calibration matters whenever predictions are combined (multi-objective scores), compared across surfaces, or used for pricing (ads). Track the ratio of mean prediction to observed rate, overall and per segment.

Online Metrics

  • Engagement: click-through rate, watch time, dwell time, likes, shares, comments, follows.
  • Satisfaction: survey responses, explicit "not interested" and hides, return visits.
  • Retention: daily/weekly active users, sessions per user, churn.
  • Ecosystem: creator coverage (how many creators get impressions), new-item exposure, diversity of consumption.
  • Guardrails: latency, error rates, policy violations, user reports.

The proxy problem

Clicks are easy to measure and easy to game: optimizing click-through rate alone breeds clickbait. Watch time is better but can favor long, passive content. YouTube publicly described moving from clicks to watch time and later adding satisfaction signals from surveys. The general lesson: every short-term metric is a proxy, and optimizing a proxy hard enough eventually diverges from what you wanted (Goodhart's law). Track several and weight them deliberately.

Long-Term Metrics

Short A/B tests (one to two weeks) can mislead:

  • Novelty effects: a new UI or recommendation style gets a temporary boost.
  • Learning effects: users adapt to a change slowly, positively or negatively.
  • Ecosystem effects: changes in what gets recommended change what creators produce, over months.

Mitigations include long-running holdouts (a small group kept on the old system for months), modeling long-term outcomes from short-term surrogate metrics that historically predicted them, and tracking retention curves rather than averages.

Connecting Offline and Online

The uncomfortable truth: offline gains often do not translate into online gains. Common reasons:

  • The offline dataset was logged by the old model, so it under-represents items the new model would show (see Offline vs Online Evaluation).
  • The metric does not match the product objective (AUC on clicks when you optimize watch time).
  • Gains are concentrated in segments that do not matter much.

Teams build trust in offline metrics by recording, for every launched experiment, the offline delta next to the online result. Over time this shows which offline metrics are predictive for your system and roughly how much offline improvement is needed for a detectable online win.

Key Takeaways

  1. Separate model metrics, online product metrics and north-star/guardrail metrics.
  2. Retrieval is about recall; ranking about ordering (GAUC, NDCG) and calibrated probabilities (log loss).
  3. Every engagement metric is a proxy; use several, including satisfaction signals.
  4. Short A/B tests miss long-term and ecosystem effects; use holdouts and surrogate metrics.
  5. Track offline-vs-online deltas historically to learn which offline metrics predict wins.