Correct Predicted Probabilities After Negative Downsampling in Ad CTR Models

Last updated: November 29, 2026

Quick Overview

Meta ad click models train on data where most non-click impressions are dropped. Derive how to map the model's output back to a true click probability and explain why this matters for the ads auction.

Meta
Machine Learning
Machine Learning Engineer
Meta
November 29, 2026
Machine Learning Engineer
Technical Screen
Machine Learning
Medium

0

0

0 solved


Meta ad click models train on data where most non-click impressions are dropped. Derive how to map the model's output back to a true click probability and explain why this matters for the ads auction.

Ads ranking at Meta trains on enormous impression logs where clicks are rare, so negatives are downsampled to cut cost. The interviewer wants the actual correction formula and an understanding that bids are multiplied by these probabilities, so bias costs money.

What the Interviewer Expects
  • Derive the corrected probability from Bayes or odds reasoning
  • Show the code and check it with a numeric example
  • Explain why the auction needs calibrated probabilities, not just ranking
  • Mention monitoring calibration by segment after the correction
Key Topics to Cover
negative downsampling
calibration
CTR prediction
ads auction
class imbalance
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • What changes if you also downsample positives?
  • Does downsampling change the model's ranking of ads? Why or why not?
  • How would you choose the negative sampling rate?
  • What residual miscalibration would you still expect, and how would you fix it?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify

Assume we keep every click and keep each non-click with probability ww (for example w=0.1w = 0.1). The model trained on this data outputs qq, the click probability in the sampled distribution. I need $...

Approach

Downsampling only changes the class prior. Within each class, the feature distribution is unchanged, so the likelihood ratio is unchanged and only the odds shift by a constant factor 1/w1/w....


Submit Your Answer
Markdown supported