Problem
Spotify's Home page mixes music, podcasts and audiobooks, but historical data is heavily skewed toward music, which makes a balanced, personalized mix hard to deliver. Preferences also move with time of day, day of week and device. Calibration that matches the list to a user's historical mix assumes fixed tastes, and fixed global quotas ignore the individual.
Example from the article: the first shelf on Home, just below the shortcuts, is either music or podcasts, and the podcast share of consumption varies by user cohort, day and week.
Solution in brief
A contextual bandit predicts, for each visit, which target content-type distribution will most likely lead to a stream. The list of shelves is then built by a standard calibrated re-ranker that trades relevance against the KL divergence to that target. It learns from logs with small random exploration and is checked offline with inverse propensity weighting.
Questions this case answers
- How to learn a personalized target mix of content categories for a recommendation list when historical consumption is heavily skewed toward one category and preferences change with context
- How to evaluate a policy that picks the category mix of a ranked list offline from logs collected under another policy
- How to balance music and podcasts on a home page when historical data is dominated by music?
- How to choose the content-type mix of a recommendation list per user and per context instead of using a fixed target or a historical average?
Tools and methods
- Contextual bandit (MLP reward model) — predicts engagement for each candidate target distribution given user and context
- Calibrated re-ranking (maximum marginal relevance with KL divergence) — builds the shelf list around the chosen target
- Epsilon-greedy exploration — samples other target distributions to collect unbiased training data
- Inverse propensity weighting with capping — offline evaluation of the policy from logs
Google or a one-time email code. No password.