KatInterview

Design an End-to-End Video Recommendation Platform

Machine LearningModel answer
HardModel answerMachine Learningsystem-designrecommendation-systemsmatrix-factorization

Last updated

Architect an end-to-end video recommendation system covering objective setting, matrix factorization baselines, multi-stage retrieval/ranking, feature engineering, and evaluation strategies.

Architect an end-to-end personalized video recommendation platform for a high-volume streaming network (e.g., millions of active subscribers and tens of thousands of catalog items).

Your architecture should address the full machine learning product life cycle:

  1. Product Objectives & Metrics: Define target business objectives, optimization targets, and guardrail metrics. Address scale, throughput, and latency constraints.
  2. Data Pipeline & Schema: Outline core data streams, online feature serving, offline training stores, and logging mechanisms for explicit/implicit interactions.
  3. Modeling & Candidate Retrieval: Detail an initial collaborative filtering baseline (such as Implicit Matrix Factorization / Non-Negative Matrix Factorization) alongside a multi-stage funnel (Retrieval -> Heavy Ranker -> Re-ranking). Explain how the baseline scales and how it transitions to deep/two-tower architectures.
  4. Feature Engineering & Dataset Construction: Explain feature generation, point-in-time logging, negative sampling strategies, and methods to counter position or popularity biases.
  5. Evaluation, Cold-Start, & Rollout: Define offline metrics (e.g., NDCG, MAP, Recall@K), online A/B testing approaches, strategies for new users/items (cold start), continuous feature freshness, and live system monitoring.

Hints

Hint 1

Structure your system as a multi-stage funnel: fast candidate generation (retrieval) followed by scoring (ranking) and policy filtering (re-ranking).

Hint 2

Clearly distinguish explicit feedback (ratings, thumbs up) from implicit signals (play durations, clicks, impression skips), noting how implicit signals form the bulk of training labels.

Hint 3

Address position bias explicitly in the ranker—either by introducing impression position as a baseline feature during training or via inverse propensity scoring.