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.
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
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 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 ProblemsSample 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
- 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.
- Item tower: title ID emb...