Design Two-Tower Candidate Retrieval for Google TV Content Recommendations

Last updated: November 29, 2026

Quick Overview

Design the retrieval stage that pulls a few hundred candidate movies and shows from many streaming partners for the Google TV home screen. Explain training, negative sampling and serving with an approximate nearest neighbor index.

Google
ML System Design
Machine Learning Engineer
Google
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Medium

0

0

0 solved


Design the retrieval stage that pulls a few hundred candidate movies and shows from many streaming partners for the Google TV home screen. Explain training, negative sampling and serving with an approximate nearest neighbor index.

Google TV aggregates catalogs from many apps, so retrieval has to work across partners with uneven metadata and signals. The interviewer focuses on two-tower modeling details: what goes in each tower, how negatives are chosen and how the index stays fresh.

What the Interviewer Expects
  • Define user and item tower inputs clearly
  • Choose a training objective with in-batch and hard negatives
  • Correct for popularity bias in sampled negatives
  • Serve with an ANN index and explain refresh cadence
  • Handle subscription availability and partner filtering
Key Topics to Cover
Two-tower model
Negative sampling
Approximate nearest neighbor
Sampling bias correction
Catalog aggregation
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • How do you include items the user can only rent versus ones in their subscriptions?
  • What recall@K would you target, and how do you measure it?
  • How would you add a second retrieval source for trending titles?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice ML System Design Problems
Sample Answer
Requirements

Retrieve about 500 candidates per request for a downstream ranker, from a catalog of a few million titles across partners. Latency budget for retrieval: under 30 ms. Positives: meaningful watches (ove...

High-Level Design
  1. User tower: inputs are watch history (title IDs pooled with attention), genres watched, subscribed services, device, time of day, country. Output a 128-d vector.
  2. Item tower: title ID emb...

Submit Your Answer
Markdown supported