Abstract
Traditional offline evaluation of recommender systems often fails to predict online performance because it treats recommendation as a supervised prediction task rather than a causal intervention. This paper investigates the "offline-online gap" by comparing traditional organic evaluation (LOOCV) with counterfactual bandit evaluation using Clipped Inverse Propensity Scoring (CIPS). Using the RecoGym simulation environment, the authors demonstrate that while organic evaluation leads to incorrect model rankings, CIPS-based evaluation accurately reflects true A/B test results, providing a more reliable path for offline model selection.
Introduction: The Offline-Online Gap
In recommender systems research, there is a persistent frustration: models that achieve state-of-the-art results in offline benchmarks (like "next-item prediction") often fail to deliver gains when deployed in live A/B tests. This discrepancy is known as the "offline-online gap."
The authors argue this happens because traditional offline evaluation treats recommendation as a supervised learning problem—predicting the "natural" sequence of user actions (organic behavior). However, real-world recommendation is an intervention. We aren't just trying to guess what a user will do; we are trying to change their behavior by showing them specific items. In standard datasets, we only know the "reward" (a click or purchase) for the items actually shown to the user, a constraint known as bandit feedback.
Evaluation Paradigms
The paper compares two main evaluation paradigms:
- Traditional (Organic) Evaluation: Uses $k$-fold Leave-One-Out Cross-Validation (LOOCV). It hides an item from a user's natural history and evaluates the model's ability to predict it.
- Counterfactual (Bandit) Evaluation: Uses Clipped Inverse Propensity Scoring (CIPS). This technique re-weights logged data from a previous "logging policy" to estimate how a new model would have performed. The "Clipped" aspect manages variance by capping importance weights ($M$): $$CIPS(\pi, \mathcal{D}) = \frac{1}{n} \sum_{i=1}^{n} \delta_i \cdot \min(M, \frac{\pi(a_i|x_i)}{p_i})$$ where $\pi$ is the new policy, $p_i$ is the logging policy's probability, and $\delta_i$ is the observed reward.
Experimental Setup
The researchers utilized RecoGym, an open-source reinforcement learning environment. RecoGym allows for a "perfect" ground truth by simulating thousands of users, collecting logged data for offline testing, and then running a "true" simulated A/B test to validate offline predictions. The experiments involved 2,000 users and 2,000 items for training (~40k organic interactions, 160k bandit samples) and 5,000 unseen users for testing.
Key Results: Rankings and Reliability
The study reveals that organic evaluation is a poor proxy for recommendation performance. As shown in the organic feedback evaluation, traditional metrics like Hit-Rate@1 can lead to misleading conclusions about which algorithm is superior.
In contrast, counterfactual evaluation using CIPS provides a much more accurate reflection of real-world performance. The figure below demonstrates that CIPS estimates for Click-Through Rate (CTR) closely align with the ground-truth A/B test results, even when variance is high.
While CIPS can have wider confidence intervals (notably for SVD and User-kNN), it successfully captures the true CTR for almost all models. Crucially, when ranking models by the upper confidence bound of the CIPS estimate, the researchers were able to perfectly infer the true ranking obtained through the simulated A/B test. This suggests that bandit feedback is essential for reliable offline model selection.
Limitations and Conclusion
The primary limitation of bandit evaluation is sample efficiency. CIPS requires high-quality logged data with sufficient "coverage" of the action space; for instance, it struggled to predict the performance of a purely random baseline due to insufficient samples. Additionally, this study assumes a stationary environment, whereas real-world item catalogs evolve rapidly.
Despite these challenges, the results clearly indicate that predicting how users react to recommendations (bandit feedback) is a fundamentally different and more valuable task than predicting what they do naturally. Moving toward counterfactual evaluation is essential for closing the gap between offline research and online success.
Summary updated