In the world of recommender systems and digital advertising, the gold standard for testing a new algorithm is the live A/B test. However, as Haining Yu and Aman Agarwal point out, live tests are expensive, slow, and risky. If you deploy a "broken" ranking algorithm to millions of users just to see how it performs, you risk permanent churn and lost revenue.
This constraint has birthed a field dedicated to Off-Policy Evaluation (OPE): the art of using historical logs from an old policy (Policy A) to predict exactly how a new, hypothetical policy (Policy B) would have performed if it had been in control.
The Challenge of Selection Bias
The fundamental problem with historical logs is that they only tell us what happened for the actions we actually took. If our old movie recommender never showed a user The Godfather, we have no record of whether they would have clicked it.
Thorsten Joachims and Adith Swaminathan frame this through the lens of causal inference in Recommendations as Treatments. They argue that a recommendation isn't just a prediction; it's an intervention. Because the historical data is "biased" by the choices of the old policy, we cannot simply take the average reward of the logs to estimate the performance of a new policy. We must account for the propensity—the probability that the old policy chose that specific action.
Reweighting the Past
The most common tool for this is Inverse Propensity Scoring (IPS). The intuition is simple: if the new policy wants to take an action that the old policy took only rarely, we "up-weight" those rare events in our calculation to simulate what would happen if that action were the norm.
However, simple IPS often suffers from "variance explosion." If the old policy had a near-zero chance of taking an action that the new policy loves, the weight becomes massive, making the estimate unstable. To solve this, Haruka Kiyohara and Yuta Saito utilize Doubly Robust estimators. These methods combine two approaches:
- A Reward Model that tries to predict the outcome of any action.
- IPS to correct the model's biases using actual logged rewards.
By combining them, the estimator remains accurate even if the reward model is slightly wrong, provided the propensity scores are known.
From Theory to Benchmarks
For years, OPE research was hampered by a lack of public, real-world data. Researchers often had to "simulate" logs, which defeated the purpose of offline evaluation.
This changed with the release of the iPinYou dataset by Weinan Zhang and Jun Wang, which provided the first large-scale benchmark for real-time bidding. More recently, Yuta Saito and Yusuke Narita introduced the Open Bandit Dataset. This dataset is unique because it contains logs from multiple different policies running on the same platform (ZOZOTOWN), allowing researchers to finally compare their offline estimates against a "ground truth" A/B test result.
Simulating the Human Element
While OPE focuses on historical logs, a parallel direction uses Large Language Models (LLMs) to create more flexible evaluation environments. Chenglong Ma developed PUB, a framework that uses LLMs to simulate "digital twins" of users based on personality traits.
Similarly, Yukang Lin and Xiang Zhang introduced Creative4U, which uses multi-modal LLMs to reason about why one advertisement might perform better than another. These generative approaches aim to fill the gaps where historical logs are silent, providing a "reasoning" layer that traditional counterfactual math lacks.
By moving from "blind" live testing to mathematically grounded counterfactual evaluation, researchers can iterate on complex decision-making policies with the speed of offline development and the confidence of an online experiment.