Design an Ad Relevance Filter Before the Bing Ads Auction

Last updated: November 29, 2026

Quick Overview

Design a model that removes ads irrelevant to the query before they enter the Bing Ads auction, so that users do not see an ad for car insurance when searching for a cat food brand.

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

0

0

0 solved


Design a model that removes ads irrelevant to the query before they enter the Bing Ads auction, so that users do not see an ad for car insurance when searching for a cat food brand.

Bad ad relevance hurts user trust and long-term revenue even when an advertiser bids high. This scoped ML design checks a sensible classifier, label strategy using human judges, threshold choice, and latency for thousands of candidates per query.

What the Interviewer Expects
  • Frame as binary or graded relevance classification on query-ad pairs
  • Use text features and embedding similarity, with a fast distilled model
  • Collect labels from human judges and an LLM labeler validated against them
  • Pick thresholds by trading revenue against relevance
  • Monitor filter rate and judged relevance online
Key Topics to Cover
ad relevance
text classification
distillation
human judgments
threshold tuning
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 handle brand queries where competitor ads may be allowed?
  • How would you set different thresholds for sensitive verticals like health or finance?
  • What happens if the filter is too aggressive on long-tail queries?
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
  • Input: query plus candidate ad (title, description, keywords, landing page summary). Output: relevance score; drop ads below a threshold.
  • Thousands of candidates per query, so under about 2 ms per...
High-Level Design
  1. Offline: precompute ad embeddings and landing page summaries.
  2. Online: compute the query embedding once, then score each ad with a small model over similarity plus cheap features.
  3. Drop low sco...

Submit Your Answer
Markdown supported