Design Continuous Training for Meta Ads Click Prediction Models

Last updated: November 29, 2026

Quick Overview

Ads click models lose accuracy within hours as new ads, events and user behavior appear. Design a continuous training and deployment pipeline that keeps the production click model fresh while guarding against bad updates.

Meta
ML System Design
Software Engineer
Meta
November 29, 2026
Software Engineer
System Design Round
ML System Design
Medium

0

0

0 solved


Ads click models lose accuracy within hours as new ads, events and user behavior appear. Design a continuous training and deployment pipeline that keeps the production click model fresh while guarding against bad updates.

Freshness matters greatly for ads models at Meta, and ML infra engineers are expected to reason about streaming training, validation gates and safe rollouts. Interviewers check the training data flow, how often models update, and protections against corrupted data.

What the Interviewer Expects
  • Builds a streaming join of impressions and clicks with an attribution window
  • Uses incremental training from the last checkpoint rather than full retraining
  • Validates new checkpoints on recent holdout data before deployment
  • Ships with canary rollout and automatic rollback
  • Handles data quality issues and late events
Key Topics to Cover
online training
streaming joins
model validation
canary deployment
data quality
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • How long should you wait for a click before labeling an impression as negative?
  • How do you handle embedding tables for ids that appear for the first time?
  • What metrics would trigger an automatic rollback?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice ML System Design Problems
Sample Answer
Requirements
  • Model: deep model with large sparse embedding tables plus dense features, predicting P(click).
  • Data: billions of impressions per day.
  • Target: new model versions every 30 to 60 minutes.
  • No bad ...
High-Level Design
  1. Logging: serving logs impression with its feature snapshot and a request id.
  2. Streaming join: join clicks to impressions by id within a click window (for example 15 minutes); emit labeled...

Submit Your Answer
Markdown supported