Problem
Spotify added audiobooks to an app known for music and podcasts. Almost no users had listened to an audiobook, so interaction data was very sparse. Audiobooks were also paid at launch and could not be skimmed before purchase, so a bad recommendation costs more than in music. The model also had to answer for millions of users quickly.
Example from the article: the home-page section "Audiobook for you" had to show relevant audiobooks to users whose history consisted of music and podcasts.
Solution in brief
Build a graph over items only (audiobooks and podcasts) linked by co-streaming, and learn item embeddings with a heterogeneous GraphSAGE network. Feed these embeddings into a two-tower model whose user tower summarizes music, podcast and audiobook behavior. Users never enter the graph, which keeps the graph model small and lets unseen audiobooks be embedded from text.
Questions this case answers
- How to recommend items of a new content type to a large user base when most users have no interactions with that type
- How to combine graph-based item embeddings with a user-item retrieval model so that serving stays cheap and latency low
- How to recommend a newly launched content type when most users have no history with it?
- How to use a graph neural network for recommendations without running it over millions of user nodes?
Tools and methods
- Heterogeneous GraphSAGE (HGNN) — learns item embeddings from co-listening edges and text features
- Two-tower model (2T) — scores users against audiobooks with a dot product of 128-dimensional vectors
- Multi-link neighbor sampler — balances edge types during HGNN training
- Sentence-BERT embeddings — title and description features for every item
- In-batch negatives — negatives for the two-tower loss
Google or a one-time email code. No password.