Generalized user representations for large scale recommendations

Ghazal Fazelnia, Sanket Gupta, Claire Keum, Mark Koh, Timothy Heath, Guillermo Carrasco Hernández, Stephen Xie, Nandini Singh, Ian Anderson, Maya Hristakeva, Petter Pehrson Skidén, Mounia LalmasSep 2025

Problem

Spotify serves home-page ranking, candidate generation and search to over 600 million monthly listeners. Without a shared representation, teams curate features by hand, and retrained models can drift apart so that search stops agreeing with recommendations. Taste has a stable part and a short-term part shaped by mood and new releases, and new users have no history. One representation must serve all products and update quickly.

Example from the article: a user streams a new artist, and within minutes the refreshed embedding lands in the online feature store.

Solution in brief

An autoencoder compresses multi-timescale listening signals, item embeddings, context, demographics and onboarding choices into one user vector. Downstream models take this vector as a feature, as a retrieval key or as generative-model conditioning, and add lightweight task heads. A batch-ID discipline keeps all consumers in the same vector space across retraining.

Questions this case answers
  • How to learn a single reusable user representation that many downstream ranking, retrieval and search models can consume without their own feature engineering
  • How to keep a shared embedding space aligned across retraining cycles when many dependent models consume it
  • How to personalize for new users with no behavior history while handing over smoothly to behavior-driven signals
  • How to build one user embedding that recommendation, ranking and search teams can all reuse?

Tools and methods

  • Autoencoder with denoising — compresses fused user features into the user embedding; the decoder reconstructs inputs so the vector keeps cross-task information.
  • Audio and collaborative modality encoders — produce 80-dimensional track embeddings from audio features and from playlist co-occurrence.
  • Transfer learning with lightweight heads — adapts the shared embedding to retrieval, ranking, search and generation.
  • Batch plus near-real-time inference — coverage for all users, freshness for active ones.
  • Batch ID management — keeps training, inference and downstream models in one semantic space.
Continue reading — it's free

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