Scoring millions of videos per homepage load with a heavy ranking network is impossible under mobile latency budgets, while optimizing clicks alone floods feeds with short clickbait. Paul Covington, Jay Adams, and Emre Sargin solved both constraints in YouTube’s 2016 RecSys paper by splitting recommendations into two neural networks trained on Google Brain (TensorFlow) with roughly 1 billion parameters and hundreds of billions of examples: an extreme-multiclass candidate generator that narrows millions of videos down to hundreds via nearest-neighbor search, and a deep ranker trained via watch-time-weighted logistic regression that cuts next-day holdout ranking loss from 41.6% (linear) to 34.6%.
- 100x+ faster candidate training: Posing retrieval as softmax classification over 1 million video classes becomes tractable using importance-weighted candidate sampling of several thousand negatives, running over 100 times faster than full softmax while beating hierarchical softmax on accuracy.
- Depth and watch-time labels beat CTR: Adding three ReLU layers (
1024 -> 512 -> 256) drops watch-time-weighted per-user pairwise loss from 41.6% to 34.6%; weighting clicks equally (CTR instead of watch seconds) worsens that loss by +4.1%, and dropping normalized feature powers (x^2,sqrt(x)) costs +0.2%. - Freshness via
Example Age: Feeding training example age (t_max - t_N) during training and setting it to0(or slightly negative) at serving eliminates the model’s average-window bias against newly uploaded videos. - Embedding dominance: Mapping 1 million IDs into 32 dimensions uses 7x more parameters than 2,048-wide fully connected layers, making shared ID vocabularies essential across ranking features.
Stage 1: Retrieval as extreme classification
Candidate generation generalizes matrix factorization into a nonlinear deep collaborative filter. Training treats every completed watch as a target class i out of V videos (P(w_t = i | U, C) = exp(v_i u) / sum_j exp(v_j u)), using importance-weighted sampled softmax over several thousand negatives during training and an approximate nearest neighbor (ANN) index like FAISS in dot-product space at serving (removing the need for calibrated probabilities or LogQ proposal tuning introduced in later two-tower work).
Crucially, Covington and colleagues show that surrogate label design beats architecture tweaks in live A/B tests:
- Train on all watches, capped per user: Including off-site embeds surfaces viral discoveries that recommender-only logs would bury, while fixing examples per user prevents power users from hijacking gradients.
- Predict future watches, not random holdouts: Holding out a random watch leaks future clicks and breaks asymmetric patterns (episodes watched in order, or broad hits before niche artists). Rolling back history to predict the next watch avoids leakage.
- Withhold search sequence: Representing recent searches as an unordered bag of unigrams/bigrams prevents the classifier from trivially cloning the user’s last search results page onto the homepage.
Stage 2: Ranking for expected watch time
Because ranking scores only a few hundred candidates (from the neural generator plus non-neural sources), it can afford hundreds of dense temporal features: channel watch counts, time since last topic watch, source scores from Stage 1, and previous impression counts that force “churn” so ignored recommendations drop down on page refresh. Continuous inputs are mapped into [0, 1) via empirical cumulative quantile interpolation, then paired with x_tilde^2 and sqrt(x_tilde).
To predict expected watch time E[T] instead of clickbait CTR, positive impressions are weighted by observed watch duration T_i and unclicked impressions by 1 in logistic regression. When positive rate P is small, learned odds E[T](1 + P) approximate E[T], so serving scores exp(x) directly order videos by expected watch time.
Caveats and builder takeaway
- No live A/B percentages published: While the authors state that offline MAP and per-user loss frequently diverge from live A/B metrics, the 2016 paper omits numerical live CTR and watch-time lifts.
- Watch time misses satisfaction and position bias: Optimizing duration alone still rewards overly long passive sessions and inherits feedback loops from past slot positions, gaps later addressed by YouTube’s 2019 multitask ranker with engagement/satisfaction heads and shallow position towers.
- Fixed vocabularies truncate the tail: Ranking vocabularies drop infrequent IDs to zero embeddings, and
exp(x)odds estimation assumes low click-through rates (Pwell below 1).
Split retrieval and ranking as soon as your catalog outgrows feature-heavy scoring, and treat label construction (Example Age, future-watch rollbacks, and duration weighting) as a higher-leverage dial than network depth alone.

