← Answer frameworksRole-specific

How to answer machine learning system design questions

Problem framing · Data · Model · Eval · Productionization

This structure answers machine learning design questions in five steps: frame the problem and its label, describe the data, climb from a baseline model, choose offline and online metrics, then plan how the model runs in production.

When to use it

ML engineer / applied scientist / data scientist interviews.

The 5 parts of ML Modeling

  1. 1. Problem framing

    Supervised / unsupervised / RL? What's the label? What's the loss? Online or offline?

  2. 2. Data

    Sources, label generation, cardinality, leakage risks, privacy constraints.

  3. 3. Model

    Baseline → contender → advanced. Justify the climb. Hyperparameter strategy.

  4. 4. Evaluation

    Offline metrics + online metric. Where they disagree, which wins. A/B test design.

  5. 5. Productionization

    Latency budget, retraining cadence, drift monitoring, fallback path.

Example answer

An illustrative answer to show the structure, not a real candidate's.

“Design a system to detect fraudulent transactions in real time.”

Problem framing
It's supervised classification, and the label is a confirmed chargeback. Scoring has to happen before the payment is approved.
Data
Transaction history, device and merchant features, and chargeback labels, which arrive weeks late. I'd split by time to avoid leakage.
Model
Start with rules and logistic regression as a baseline, then gradient-boosted trees, and only go further if they plateau.
Evaluation
Offline, precision at the review team's capacity. Online, fraud losses and false declines, tested against a holdout of traffic.
Productionization
A tight latency budget per score, a fallback to rules if the model is down, regular retraining and drift alerts on key features.

Why it works

Framing the problem and the metric first shows judgement; the choice of model follows from them.

A common shape for machine learning design rounds, from problem framing through to running the model in production.

In Meeting Copilot

In the Meeting Copilot desktop app you can describe this structure as your own answer format, in plain English, and the AI follows it for the whole session.

To practise on the questions your next interview is likely to ask, see AI interview prep.

More frameworks

Practise ML Modeling on your own questions.

Interview prep predicts questions from your job posting and writes model answers from your résumé.