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
November 29, 20260
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
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- 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 ProblemsSample 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
- Logging: serving logs impression with its feature snapshot and a request id.
- Streaming join: join clicks to impressions by id within a click window (for example 15 minutes); emit labeled...