Problem
A streaming service has little to recommend to a new listener with no listening history. The Zvuk personalization team wanted to show relevant artists already at onboarding, using only data that would exist in production at launch: a behavioral embedding of about 300 elements per user. Segments built on 919,068 users had to be reproducible, similar in size, diverse in artists and genres, and contain few outliers. A micro-cluster is a risky basis for a rollout to a multi-million audience.
Example from the article: in the final clusters, positions 1 and 2 of the most listened artists are almost the same, but below them the artists differ from cluster to cluster.
Solution in brief
Reduce the embeddings with PCA, project them with t-SNE and cluster with DBSCAN. Split the largest cluster with a Gaussian mixture model and merge similar ones. Train a CatBoost classifier on the raw embeddings to assign new vectors to clusters, and verify stability by reclassifying the same users in a later period.
Questions this case answers
- How to give a user with no history a useful first set of recommendations when only a precomputed behavioral embedding is available at launch
- How to build user segments from high-dimensional embeddings that are reproducible, similar in size and free of tiny clusters, and how to assign new vectors to them later
- How to recommend relevant artists to a new streaming user during onboarding, before any listening history exists?
- How to split about a million users into stable, evenly sized taste clusters using behavioral embeddings?
Tools and methods
- PCA — cuts about 300 embedding dimensions to 50 components
- t-SNE — 2-D projection used for clustering
- DBSCAN — density-based clusters with an outlier cluster -1
- Gaussian mixture model — splits the one remaining large cluster
- CatBoost — classifier that maps a raw embedding to a cluster number
Google or a one-time email code. No password.
