Problem
E-commerce sites show products related to what a customer is viewing, such as cases for a phone. The relationships are directed: a case suits a phone shopper, but a phone does not suit a case shopper. Graph neural networks (GNNs) embed each node from its neighbors, but standard implementations fix the neighborhood size at one or two hops and sample neighbors uniformly. A low-degree node may need a longer chain of connections, and a high-degree neighbor is generally more informative.
Example from the article: a phone links to a case, a power adaptor and a screen guard, with edges pointing from the phone to the accessories.
Solution in brief
BLADE (biased locally adaptive direction aware) gives each node a source embedding and a target embedding. It sets each node's neighborhood size from its in-degree with a power law, and weights neighbor sampling by the neighbors' in- and out-degrees. Low-degree nodes look farther out, and well-connected neighbors get sampled more often.
Questions this case answers
- How to produce useful embeddings for both well-connected and sparsely connected nodes of a large directed graph when a fixed neighborhood size and uniform neighbor sampling treat them alike
- How to recommend related products when the product relationship graph is directed and node degrees vary widely?
- How to choose how many hops and which neighbors a graph neural network should sample for each node?
- How to recommend accessories for a product without recommending the product for the accessory?
Tools and methods
- Graph neural network — iterative node embedding from the node and its sampled neighbors.
- Dual source and target embeddings — encode the direction of product relationships.
- In-degree-based neighborhood size — power law over a node's in-degree and the graph's minimum in-degree.
- Degree-weighted neighbor sampling — sampling probability depends on neighbors' in- and out-degrees.
Google or a one-time email code. No password.