Why should you start an ML (machine learning) system design with a simple baseline, such as rules, popularity or logistic regression, before building a deep neural network?
ML system design, Framework
Level L1 Beginner. Length Short. Nature Th Theoretical.
What's being asked
Whether you think like a practical engineer who validates the pipeline and sets a benchmark before spending weeks on complex models.
Key idea
A simple baseline tests the entire data, evaluation and serving pipeline early while giving you a concrete score to beat. In many products, a simple model is also cheaper to run, easier to debug, and already good enough to ship.
Steps
- Set a benchmark to beat: without a simple baseline such as popularity ranking or logistic regression, you cannot tell whether a complex deep model is actually adding value.
- Test the plumbing end to end: building a basic model first verifies that data loading, feature extraction, metric calculation and live serving all work together without bugs or leakage.
- Keep debugging and operations simple: linear models, decision trees or simple rules are fast to train, easy to inspect when predictions look wrong, and cheap to serve with low latency.
- Avoid unnecessary complexity: sometimes a baseline already meets the product goal, letting the team ship sooner and save engineering time. Later case-study questions build on this by asking how to move from the baseline to richer features, better models and online A/B tests.
Common mistakes
- Spending weeks tuning a deep neural network before checking whether the data pipeline or labels are broken.
- Skipping a non-ML heuristic or popularity baseline, which leaves you with no floor for comparison.
- Assuming a higher offline score automatically justifies a heavy model, ignoring its serving cost and latency.
How long your answer should be
About 1–2 minutes; four clear reasons.
Read this
Previous in ML system design: How should you structure an answer to a machine learning system design question, and how should you pace it in a 45-minute interview?
Next in ML system design: How do you turn a vague business goal such as 'increase engagement on a video app' into an ML objective, offline metrics, online metrics and guardrail metrics?