Design Instagram Explore Grid Candidate Generation and Ranking
Last updated: November 29, 2026
Quick Overview
Design the ML system that fills a user's Instagram Explore grid with photos and Reels from accounts they do not follow. Cover candidate sourcing, multi-stage ranking, and how the grid layout affects what you optimize.
Meta
November 29, 20260
0
0 solved
Design the ML system that fills a user's Instagram Explore grid with photos and Reels from accounts they do not follow. Cover candidate sourcing, multi-stage ranking, and how the grid layout affects what you optimize.
Explore is a classic Meta ML design prompt because it combines unconnected discovery, a billion-scale corpus, and a visual grid where items are seen together. Interviewers check whether you can build a funnel from billions of items to a few dozen, pick objectives that reflect real satisfaction, and handle integrity constraints on recommended content.
What the Interviewer Expects
- Defines a funnel with retrieval, early-stage ranking, late-stage ranking and final blending
- Uses several candidate sources such as engagement-based co-interaction, embeddings and topic seeds
- Proposes a multi-task model and a value function that combines predicted actions
- Accounts for grid position effects and item diversity within one screen
- Applies integrity filters stricter than for followed content
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 seed candidates for a brand new account with no history?
- How do you stop the grid from collapsing into one topic after a few taps?
- What changes if Reels and photos must share one ranking model?
- How would you measure long-term satisfaction rather than session clicks?
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
- Input: a user opening Explore; output: about 30 tiles per page, refreshed on scroll.
- Corpus: billions of public posts and Reels, millions new per day.
- Latency: under 300 ms for the full ranking ...
High-Level Design
- Candidate sources (about 10k items): account embeddings via "users who engaged with A also engaged with B", a two-tower model over user and media embeddings with ANN lookup, topic and interest ...