Problem
A music service ranks tracks from a catalog of over 100M songs. Skips, likes and dislikes tell the ranker what a user likes. But a user performs hundreds of them, and the count differs a lot between users. Hand-picking weights for each action type does not scale, and the same action means different things in different situations. A ranker that ignores context demotes tracks that suit the moment.
Example from the article: a user who usually likes slow songs skips uptempo ones. At the gym the same user wants upbeat music, so those earlier skips should count for less, while the rest of the history still describes their taste.
Solution in brief
Encode the user's recent actions, the candidate track and the current context as tokens, and run them through a Transformer. Self-attention learns which past actions matter for ranking this candidate now. The Transformer output is merged with the existing ranking model's inputs by a multi-layer network, and both are trained together.
Questions this case answers
- How to make a ranking model discount past negative feedback that does not apply to the user's current situation, when the number of past actions varies from a few to very many
- How to make a ranking model use a user's skips, likes and dislikes only when they are relevant to the current listening context?
- How to feed hundreds of user actions of varying count into a ranker without hand-picking weights per action type?
- How to add a sequence model to an existing ranking model without replacing it?
Tools and methods
- Transformer encoder over user actions — weights past actions by relevance to the current context and candidate
- Track embeddings plus projected action signals — build one token per action by vector addition
- Joint ranker network with multi-objective co-training — merges the Transformer output with the existing ranking model's inputs; both learn together
Google or a one-time email code. No password.