ML System Design Playbook: Fail-Fast Design Docs, Modular Architecture & Data Drift Monitoring

Episode 1 62 min

Valerii Babushkin Senior Director of Data

Episode 1 · ML System Design Playbook: Fail-Fast Design Docs, Modular Architecture & Data Drift Monitoring

62 min

What we talked about

Valerii Babushkin is VP of Data Science at Blockchain.com and previously worked at Facebook (Meta), Alibaba and X5 Retail Group. He co-wrote the book Machine Learning System Design. Alexey asks him why ML system design often goes wrong, and the talk centers on the design document.

Valerii says the purpose of a design document is for a project to fail as early as possible, when mistakes cost weeks rather than months. Asked how many projects he has seen start without proper design documentation, Alexey answers nine and a half out of ten. The document should separate what a team wants from what it needs, and it should be shared, because a plan kept in one person's head drifts from what the team knows. Feedback can also show that no ML system is needed. Valerii recommends the simplest option first, so an if statement beats linear regression, which beats boosting, and so on.

A design document goes out of date quickly, so it must be treated as a living artifact, like code. Valerii points out that without written accountability, team members each hold a different idea of who owns which part of the system, and Alexey agrees. Valerii proposes naming an owner for each chapter, so the person who knows it best updates it. He also describes the bus factor, the number of people who must leave before a project stalls. Mapping owners shows where a team depends on one person. He suggests counting design updates in performance reviews, while warning that any metric gets gamed once people chase it.

The book is built around a 16-chapter outline, grouped into four parts from preparation to integration and growth. Topics include metrics, datasets, a baseline solution, error analysis, serving, and ownership and maintenance. For monitoring, Valerii describes data drift, concept drift and prediction drift, and he says detection comes first, because a team cannot react to a failure it does not see. A fallback can then take over, such as a model made of two or three if statements, followed by a constant placeholder.

Valerii's main advice is to write down what the system needs and what the team wants, keep the document alive, and name an owner for each part. Teams should also build a simple baseline before a complex model, since skipping it can cost months. Monitoring and fallbacks belong in the later stages, once a system already runs.

Chapters

  1. 2:06 Guest Introduction: Valerii Babushkin background 2 min
  2. 4:00 Book Announcement: Machine Learning System Design 3 min
  3. 7:06 Design Document Purpose: Fail-Fast Principle 2 min
  4. 8:39 Blueprint Analogy: Preventing Waste with Early Design 2 min
  5. 11:09 Prevalence of Missing Documentation in ML Projects 3 min
  6. 14:36 Shared Design Docs: Alignment, Feedback, and Simplicity 4 min
  7. 19:01 Design Doc as a Living Artifact: Maintenance Challenges 6 min
  8. 24:37 Accountability & Ownership: Assigning Areas of Responsibility 7 min
  9. 31:59 Bus Factor & Risk Assessment: People Dependency Mapping 5 min
  10. 36:50 Modularity: Chapter-Based Design Docs and Versioning Signals 4 min
  11. 41:01 Incentivizing Documentation: Metrics and Performance Reviews 3 min
  12. 43:53 ML Design Template Overview: 16-Chapter Book Outline 4 min
  13. 47:46 Monitoring: Detecting Data Drift, Concept Drift, and Prediction Drift 4 min
  14. 51:59 Fallback Strategies: Redundancy, Simple Baselines, and Serving Reliability 3 min
  15. 55:13 Baseline Solutions: Start Simple to Validate Hypotheses Quickly 3 min
  16. 58:15 Resources & Tools: Book Discount, Evidently AI, and Templates 2 min
  17. 1:00:44 Contact: Connect with Valerii on LinkedIn 1 min
  18. 1:01:44 Episode Close and Final Takeaways

Valerii Babushkin Senior Director of Data

Valerii Babushkin is a Senior Director of Data, Analytics, and AI at BP, Kaggle Competitions Grandmaster, and author of Machine Learning System Design. With over a decade of experience leading large-scale AI, machine learning, and data teams at Meta, Alibaba, Blockchain.com, and Yandex, Valerii is recognized for building data-driven cultures and advancing practical ML applications in global enterprises.

More episodes with Valerii Babushkin

Topics in this episode

The wiki pages this conversation is filed under, the strongest first.

Machine Learning System Design

ML system design as a production reference for requirements, labels, feature paths, evaluation, serving, monitoring, fallbacks, and ownership.

Machine Learning

Machine learning as applied modeling, evaluation, production design, monitoring, roles, and business tradeoffs.

Data Science Project Guide

How data science project management frames, scopes, measures, ships, and hands off analytics and ML work with stakeholders and adoption owners.

ML System Design Documents

How ML design docs capture product decisions, assumptions, data strategy, baselines, evaluation, monitoring, ownership, and production readiness.

Related books

Designing Machine Learning Systems

32 questions answered

Machine learning systems are both complex and unique. Complex because they consist of many different components and involve many different stakeholders. Unique because they're data dependent, with data varying wildly from one use case to the next. In this book, you'll learn a holistic approach to designing ML systems that are reliable, scalable, maintainable, and adaptive to changing environments and business requirements.

Chip Huyen

Practical Recommender Systems

19 questions answered

Online recommender systems help users find movies, jobs, restaurants -- even romance! There’s an art in combining statistics, demographics, and query terms to achieve results that will delight them. Learn to build a recommender system the right way: it can make or break your application!

Kim Falk

Optional analytics

Optional analytics are off unless you allow them. Your choice does not affect access to DataTalks.Club, Slack, events, or courses.

Current choice: not chosen.

Privacy Policy

If you allow analytics, self-hosted Umami counts anonymous public pageviews without analytics cookies. Private account and learning pages are excluded. Read the Privacy Policy for the complete data boundary.

Want to learn more about our community?

How it started, who's here, and everything that goes on here: courses, events, Slack, and more.

About DataTalks.Club