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?

ML system design, Framework
Level L1 Beginner. Length Short. Nature Th Theoretical.

What's being asked

Whether you can turn a broad product wish into something a model can actually predict, and spot when a bad target will harm users.

Key idea

A model cannot train directly on a vague word like 'engagement'. You choose a clear prediction target that matches genuine user value, measure prediction quality offline on saved data, measure real user benefit online in a live test, and add guardrail metrics so the system does not win by hurting the user experience.

Steps

  1. Pick a concrete prediction target (the ML, machine learning, objective): for a video app, instead of predicting raw clicks, predict whether a user will watch at least half the video (or more than 30 seconds), or predict how long they will watch.
  2. Choose offline metrics to test the model before launch: use a standard classification error or ranking-order check on past data you set aside for testing to see whether the model puts good videos above poor ones.
  3. Choose online primary metrics for a live test: compare the new model against the old one on real traffic using what the business truly cares about, such as total watch time per daily user or how many users return the next week.
  4. Add guardrail metrics to catch side effects: track warning signs such as slow page loads, user complaints, 'not interested' clicks and quick bounces so gains in watch time do not damage trust.
  5. Watch out for bad proxies: training only for raw clicks rewards misleading clickbait titles that users abandon after two seconds, which raises clicks today but drives users away over time.

Common mistakes

How long your answer should be

About 2 minutes, working through the video-app example end to end.

Read this

Previous in ML system design: 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?
Next in ML system design: What do latency, throughput, p50 and p90 mean? Given 10 request latencies of 12,18,10,45,14,15,120,11,20,15 milliseconds, what are the p50 and p90, and why do production systems promise p99 rather than the average?