News Feed Ranking (Facebook / LinkedIn)
Goal: order the posts from a user's network (and recommended content) to maximize meaningful engagement and long-term retention, not just clicks.
candidates: posts from friends/follows/groups since last visit (+ recommended, ads slots) ~ thousands
-> light ranker (small model / GBDT) ~ hundreds
-> heavy ranker: multi-task DNN -> p(click), p(like), p(comment), p(share), p(hide), p(dwell > 10s)
-> value model: score = Σ w_i · p_i (weights set by product goals; negative for hide/report)
-> re-rank: diversity (not 5 posts from one author), freshness, integrity demotions, ads blending
- Features: viewer–author affinity (past interactions, closeness), post features (type, age, early engagement velocity), viewer context (device, time, session depth), content embeddings.
- Labels: implicit engagement events with weights; negative feedback (hide, unfollow, report) matters as much as positives; delayed signals (did the user come back tomorrow?) via long-term value models.
- Training: logged impressions, time-based splits, frequent retraining (daily or streaming); handle position bias and the feedback loop (exploration slots, counterfactual evaluation).
- Serving: the feed is computed on request (fresh) with a latency budget of a few hundred ms; heavy features precomputed in a feature store; cache candidates.
- Metrics: offline AUC/NDCG per head and calibration; online time spent, meaningful interactions, retention, negative feedback rate, creator-side health.