← AI HoodmanNo. 006 · Recommendations
People You May Know
What did the friend-suggestion model miss?
01of 07
Use the arrows, swipe or the arrow keys to turn the slides. Click a slide to read it page by page.What did the friend-suggestion model miss?


![Slide 3 of 7: One GNN layer: Each user absorbs their friends. 1. Average Alice's friends Carol [0.8, 0.3, 0.6] Dan [0.6, 0.1, 0.8] Eve [0.7, 0.2, 0.5] Frank [0.5, 0.2, 0.5] Average [0.65, 0.20, 0.60] 2. Stack her own vector with the average, then multiply by W new = ReLU(W · [own ; average]) 0.5 0 0 1.0 0 0.25 0 0.2 0 0 0.6 0 0.5 0 0 0 0.5 1.0 · W (d × 2d) 0.2 0.9 0.1 0.65 0.20 0.60 0.9 = 0.3 0.8 new [own ; average] d = vector size. ReLU turns negatives into 0. W starts random and training tunes it. Every user shares the same W.](/posts/006/03.webp)

![Slide 5 of 7: How it's trained: Predict which friendships form. Score a pair: dot product of their GNN vectors, then sigmoid Alice [0.9, 0.3, 0.8] · Bob [0.8, 0.3, 0.8] = 1.45 sigmoid(1.45) = 0.81 Profiles alone gave 0.08 Labels: take last month's graph, then predict the friendships made since Pair Where it came from Target Score (Alice, Bob) friends since 1 0.81 (Alice, Gina) random user 0 0.12 (Alice, Omar) random user 0 0.05 The loss flows back through every layer and updates W.](/posts/006/05.webp)

