Correct Position Bias When Training on Home Feed Engagement Logs
Last updated: November 29, 2026
Quick Overview
Your home feed ranking model is trained on logged impressions, where Pins in top positions get far more saves partly because of where they were shown. Explain how position bias distorts training and describe concrete methods to correct for it.
0
0
0 solved
Your home feed ranking model is trained on logged impressions, where Pins in top positions get far more saves partly because of where they were shown. Explain how position bias distorts training and describe concrete methods to correct for it.
In Pinterest's masonry feed, position effects are two-dimensional (column and row), and models trained naively on logs learn to imitate the production ranker. Senior ML interviewers probe whether you know examination models, inverse propensity weighting, position-as-feature tricks, and how to estimate propensities.
What the Interviewer Expects
- Explains the examination hypothesis: P(save) = P(examined | position) x P(relevant)
- Describes inverse propensity scoring and how to estimate propensities
- Describes a position-aware tower or feature that is dropped or fixed at serving
- Discusses estimating propensities with randomization or intervention harvesting
- Addresses the masonry layout where position is row and column, not a list index
Key Topics to Cover
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
- How would you estimate propensities without hurting user experience?
- What variance problems does IPS cause and how do you control them?
- How does position bias interact with the model's own feedback loop over time?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Explore ML Interview PrepSample Answer
Clarify
- Labels: saves and closeups on logged impressions.
- Layout: two to seven columns; position can be represented as (row, column) or by vertical pixel offset.
- The current ranker decided which Pins we...
Approach
Under the examination hypothesis, the observed label mixes relevance with the chance the user even looked. A naive model credits Pins for good positions and learns to reproduce the existing ranking, s...
Submit Your Answer
Pinterest Machine Learning Engineer Interview Guide
Interview process, tips, and preparation timeline