Abstract
Personalization is a crucial aspect of many online experiences. In particular, content ranking is often a key component in delivering sophisticated personalization results. Commonly, supervised learning-to-rank methods are applied, which suffer from bias introduced during data collection by production systems in charge of producing the ranking. To compensate for this problem, we leverage contextual multi-armed bandits. We propose novel extensions of two well-known algorithms viz. LinUCB and Linear Thompson Sampling to the ranking use-case. To account for the biases in a production environment, we employ the position-based click model. Finally, we show the validity of the proposed algorithms by conducting extensive offline experiments on synthetic datasets as well as customer facing online A/B experiments.
Introduction: The Challenge of Position Bias
In modern recommendation systems, content is frequently presented as a ranked list, such as a horizontal carousel of music albums or movies. A significant challenge in training these systems is position bias: the phenomenon where users are more likely to click on items at the top of a list simply because they are more visible, regardless of their actual relevance.
Standard "Learning to Rank" (LTR) models often fail to account for this, creating a feedback loop where highly-ranked items continue to receive clicks, reinforcing their position even if better content exists further down the list. If an algorithm doesn't account for this, it will learn the wrong lessons and potentially perform worse than random selection.
Methodology: Bandit Algorithms for Ranking
To address this, we extend contextual multi-armed bandit (MAB) algorithms to the ranking domain using the Position-Based Model (PBM). The PBM assumes the probability of a click is the product of two independent factors:
- Relevance: How much the user likes the item.
- Examination: The probability the user actually looks at that position (the bias).
We introduce two novel algorithms:
- LinUCB-PBMRank: An optimistic approach that calculates a least-squares estimate of item relevance but weights the updates based on the position's visibility. It selects items with the highest upper confidence bound on visibility-adjusted rewards.
- LinTS-PBMRank: A Bayesian approach using Thompson Sampling. It maintains a probability distribution over the model parameters and samples from it to decide the ranking, naturally balancing exploration and exploitation.
Estimating Position Bias
Accurately estimating the "visibility" of each rank is critical. We evaluated three estimation techniques: simple historical Click-Through Rate (CTR), Probit Regression (PR), and Expectation-Maximization (EM).
Our experiments demonstrated that the Expectation-Maximization (EM) method is the most robust, especially when the first position isn't guaranteed to have 100% visibility. By treating the user's examination of an item as a latent variable, EM effectively decouples item relevance from position-based visibility.
Experimental Results
The proposed models were evaluated using both synthetic simulations and live A/B tests on a major music streaming service.
Synthetic Simulations
In controlled environments, we found that bandit algorithms ignoring position bias eventually performed worse than random selection. They became "trapped" by the biased data they generated. Conversely, the PBMRank variants successfully learned the true item relevances.
Real-World A/B Testing
In production, the bandit models were tested against human curation and standard Matrix Factorization (MF) baselines:
- Vs. Human Curation: Achieved a 15.38% lift in Mean Reciprocal Rank (MRR) and a 17.16% increase in attributed playbacks.
- Vs. Matrix Factorization: The EM-based bandit model showed a 5.08% lift in MRR and a 7.57% increase in playbacks.
Furthermore, the bandit approach demonstrated superior adaptability, quickly responding to intra-day trends and sudden events, such as new track releases, which traditional batch-trained models often miss.
Conclusion
By integrating the Position-Based Model into contextual bandit frameworks, we can effectively mitigate position bias in ranking systems. The resulting algorithms, particularly when paired with EM-based bias estimation, deliver significant improvements in user engagement and system adaptability compared to traditional supervised and heuristic methods.
Summary updated