Predict Click-Through for Sponsored Product Suggestions in Shopping Answers

Last updated: November 29, 2026

Quick Overview

Suppose ChatGPT's shopping answers included clearly labeled sponsored product suggestions; design the model and serving system that predicts click-through and conversion to decide which sponsored items to show without hurting answer quality.

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

0

0

0 solved


Suppose ChatGPT's shopping answers included clearly labeled sponsored product suggestions; design the model and serving system that predicts click-through and conversion to decide which sponsored items to show without hurting answer quality.

A hypothetical ads question tests whether you can bring classic CTR and auction modeling into a conversational setting where trust matters more than in a feed. The interviewer wants calibrated predictions, a relevance floor, separation of organic answers from paid placements, and guardrail metrics.

What the Interviewer Expects
  • Keep organic recommendations independent from sponsored ranking
  • Define eligibility with a strict relevance threshold to the user's request
  • Predict pCTR and pCVR with calibrated models using query, product and context features
  • Rank by expected value times a quality factor in an auction, with reserve prices
  • Measure guardrails: user satisfaction, answer quality, trust signals
  • Handle position bias and sparse conversion labels
Key Topics to Cover
CTR prediction
calibration
auctions
position bias
guardrail metrics
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
  • Why does calibration matter more than AUC for an ads ranker?
  • How would you correct for position bias in click logs?
  • What guardrail would make you roll back a revenue-positive experiment?
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
  • Only on shopping-intent conversations; at most one or two sponsored slots, visually labeled.
  • Advertiser bids per click on product catalogs.
  • Prediction latency under 50 ms.
  • Sponsored placements...
High-Level Design
  1. Intent detection: classifier for commercial intent and extracted product attributes (category, budget, constraints).
  2. Candidate retrieval: query embedding to ANN over advertiser product e...

Submit Your Answer
Markdown supported