Rank a Personalized Feed of Community Songs
Last updated: November 29, 2026
Quick Overview
Suno shows users a feed of songs made by other creators. Design the recommendation system that picks which public songs to show each listener, balancing listening quality, creator fairness for new songs, and the fact that millions of new songs arrive every day with no play history.
Suno
November 29, 20260
0
0 solved
Suno shows users a feed of songs made by other creators. Design the recommendation system that picks which public songs to show each listener, balancing listening quality, creator fairness for new songs, and the fact that millions of new songs arrive every day with no play history.
Discovery keeps listeners and creators coming back, and Suno's catalog grows far faster than any streaming service's. The interviewer looks for a candidate generation plus ranking design, a cold-start plan that uses audio and prompt content, and objectives beyond raw clicks.
What the Interviewer Expects
- Define the objective (completed listens, likes, follows) and guardrails
- Multiple candidate sources including content-based for new songs
- Use audio and prompt/tag embeddings for cold start
- A ranking model with exploration for fresh songs
- Diversity and creator fairness constraints at re-ranking
- Offline metrics plus online A/B with long-term measures
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- How would you stop the feed from filling with near-duplicate songs from one prompt?
- How do you detect and down-rank engagement farming?
- How would you measure whether the feed makes listeners create more?
- How do you allocate exploration impressions to new songs fairly?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
Requirements
Serve a ranked feed per listener in under 200 ms. Catalog: hundreds of millions of public songs, millions new per day. Objectives: listener satisfaction (listen past 30 s, full plays, likes, adds to p...
High-Level Design
Offline: compute song embeddings from audio (a music encoder), text (prompt, tags, title, lyrics) and behavior (co-listening), and user embeddings from listening history. Candidate generation pulls ab...