How Spotify Implemented Personalized Audiobook Recommendations

Saankhya Mondal22 Nov 2024

Problem

Spotify added audiobooks to an app known for music and podcasts. Few users had interacted with audiobooks, many did not know they existed, and early sales were pay-per-title, so explicit signals were even rarer. A recommender trained on audiobook interactions alone had too little data to personalize the "Audiobook for You" section of the homepage.

Example from the article: over 70% of audiobook users had already listened to podcasts, yet 25% of users produced 75% of streaming hours and 20% of audiobooks produced 80% of them.

Solution in brief

Build a graph where podcasts and audiobooks are nodes, linked when at least one user listened to both. A graph neural network (GNN) learns item embeddings from text and neighbors, so audiobooks borrow signal from podcasts. A two-tower model then matches user embeddings, built from music, podcast and audiobook history, to those item embeddings.

Questions this case answers
  • How to recommend items of a newly launched category when its interaction data is too sparse to train a standard model, but a related category has rich history
  • How to personalize recommendations for users who have no interactions with the new category yet
  • How to recommend a newly launched content type when there are few interactions with it?
  • How to reuse user behavior on an established content type to personalize a new one?

Tools and methods

  • 2T-HGNN — Spotify's name for the combined model: a heterogeneous graph network feeding a two-tower model
  • GraphSAGE — two-hop neighbor sampling and aggregation that gives embeddings to new nodes
  • Two-tower model — user tower and audiobook tower trained with a contrastive loss
  • Sentence-BERT — content embeddings from title and description
  • Approximate nearest neighbor index — serves top-k audiobooks per user
Continue reading — it's free

Google or a one-time email code. No password.