Calibrated Recommendations with Contextual Bandits on Spotify Homepage

Diego Feijer, Himan Abdollahpouri, Sanket Gupta, Alexander Clare, Yuxiao Wen, Todd Wasson, Maria Dimakopoulou, Zahra Nazari, Kyle Kretschman, Mounia LalmasSep 2025

Problem

Spotify's Home page shows music, podcasts and audiobooks in one list. The usual fix is to copy each user's historical mix, for example 60% music and 40% podcasts over the last three months. This ignores context: podcasts may be listened to mostly in the daytime, so a time-blind mix shows them at the wrong hours. Logged data is also skewed by popularity, which hurts less common types.

Example from the article: a user whose 90-day history is 60% music and 40% podcasts, with 80% of the podcast listening between morning and afternoon, gets the same 60/40 split at every hour.

Solution in brief

Treat the target content-type mix as the action of a contextual bandit. The reward is whether the user streams from the Home page. For each request the model predicts a mix from context, then the slate is built item by item with a penalty for drifting from that mix. It beat the baselines offline and in an A/B test, and shipped in March 2025.

Questions this case answers
  • How to choose the share of each content type in a ranked list per user and context when historical consumption is biased toward the dominant type
  • How to build a ranked list that follows a predicted per-request category mix without losing relevance
  • How to decide how much music, podcasts and audiobooks to show each user on a home page at a given moment?
  • How to calibrate the content-type mix of a recommendation list when history is dominated by one type?

Tools and methods

  • Contextual bandit with epsilon-greedy exploration — picks the content-type distribution for each request.
  • KL-divergence penalized greedy slate construction — fills the list so it stays close to the predicted distribution.
  • Calibration baselines: Steck calibration (SC) and multinomial blending (MB) — per-user mix from the last 7 or 90 days; sampling from a fixed multinomial distribution.
Continue reading — it's free

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