Problem
A music service wants to continue a playlist: given the tracks already in it, suggest more tracks that fit. Content features and listening histories help, but membership alone already shows which tracks go together. Training a graph model on that membership graph is hard. The full graph (512 thousand nodes, 3.3 million edges) did not fit the authors' Colab resources, and a random split of graph data breaks the neighborhoods the model learns from.
Example from the article: Stanford CS224W students predict missing playlist-track edges on a sample of the Spotify Million Playlist Dataset.
Solution in brief
Treat playlists and tracks as a bipartite graph, shrink it to its 30-core, and learn playlist and track embeddings with a graph neural network. Recommend the top K tracks by dot product, train with a BPR ranking loss and negative edges, and evaluate with Recall@K on a transductive edge split. GraphSAGE layers beat LightGCN and GAT layers in this setup.
Questions this case answers
- How to recommend items to a collection of items (a set-continuation task) using only set-membership data, when the interaction graph does not fit in memory
- How to evaluate and train a link-prediction recommender on a graph where random edge splits would break the message-passing structure
- How to continue a playlist with tracks that similar playlists contain, using only playlist-track membership?
- How to fit a graph neural network recommender when the interaction graph is too large for the GPU?
Tools and methods
- Bipartite playlist-track graph — an edge means the track is in the playlist
- K-core subgraph — keeps the dense center of the graph so it fits in memory
- LightGCN, GAT and GraphSAGE layers — interchangeable message-passing layers
- BPR loss with random or hard negative sampling — a differentiable stand-in for ranking quality
- Recall@K — the main offline metric
- PyTorch Geometric, UMAP — implementation and embedding visualization
Google or a one-time email code. No password.
