Glossary · E-commerce ML

Graph Neural Networks

also: GNN · GraphSAGE · graph convolution

Definition

Graph Neural Networks learn representations over graph-structured data by message-passing between nodes. In e-commerce cross-sell, GNNs ingest the user-item-category graph and produce recommendations that respect product hierarchy, co-purchase relationships, and session structure — outperforming flat collaborative filtering by 15–25% on business metrics.

Standard recommendation models treat the user-item matrix as a flat bipartite graph. GNNs — GraphSAGE, GCN, PinSAGE — explicitly model multi-hop relationships and aggregate information from graph neighborhoods. The architecture's strength in cross-sell is its ability to exploit complementarity structure (products in the same cart) and category hierarchy simultaneously. Pinterest's production PinSAGE serves billions of recommendations daily using a GraphSAGE variant tuned for their pin-board-user graph.

Essays on this concept