Design Click-Through Prediction for Promoted Pins in Search

Last updated: November 29, 2026

Quick Overview

Design the model and serving system that predicts click-through probability for promoted Pins shown in Pinterest search results, so the ad auction can rank by expected value. Include features, training, calibration and online serving.

Pinterest
ML System Design
Machine Learning Engineer
Pinterest
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Medium

0

0

0 solved


Design the model and serving system that predicts click-through probability for promoted Pins shown in Pinterest search results, so the ad auction can rank by expected value. Include features, training, calibration and online serving.

Search ads at Pinterest monetize strong commercial intent, and the CTR model directly sets which ads win and what advertisers pay. The interviewer checks that you treat calibration as a requirement, design features for query-ad relevance, and handle the scale and freshness of ads training.

What the Interviewer Expects
  • Frames the auction score as bid times predicted CTR (and quality)
  • Proposes query, ad, user and context features including query-ad relevance
  • Chooses a model architecture suitable for sparse features with continual training
  • Requires calibration and explains how it is checked
  • Covers latency budget and feature freshness at serving
Key Topics to Cover
ads prediction
CTR modeling
calibration
feature engineering
online learning
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 would you handle a brand-new advertiser with no click history?
  • Your model's offline AUC rose but revenue fell in the A/B test; why might that be?
  • How would you extend this to predict conversions, which are rarer and delayed?
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

Inputs: a search query, the user, and a few hundred candidate ads from retrieval.

Output: calibrated pCTR per ad within about 20 ms for the whole candidate set.

Success: online revenue per search an...

High-Level Design

Pipeline: ads retrieval (keyword, embedding match on query and ad text and image) -> lightweight pre-ranker -> CTR model -> auction (rank by bid x pCTR x quality, with reserve prices) -> blend into or...


Submit Your Answer
Markdown supported