Causal Embeddings for Recommendation

Stephen Bonner, Flavian Vasile

Abstract

Traditional recommender systems often optimize for predicting a user's next action, failing to distinguish between organic behavior and the actual impact of a recommendation. This paper introduces CausE (Causal Embeddings), a matrix factorization method that leverages causal inference to estimate the Individual Treatment Effect (ITE). By using a multi-task objective function that regularizes embeddings from biased historical data against a small set of randomized data, CausE optimizes for incremental lift. Experimental results on MovieLens and Netflix datasets demonstrate that CausE significantly outperforms standard matrix factorization and existing causal baselines in terms of MSE lift and AUC.

Introduction

Most modern recommender systems are trained on historical logs to predict the most likely item a user will interact with next. However, this approach suffers from a fundamental selection bias: it captures what a user would have done anyway (organic behavior) rather than the true influence of the recommendation itself. In many business contexts, the goal is to drive incremental value—actions that wouldn't have happened without the intervention.

The authors frame recommendation as a causal inference problem, specifically aiming to estimate the Individual Treatment Effect (ITE). The ITE is the difference in a user's behavior when they receive a recommendation (treatment) versus when they do not (control). Because we can never observe both states simultaneously for the same user, and because training data is often heavily biased by previous recommendation policies, standard predictive models fall short.

Methodology: Causal Embeddings (CausE)

To address the "fundamental problem of causal inference" in recommenders, the authors propose CausE. This algorithm treats the problem as a domain adaptation task, learning from two distinct datasets:

  1. $S_c$ (Control): A large, biased dataset collected under an existing recommendation policy.
  2. $S_t$ (Treatment): A much smaller, unbiased dataset collected via randomized exploration (e.g., epsilon-greedy).

CausE employs a multi-task objective function. It simultaneously learns two sets of embeddings: one for the control policy and one for the treatment policy. A critical regularization term penalizes the distance between these two sets of embeddings. This allows the model to transfer structural knowledge from the massive biased dataset to the sparse randomized dataset, effectively "correcting" the bias while retaining the rich information found in the larger logs.

Experimental Setup

The researchers evaluated CausE using the MovieLens 10M and Netflix datasets. To simulate real-world causal challenges, they implemented a SKEW protocol. Ratings were binarized, and a popularity-based sampling method was used to create a biased training set. A uniformly sampled set was reserved for testing, representing the "ground truth" of how users behave under any exposure.

Results and Analysis

CausE demonstrated superior performance across multiple metrics compared to standard matrix factorization (BPR) and other causal methods like Inverse Propensity Scoring (IPS).

Table 1: Performance comparison on MovieLens 10M and Netflix datasets under the SKEW protocol. CausE-prod-C consistently achieves the highest lift and AUC.

As shown in Table 1, CausE-prod-C (the variant using control embeddings regularized by treatment data) achieved a 15.48% MSE lift on MovieLens 10M, significantly higher than the 6.14% achieved by the best IPS-based baseline (WSP2V-blend).

A key insight from the study is the efficiency of randomized data. The authors found that even a very small amount of randomized data can drastically improve the model's ability to generalize to unbiased scenarios.

Figure 1: Performance metrics (MSE Lift, NLL Lift, AUC) as a function of the size of the randomized test sample in the training set. CausE shows a clear upward trend as more randomized data is introduced.

Figure 1 illustrates that as the percentage of randomized data in the training set increases, the performance gap between CausE and other methods widens, particularly for MSE and NLL lift. This confirms that the multi-task regularization effectively leverages small amounts of "clean" data to steer the embeddings learned from large "noisy" datasets.

Conclusion

CausE represents a significant step toward recommenders that optimize for true intervention impact rather than just correlation. By framing recommendation as domain adaptation and using multi-task learning, it provides a robust way to handle the inherent biases in historical logs.

Future work may involve extending this framework to sequential user modeling to capture how causal effects change over time, and moving beyond binary outcomes to continuous rewards like revenue or engagement duration. While the requirement for some randomized data remains a hurdle for some applications, the efficiency of CausE suggests that the "cost of exploration" can be kept remarkably low.

Summary updated

BibTeX
@inproceedings{bonner2018causal,
  author = {Stephen Bonner and Flavian Vasile},
  title = {{Causal Embeddings for Recommendation}},
  booktitle = {RecSys},
  year = {2018},
  doi = {10.1145/3240323.3240360},
}
Figure