← Questions

Design a short-video recommendation system

0
MetaAI/ML designLast asked Feb 2026

An AI/ML design interview question asked in Meta's technical phone screen, last asked Feb 2026. It tests recommendations, video and ranking.

Design the recommendation system behind a short-video feed. Users swipe through full-screen videos one at a time, each a few seconds to a minute long, and the system picks the next video to show. It serves hundreds of millions of users from a catalog with millions of new uploads a day.

Requirements

  • Functional: return the next batch of videos for a user, personalized and updated within the session as the user watches, skips, likes, shares or follows.
  • Functional: surface new videos and new creators quickly; handle brand-new users.
  • Functional: never show content that violates policy, and respect user controls such as "not interested".
  • Non-functional: a recommendation request served in under about 100 ms; signals from the current session reflected within seconds; training on billions of interactions a day.

Clarifying questions

  • What is the primary business goal: total watch time, daily active users, retention, or creator growth?
  • Which feedback signals exist: watch duration, completion, replays, likes, shares, comments, follows, skips, "not interested"?
  • How large is the catalog and how fast does it change?
  • Is there a following feed separate from the recommendation feed?
  • What are the safety and integrity requirements?

What a strong answer covers

  • The objective: predict several outcomes per video (watch time or completion, like, share, follow, skip) and combine them into one score with tunable weights, with long-term retention as the north star and guardrails on negative feedback.
  • Candidate generation from several sources: two-tower embedding retrieval, recent interests from the session, followed creators, trending and fresh videos, merged to a few thousand candidates.
  • Ranking: a multi-task deep model over user, video, creator and context features, followed by a re-ranking stage for diversity, creator variety and policy filters.
  • Real-time personalization: streaming features from the session, frequent embedding updates, and how fast a skip changes the next video.
  • Cold start: content embeddings from video, audio and text for new videos with a guaranteed exploration budget; onboarding signals and popular content for new users.
  • Exploration versus exploitation: bandit-style exploration traffic and how its cost is measured.
  • Evaluation: offline metrics per task (AUC, calibration, watch-time error), then A/B tests on watch time, retention and negative feedback, with attention to novelty effects.
  • Serving at scale: feature store, embedding index for retrieval, caching, and latency per stage; safety and abuse filters before anything is shown.

Follow-ups

  • Watch time went up but users report the feed feels repetitive. What do you change?
  • How do you stop the system from rewarding clickbait that people watch but regret?
  • A video goes viral in one region. How quickly can it reach other users, and should it?
  • How would you give a new creator's first video a fair chance without hurting the feed?

Where it's asked

  • Meta · Technical phone screen · Last asked Feb 202645 min · Two coding problems in CoderPad, about 20 minutes each · Usually no AI; some newer screens are AI-assisted

What it tests

recommendations · video · ranking

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing