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
November 29, 20260
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
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 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 ProblemsSample 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
- Offline: precompute ad embeddings and landing page summaries.
- Online: compute the query embedding once, then score each ad with a small model over similarity plus cheap features.
- Drop low sco...
Submit Your Answer
Microsoft Machine Learning Engineer Interview Guide
Interview process, tips, and preparation timeline