Recommendations as Treatments: Debiasing Learning and Evaluation

Tobias Schnabel, Adith Swaminathan, Ashudeep Singh, Navin Chandak, Thorsten Joachims

TL;DR

This paper reframes recommendation systems through the lens of causal inference, treating the act of showing an item to a user as a "treatment." By applying propensity-scoring techniques, the authors develop a principled framework to remove selection bias from both the evaluation and training phases. This approach leads to significantly more accurate models when deployed on real-world, biased data.

What Problem Does This Paper Address?

Most data used to train and evaluate recommender systems is "Missing Not At Random" (MNAR). This occurs because of selection bias: users typically only rate items they already like or expect to like (self-selection), and systems only show users items they are likely to interact with (system-selection).

Toy example illustrating selection bias: true ratings (Y), observation propensities (P), observed ratings (O), and various prediction models (Y-hat).

If you evaluate a model using only the ratings users chose to provide, you get a skewed picture of its performance. For example, a model might appear to have a low Mean Absolute Error (MAE) simply because it predicts high scores for "horror lovers" who only ever rated horror movies they enjoyed. This bias makes it nearly impossible to know how a system would actually perform on a new, diverse set of recommendations where users are exposed to items outside their usual bubble.

Methods

The authors bridge the gap between recommender systems and causal inference by utilizing Inverse Propensity Scoring (IPS).

  1. Unbiased Evaluation: They introduce the IPS estimator for standard performance metrics (like MSE or DCG). Instead of a simple average, they weight each observed rating by the inverse of its propensity ($P_{u,i}$)—the probability that the user $u$ would actually see and rate item $i$. This "re-weights" the data to simulate a scenario where every user rated every item.
  2. SNIPS Estimator: To handle the high variance that often plagues IPS (especially when propensities are very small), they propose the Self-Normalized Inverse Propensity Scoring (SNIPS) estimator, which provides more stable estimates in practice.
  3. Unbiased Training (MF-IPS): They incorporate these propensity weights into an Empirical Risk Minimization (ERM) framework to create a new matrix factorization method (MF-IPS). Effectively, it is a weighted matrix factorization where the weights are derived directly from the causal observation model.
  4. Propensity Estimation: Because true propensities are rarely known in observational data, they explore two ways to estimate them: a Naive Bayes approach (requiring a small "gold standard" random sample) and a Logistic Regression approach (using user/item features).

Datasets

To validate their approach, the authors utilized three distinct datasets:

  • Semi-synthetic ML100K: Based on the classic MovieLens 100K dataset. The authors "completed" the matrix to create a ground truth, then simulated different levels of selection bias to test how well their estimators recovered true performance.
  • Yahoo! R3 Dataset: A large-scale dataset of song ratings. Crucially, it contains a small subset of ratings where songs were assigned to users randomly, providing a rare "Missing Completely At Random" (MCAR) test set for unbiased evaluation.
  • Coat Shopping Dataset: A new benchmark introduced by the authors featuring 290 users rating coats. It includes both self-selected ratings (biased training data) and a set of 16 items per user that were assigned randomly (unbiased test data).

Key Insights and Ideas

  • Recommendation as Intervention: The core "aha moment" is viewing a recommendation not just as a prediction task, but as a medical treatment. Just as a doctor chooses a treatment for a patient, a system chooses an item for a user. Causal tools designed for clinical trials can therefore be ported directly to AI.
  • Decoupling Models: Unlike previous "joint-likelihood" methods that try to model the rating and the missingness simultaneously (which is computationally expensive), this approach decouples them. You can use any propensity model you want, then plug it into a standard weighted matrix factorization.
  • Robustness to "Wrong" Propensities: A major finding is that you don't need a perfect propensity model to see gains. Even a "better than uniform" estimate of the bias significantly improves the model's performance compared to ignoring the bias entirely.
  • Scalability: Because the training objective looks like standard weighted matrix factorization, it can be solved using existing high-performance optimization algorithms (like L-BFGS or SGD), making it much more scalable than complex Bayesian alternatives.

Key Results

  • Evaluation Accuracy: On the semi-synthetic data, the IPS and SNIPS estimators were orders of magnitude more accurate at predicting true MSE and DCG than the "naive" estimators used in most standard industry pipelines.
  • Predictive Performance: On the Yahoo! R3 and Coat datasets, the MF-IPS method significantly outperformed standard matrix factorization and state-of-the-art joint-likelihood models (HL-MNAR).
  • On the Yahoo! dataset, MF-IPS achieved an MSE of 0.989, compared to 1.891 for the naive approach and 2.175 for the complex HL-MNAR model.
  • Real-World Impact: The results demonstrate that accounting for why data is missing is often more important than increasing the complexity of the recommendation model itself.

Limitations and Future Work

  • Propensity Estimation: The method's success relies heavily on the quality of the propensity estimates. If the propensity model is severely mis-specified, it can introduce new biases.
  • The "Small Propensity" Problem: When an item has a near-zero chance of being seen, the $1/P$ weight becomes massive, leading to high variance during training. The authors suggest "propensity clipping" as a practical fix.
  • Future Directions: The authors point toward doubly-robust estimation—combining propensity scores with an imputation model—to get the best of both worlds: low bias and low variance.

Summary updated

BibTeX
@inproceedings{schnabel2016recommendations,
  author = {Tobias Schnabel and Adith Swaminathan and Ashudeep Singh and Navin Chandak and Thorsten Joachims},
  title = {{Recommendations as Treatments: Debiasing Learning and Evaluation}},
  booktitle = {International Conference on Machine Learning},
  year = {2016},
}
Figure