Design Memories Highlight Selection for Google Photos
Last updated: November 29, 2026
Quick Overview
Design the system that picks which photos and which past dates to turn into Memories cards at the top of Google Photos. The cards should feel meaningful and must avoid painful or low-quality content.
0
0
0 solved
Design the system that picks which photos and which past dates to turn into Memories cards at the top of Google Photos. The cards should feel meaningful and must avoid painful or low-quality content.
A friendly but product-sensitive prompt for Photos teams: the ML is approachable, and the interviewer watches for user-trust judgment about sensitive memories and on-device privacy. They want quality scoring, deduplication and a feedback loop.
What the Interviewer Expects
- Score photos for aesthetic quality and meaningfulness
- Remove near-duplicates and screenshots
- Handle sensitive content and user hide controls
- Use user feedback (views, shares, hides) as labels
- Keep privacy and on-device constraints in mind
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 would you avoid showing an ex-partner after a breakup?
- How do you rank a day with 400 photos down to 8?
- What would you compute on-device versus on the server?
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
Output: each day, a few Memory cards (for example 'Two years ago', 'Trip to Kyoto'), each with 5 to 15 photos. Objective: users view and share them, few hides. Constraints: never surface screenshots, ...
High-Level Design
- Candidate events: group photos by time and location into events; candidates are events from this date in prior years, trips, and people-centric themes.
- Photo scoring: a quality model (sh...