Graph Neural Networks
Q: How do GNNs work and where are they used?
Message passing: each node updates its embedding by aggregating its neighbours' messages: h_v' = σ(W·h_v + Σ_{u∈N(v)} W'·h_u / |N(v)|) (GCN, GraphSAGE; GAT uses attention weights). k layers ⇒ k-hop receptive field.
Uses: fraud rings, recommendations (user–item graphs, PinSage), molecules/drug discovery, traffic/ETA, knowledge graphs.
Issues: over-smoothing with many layers, neighbourhood explosion → neighbour sampling (GraphSAGE) or cluster batching for large graphs.