Design Next-Video Ranking for the YouTube Shorts Vertical Feed
Last updated: November 29, 2026
Quick Overview
Design the ML system that decides which Short to play next as a user swipes through the YouTube Shorts feed. The system must react within a session to swipes, rewatches and skips.
0
0
0 solved
Design the ML system that decides which Short to play next as a user swipes through the YouTube Shorts feed. The system must react within a session to swipes, rewatches and skips.
YouTube ML design rounds often use Shorts because the feedback is dense and fast, so the interviewer can push on in-session personalization, multi-objective ranking and latency. They look for a candidate who goes beyond watch time to satisfaction and creator ecosystem health.
What the Interviewer Expects
- Define a multi-objective target combining completion, rewatch, likes and negative signals
- Design in-session adaptation, not only daily-trained profiles
- Explain prefetching and batch ranking given swipe latency
- Address cold-start for new Shorts and fair creator exposure
- Discuss satisfaction surveys or long-term metrics beyond watch time
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 do you prevent the feed from collapsing into one topic after three swipes?
- How would you weight a fast skip versus a full rewatch?
- How do you measure whether the feed is good for users over months, not minutes?
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
Each swipe needs the next video instantly, so the client holds a short queue (say 5 to 10 Shorts) and the server refills it. Objective: user satisfaction per session, approximated by a weighted combin...
High-Level Design
- Candidate sources: two-tower retrieval on user and session embeddings, followed creators, trending in locale, sound or remix graph (Shorts using the same audio), and a fresh-upload pool.
- **P...