~/learn/ML System Design · Framework & problem framing
The ML system design framework
A 7-step structure that keeps a 45-minute open-ended interview on track.
why this matters
Every ML engineer loop at Meta, Google, Amazon and startups includes an open-ended design round. A clear structure is half the score.
ML system design interviews are deliberately vague: 'Design YouTube recommendations' or 'Build a fraud detector'. There is no single right answer. Interviewers grade how you structure the problem, which tradeoffs you notice, and whether your design could actually run in production.
A fixed framework stops you from jumping straight to 'I'd use a transformer'. Spend the first 5–8 minutes on requirements — that is where most candidates lose points.
The 7 steps
1. Clarify requirements users, scale, latency, constraints 2. Frame as an ML task input → output, objective, labels 3. Data sources, labels, features 4. Model baseline first, then improve 5. Evaluation offline metrics + online A/B test 6. Serving latency, throughput, infrastructure 7. Monitoring & iteration drift, retraining, feedback loops
Good clarifying questions: How many users and items? What latency is acceptable? Is it real-time or can it be precomputed daily? What does success look like for the business? Do we have labels, or do we need to collect them? Are there privacy or fairness constraints?
Always propose a simple baseline before anything deep: popularity ranking, logistic regression, or a hand-written rule. It gives you a benchmark, ships quickly, and shows maturity.
Interview trap
Diving into model architecture in minute two. Interviewers mark this as 'no product sense'. Requirements and framing first, model choice later.
Pro tip
Say your plan out loud: 'I'll cover requirements, framing, data, model, evaluation, serving, then monitoring.' Then follow it. It makes you easy to grade.
key takeaways
- Requirements before models.
- Follow a fixed 7-step structure.
- Start from a simple baseline.
check your understanding
What should you do first in an ML system design interview?