Meetup

Model Watching: Keeping Your Project in Production

Ben Wilson, DatabricksEpisode 58 · 53:08 · Apr 2021 · 615 viewsHosted by Demetrios Brinkmann
Thumbnail for Model Watching: Keeping Your Project in Production Watch on YouTube
TL;DR
  1. 1

    Production machine learning depends on translating technical work into business terms and building the solution with business stakeholders.

  2. 2

    Models can change the reality they predict, so teams need to monitor inputs, outputs, drift, interventions, and business outcomes after release.

  3. 3

    Monitoring and retraining should match the model's business risk, with simple human checks first and automation added after the failure patterns are understood.

Summary

Ben Wilson argues that production machine learning is mainly a communication and maintenance problem. Teams need to build models with the people who understand the business, then report results using measures such as engagement, profit, or revenue rather than isolated model scores. Once a model is released, its predictions can change the data it learns from. Churn teams intervene with customers, while fraudsters adapt to detection rules. Wilson recommends monitoring feature distributions, prediction distributions, drift, and model quality with statistical tests and rolling windows. The level of alerting should match the cost of failure. Automatic retraining can make sense after a team has observed how a model fails, though it adds code and operational risk. Wilson also argues that data scientists who own production models need production coding skills, tests, logging, monitoring, and an on-call responsibility. His examples make the limits of unattended automation clear: human subject-matter experts can prevent costly mistakes.

Key ideas
03:44

Business collaboration matters more than choosing a sophisticated algorithm

Wilson says teams spend too much time on algorithms, feature vectors, data volume, and overfitting while failing to explain the work to the people who fund and use it. A production project should start with the business problem and include the people who understand that problem better than the data team does. He describes creating a shared translation between technical and business groups. A graph labelled only with RMSE means little to a marketing team. A report that connects predictions to departmental engagement, profit, or revenue gives stakeholders something they can act on. He applies the same rule after release: reports should use the outcomes that matter to the business, not just model metrics.

09:37

A model changes the reality that supplies its training data

Wilson explains that production models are unstable because their predictions influence human behaviour. In a churn example, a high-risk customer receives offers, messages, or other interventions. Those actions alter the customer's later behaviour, which then changes the training data. Teams may need to record when an intervention happened and what kind it was so the model can account for that influence. Fraud models face a more direct feedback loop. People attempting fraud test the system, learn which behaviours are flagged, and adapt their activity. New attack patterns will not be classified well unless the model is retrained or otherwise adapted. Monitoring therefore needs to examine the relationship between predictions and reality, rather than only checking correlation with a target.

15:38

Feature and prediction distributions need monitoring after release

Wilson recommends taking a statistical snapshot of the training data before the first production release. For each feature, a team can examine its shape, fit candidate distributions, and record the result in MLflow. Wilson gives examples such as Cauchy, half-Cauchy, logarithmic, and log-normal distributions. After release, a rolling window can compare recent data with that baseline. Teams can also track changes in the mean, variance, and other distribution properties. Monitoring should cover model outputs as well as inputs. For regression, Wilson suggests checking the shape and nature of predictions over recent validation periods, rather than watching only the average prediction. Drift thresholds can raise an alert or lead to retraining, depending on the consequences.

22:48

The monitoring method matters less than checking the right kinds of drift

Wilson agrees that deciding what to monitor comes before selecting a monitoring product or API. The amount of data can affect the technology choice, since a terabyte of daily predictions may call for Apache Spark and structured streaming, while a smaller dataset does not require a specialised system. The statistical reasoning stays the same. Teams should inspect distributions for continuous variables, counts for categorical variables, and use tests such as Fisher's exact test or a rank-sum test to assess whether data has changed. Wilson describes these techniques as established statistics rather than new machine learning inventions. He is direct about the cost of neglecting them, recalling that he has repeatedly discovered poor predictions after failing to monitor drift.

21:37

Alert thresholds should reflect business impact

Wilson does not usually recommend fixed hard-coded limits for every signal. Drawing on statistical process control, he suggests writing conditional rules that fit the data and the use case. A feature moving within acceptable standard-deviation bounds should not wake someone up merely because it crossed an arbitrary count of movements around the mean. A sustained trend, such as seven days above one standard deviation in a rolling window, may justify an alert. The response depends on the model's role. A model that is only an experiment does not need a 2 a.m. response. A model whose failure affects most of a startup's revenue, or predicts failure in billion-dollar equipment, deserves much faster attention. Alerting should follow the cost of being wrong.

26:50

Automatic retraining should follow observed failure patterns

Wilson sees legitimate uses for active learning and automatic retraining, though he advises against building them into a first production deployment. A team should first run the model, observe how often it needs changes, and understand which conditions have historically required retraining. It can then automate those conditions with the same validation and release process each time. He prefers simple systems because extra code creates more maintenance and failure points. Fraud detection is an exception where the world changes quickly. A separate fraud team may identify transaction patterns that the model misses, provide new labels, and trigger retraining. The updated model can then go through an A/B test or a human approval step before release.

29:49

Fast ground truth changes retraining, while feature monitoring still informs redesign

When labels arrive months after a prediction, Wilson recommends monitoring whatever is available sooner: incoming features, the state of the data, and the distribution of predictions. A major shift in a binary prediction, such as moving from a 90/10 split to 50/50, should prompt an investigation. When ground truth arrives within minutes, alerting and retraining can rely mainly on that direct quality signal, while feature monitoring helps decide whether the model itself needs redesign. Retraining will not fix every problem. Changes in feature distributions can alter how a tree-based model such as XGBoost calculates splits. In some cases the team needs a new feature vector, a different algorithm, or a causal approach such as Bayesian models and Markov chains.

42:23

Production ownership requires data scientists to write and operate production code

Wilson defines a machine learning engineer as a data scientist who knows how to code well. Production code should be testable, unit tested, integration tested, validated, monitored, and logged. He recommends pairing data scientists with experienced Python, Scala, or Java developers instead of using blame or throwing an unfinished model over to another team. In teams he has run, the data science group owned the model, its ETL, logging, monitoring, and REST API. The group also maintained the API definition, while another team handled the website interface. Wilson supports putting the data science team on call for systems it produces. His advice is to build these skills together and keep the ownership with the people who built the model.

"It's really in how do we communicate the focus that we really should be having, which is on solving a problem regardless of what it is, regardless of the technology that we're using."Ben Wilson04:39
Who should watch
  • You have a model in production and need to decide which input, output, drift, and business signals deserve attention.
  • Your team is considering automatic retraining and needs a way to add it without creating an untested operational system.
  • Data scientists and software engineers are handing models across team boundaries, and you need a clearer ownership and on-call arrangement.