Counterfactual Evaluation via Importance Sampling

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 133 papers35 conceptsfrozen 2026-10-04

In many real-world domains, we cannot afford to "move fast and break things." A hospital cannot test an unproven sepsis treatment on live patients just to see if it works, and a search engine cannot risk showing poor results to millions of users to gather data for a new ranking algorithm. This creates a fundamental challenge: how do we evaluate a new decision-making strategy (a target policy) using only data collected by an old strategy (a behavior policy)?

The research direction emerging from these papers focuses on Off-Policy Evaluation (OPE)—the art of counterfactual reasoning. It allows us to answer "what if" questions by mathematically reweighting the past to simulate the future.

The Core Mechanism: Importance Sampling

The bridge between the past and the hypothetical future is a statistical technique called Importance Sampling (IS). As Leon Bottou and colleagues explain in Counterfactual Reasoning and Learning Systems, if we know the probability that our old system took an action ($P_{old}$) and the probability that our new system would take that same action ($P_{new}$), we can calculate an importance weight: $w = P_{new} / P_{old}$.

By multiplying the observed historical reward by this weight, we effectively "correct" the data. If the new policy is much more likely to take a certain action than the old one, we count that action's outcome more heavily. This mechanism allows researchers like Takeshi Mori and Yutaka Nakamura to evaluate complex "Natural Actor-Critic" models without ever running them in a live environment.

Bridging the Offline-Online Gap

A recurring theme across this research is that simple prediction is not enough. In recommender systems, David Rohde and Olivier Jeunen point out in On the Value of Bandit Feedback for Offline Recommender System Evaluation that predicting what a user naturally does is a poor proxy for how they respond to a recommendation.

Traditional metrics like "Next-Item Prediction" often fail because they don't account for the system's influence on the user. Romain Deffayet and Maarten de Rijke argue in Offline Evaluation for Reinforcement Learning-Based Recommendation: A Critical Issue and Some Alternatives that OPE is necessary to avoid "deadly" instabilities where a model looks good on paper but fails catastrophically upon deployment because it was never evaluated on its long-term trajectory.

Managing Variance and Stability

While Importance Sampling is powerful, it is notoriously "noisy." If the new policy wants to take an action that the old policy almost never took, the importance weight $w$ explodes, leading to high variance.

To solve this, researchers have developed more robust estimators:

  • Per-Decision Importance Sampling (PDIS): Song Hyun Ju and Min Chi show that by breaking a sequence of decisions down and only weighting rewards based on past actions, we can significantly reduce variance in educational AI settings.
  • Clipped and Weighted IS: Techniques like Clipped Inverse Propensity Scoring (CIPS) or Weighted Importance Sampling, used by Matthieu Komorowski to evaluate the "AI Clinician," provide more stable estimates by preventing individual data points from over-influencing the result.
  • Theoretical Bounds: Huizhen Yu provided the first rigorous proof in Convergence of Least Squares Temporal Difference Methods Under General Conditions that these off-policy methods can remain stable even when internal calculations become unbounded.

High-Stakes Decisions and Fairness

The true value of OPE lies in high-stakes domains where experimentation is restricted. In healthcare, it allows for the "reality check" of models like the AI Clinician for sepsis treatment. In social systems, Aline Weber and Philip S. Thomas use OPE in Enforcing Delayed-Impact Fairness Guarantees to ensure that algorithms don't have hidden, long-term negative effects on disadvantaged communities. By reweighting historical data, they can predict the "delayed impact" of a policy before it causes real-world harm.

Modern Frontiers: LLMs and Efficiency

Recently, these techniques have moved into the heart of modern AI. Training Large Language Models (LLMs) via Reinforcement Learning from Human Feedback (RLHF) is expensive. Lalit K Jain and colleagues demonstrate in Off-Policy Evaluation from Logged Human Feedback that OPE can estimate how well a new LLM aligns with human preferences using existing logs, bypassing the need for new, costly human labeling.

Similarly, in Data-Efficient RLVR via Off-Policy Influence Guidance, Dazhi Jiang and Jie Tang show how off-policy trajectories can identify the most "influential" data points, making the training of reasoning models like DeepSeek-R1 significantly more efficient.

By treating historical data not just as a record of what happened, but as a laboratory for what could happen, OPE provides a safe, principled path for advancing AI in the real world.

Papers in this version

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_counterfactual_evaluation_via_importance_927ce5d8,
  title = {Counterfactual Evaluation via Importance Sampling},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/counterfactual-evaluation-via-importance-sampling/rdr_927ce5d8ad1d457585650017e5cdef7d},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-27},
}

This exact version (version 1, frozen text):

@misc{lacuna_counterfactual_evaluation_via_importance_927ce5d8_v1,
  title = {Counterfactual Evaluation via Importance Sampling},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/counterfactual-evaluation-via-importance-sampling/rdr_927ce5d8ad1d457585650017e5cdef7d/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-27},
}