Design Click-Through Rate Prediction for Microsoft Advertising Search Ads

Last updated: November 29, 2026

Quick Overview

Design the CTR prediction system used in the Microsoft Advertising auction on Bing, which must score thousands of candidate ads per query in milliseconds and be well calibrated because prices depend on it.

Microsoft
ML System Design
Machine Learning Engineer
Microsoft
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Hard

0

0

0 solved


Design the CTR prediction system used in the Microsoft Advertising auction on Bing, which must score thousands of candidate ads per query in milliseconds and be well calibrated because prices depend on it.

pCTR drives both ranking and pricing in the search ads auction, so small calibration errors become revenue and advertiser trust problems. A senior interviewer expects the full loop: features, model architecture, training at scale, calibration, serving latency, and experimentation.

What the Interviewer Expects
  • Explain how pCTR enters the auction (bid x pCTR x quality) and why calibration matters
  • Design features: query-ad text match, advertiser history, position and context, with careful position handling
  • Choose a model (deep CTR model with embeddings and feature crosses) and continuous training
  • Handle sampling, delayed clicks and position bias in labels
  • Meet latency with a cascade and efficient serving
  • Evaluate with log loss, calibration and online revenue and user metrics
Key Topics to Cover
CTR prediction
ads auction
calibration
deep CTR models
online learning
position bias
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 do you model position so that pCTR is position-independent at auction time?
  • How quickly must new ads get reliable predictions?
  • How would you detect that a model update hurt a small set of advertisers?
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
  • For each query, score a few thousand candidate ads in under about 20 ms total ranking time.
  • Outputs feed rank score =bid×pCTR×quality= bid \times pCTR \times quality and second-price-style pricing, so prediction...
High-Level Design
  1. Candidate selection: keyword and broad-match retrieval plus semantic ad retrieval give thousands of ads.
  2. Light model: a small model prunes to a few hundred.
  3. Main pCTR model: deep ...

Submit Your Answer
Markdown supported