Abstract
Position bias—the tendency of users to interact with higher-ranked items regardless of relevance—poses a significant challenge for evaluating and training recommendation systems. While this bias is inherently contextual, existing estimation methods often require expensive multi-policy interventions. We present Policy-Aware Contextual Intervention Harvesting (PA-C-IH), a novel approach that accurately estimates contextual position bias using data from a single stochastic logging policy. By employing propensity weighting and a dual neural network architecture, PA-C-IH recovers hidden examination probabilities with high precision. Our results on synthetic datasets demonstrate that PA-C-IH significantly outperforms non-contextual baselines, providing robust off-policy evaluation (OPE) even under distribution shifts.
Introduction
In modern search and recommendation interfaces, users are predisposed to click on top-ranked results simply due to their placement. To accurately evaluate new ranking models offline, practitioners must "de-bias" historical click logs by estimating the probability that a user actually examined a specific slot. While position bias is known to vary with context (e.g., device type or time of day), existing contextual estimation techniques typically require "intervention" data from multiple concurrent ranking policies. Such requirements are often operationally prohibitive. This work addresses this gap by proposing a method to harvest contextual interventions from a single, slightly randomized production policy.
Methodology
The proposed approach builds upon the Position-Based Model (PBM), which decomposes a click into two independent events: examination ($E$) and relevance ($R$). The core contribution, PA-C-IH, extends intervention harvesting to the single-policy regime.
Policy-Aware Contextual Intervention Harvesting
Unlike traditional harvesting that requires explicit policy changes, PA-C-IH utilizes the known propensities of a stochastic logging policy. By weighting click labels according to these probabilities, the model can infer how item placement affects clicks across different contexts. The architecture employs dual neural networks optimized simultaneously:
- Examination Network ($h$): Estimates the examination probability for a given context $x$ at position $k$.
- Relevance Network ($g$): Estimates the average relevance of items appearing in specific position pairs.
To maintain consistency, a symmetry constraint is enforced on the relevance network, ensuring that the estimated relevance remains invariant to the ordering of position pairs.
Experimental Evaluation
The method was evaluated using a synthetic dataset of 200,000 queries, where user behavior was modeled as a mixture of three Gaussian clusters representing distinct contextual examination patterns. A stochastic logging policy with random swaps provided the training data.
Bias Estimation Accuracy
As shown in Figure 1, PA-C-IH successfully recovers the complex, context-dependent bias curves that non-contextual models (PA-IH) fail to capture. Quantitatively, PA-C-IH achieved a Relative Error of 0.0556, a significant improvement over the 0.3434 error rate of the non-contextual baseline.
Off-Policy Evaluation (OPE)
The accuracy of bias estimation directly impacts the reliability of OPE. In stationary environments, PA-C-IH provided reward estimates with significantly lower bias across all user clusters compared to the baseline (Figure 2).
Furthermore, the model demonstrated high resilience to distribution shifts. When the proportion of user clusters was altered during testing, PA-C-IH maintained stable performance, whereas non-contextual models suffered from substantial systematic error.
Conclusion
PA-C-IH demonstrates that contextual position bias can be accurately estimated without the need for complex multi-policy experiments. By accounting for the interplay between user context and examination behavior, the method provides a foundation for more reliable offline evaluation and model training. Future work will explore the application of this technique to large-scale industrial datasets and its integration into end-to-end Learning to Rank (LTR) pipelines.
Summary updated