People You May Know (Friend Recommendation)
Goal: suggest connections a user is likely to accept, increasing healthy network growth.
candidates: friends-of-friends (2-hop), same school/company/contacts upload, co-engagement
-> features: mutual friends count, Adamic-Adar, graph embeddings (node2vec/GNN), profile similarity,
recency of interactions, geography
-> ranker (GBDT / two-tower + MLP) predicting p(request sent) and p(accept)
-> re-rank: diversity, spam/fake-account filters, privacy rules, de-dupe shown recently
Labels: invitations sent/accepted (impressions without action = negatives, careful with position bias). Graph computations (2-hop counts) are heavy → precompute in batch daily, refresh hot users incrementally. Metrics: accept rate, connections per DAU, long-term retention; guardrails against spammy invites.