Introduction
In the traditional view of machine learning, recommender systems are treated as prediction engines—tools designed to forecast whether a user will click a link or purchase a product. However, a growing body of research argues that this perspective is fundamentally flawed. Instead, recommender systems should be viewed as interventions or treatments, much like medical prescriptions.
When a system chooses to show a specific item to a user, it doesn't just predict behavior; it actively changes the user's environment and future actions. By shifting to a framework of causal inference, developers can move beyond simple pattern matching to perform robust "Offline A/B testing," allowing for the evaluation of new recommendation strategies using biased historical data without the risks of live experimentation.
The Problem: The Bias of Logged Data
Most modern recommenders are trained on "logged" data—historical records of user interactions. This data is inherently biased because users can only interact with what the previous system chose to show them. If an algorithm exclusively promotes blockbuster movies, the resulting data will suggest that users only enjoy blockbusters, creating a self-reinforcing "rich-get-richer" feedback loop.
Standard supervised learning fails here because it cannot account for the counterfactual: what would have happened if the user had been shown a different, perhaps niche, item? While online A/B testing can answer this, it is often too expensive, slow, or risky for rapid iteration.
Methods: Counterfactual Inference
The authors propose a framework that treats a recommendation as an action (denoted as $\pi$) that leads to a specific reward ($r$). To evaluate a new policy without running it live, they employ two primary techniques:
Inverse Propensity Scoring (IPS)
IPS is the mathematical engine of counterfactual evaluation. It allows for an unbiased estimate of a new policy's performance by re-weighting historical rewards. Specifically, the reward is divided by the propensity—the probability that the original logging system would have made that specific recommendation. This process effectively "undoes" the bias of the old system to simulate the performance of the new one.
Counterfactual Risk Minimization (CRM)
Rather than trying to build a perfect model of user behavior (the "Model the World" approach), CRM directly optimizes the IPS-weighted reward. It searches for the policy that would have yielded the highest total reward had it been in control during the data collection period. To manage the high variance often associated with IPS, the authors utilize techniques like clipping (capping weights) and self-normalization.
Key Insights: Fairness and Position Bias
One of the most significant advantages of a causal approach is its ability to address systemic unfairness. In traditional ranking systems, items with nearly identical relevance scores can receive vastly different levels of exposure based solely on their rank. This "position bias" means users often click the top result simply because it is at the top, not because it is the best match.
As shown in the table above, an article with a 50.99% relevance probability receives "High" exposure, while one with 49.03% receives "Low" exposure. Causal methods allow systems to measure the true "merit" of an item by mathematically accounting for this position bias, leading to more equitable outcomes for content creators.
The Cost of Exploration
To implement these methods effectively, a live system must be slightly randomized (stochastic). This "exploration" carries a short-term business cost, as the system may occasionally show a sub-optimal item. However, this intentional randomness provides the "clean" data necessary for long-term improvement and unbiased offline evaluation.
Conclusion and Future Directions
Viewing recommendations as treatments provides a theoretical roadmap for building more robust, fair, and evaluable systems. While challenges remain—such as the "Zero Propensity" problem (where an item was never shown by the old system) and the complexity of ranking "slates" of multiple items—the shift toward causal inference represents a major evolution in personalization. Future work is expected to bridge these methods with Reinforcement Learning (RL) to optimize for long-term user satisfaction and session-based utility.
Summary updated