Remove Position Bias From Search Click Logs Before Training

Last updated: November 29, 2026

Quick Overview

Clicks on Google Search results are used as training labels, but top-ranked results get clicked more regardless of relevance. Explain how to estimate position bias and train an unbiased ranker from click data.

Google
Machine Learning
Machine Learning Engineer
Google
November 29, 2026
Machine Learning Engineer
Onsite
Machine Learning
Hard

0

0

0 solved


Clicks on Google Search results are used as training labels, but top-ranked results get clicked more regardless of relevance. Explain how to estimate position bias and train an unbiased ranker from click data.

Search and YouTube both learn heavily from implicit feedback, so Google interviewers expect MLEs to know that raw clicks encode presentation, not just relevance. They check for the examination hypothesis, propensity estimation, and practical training fixes.

What the Interviewer Expects
  • State the examination hypothesis: click requires examination and relevance
  • Estimate propensities via randomization (swap or interleave) or EM from logs
  • Apply inverse propensity weighting to the loss
  • Discuss variance from small propensities and clipping
  • Mention a learned bias tower as an alternative
Key Topics to Cover
Position bias
Inverse propensity weighting
Counterfactual learning to rank
Click models
Randomization
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
  • How would you estimate propensities without hurting users with randomized rankings?
  • How does bias differ on mobile, where results include rich cards?
  • What happens if propensities depend on the query type?
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

Confirm we observe (query, displayed list, positions, clicks), and whether we may run small randomization experiments. Ask whether the page layout varies (ads above results, feature snippets), since t...

Approach

Model clicks as P(click∣d,k)=P(Ek)⋅P(Rd)P(click | d, k) = P(E_k) \cdot P(R_d): a user clicks document dd at position kk only if they examine position kk propensitypropensity \theta_k and find it relevant. Estimate θk\theta_k,...


Submit Your Answer
Markdown supported