Introduction
In reinforcement learning (RL), selecting the best policy from a set of candidates using historical data is a fundamental challenge. This process, known as off-policy policy selection, typically relies on Importance Sampling (IS) to estimate the value of new policies. While IS is mathematically unbiased, this paper reveals a critical flaw: unbiased estimators can be systematically "unfair," frequently selecting suboptimal policies over better ones.
The Problem: Unbiasedness vs. Fairness
The core insight of this work is that unbiasedness—where the expected value of an estimate equals the true value—does not guarantee reliable ranking. In policy selection, we are interested in the probability that the estimate for policy A is greater than the estimate for policy B. If an estimator for a poor policy has a "long tail" of high-value outliers, it may be chosen more than 50% of the time, even if its mean is lower than a superior policy.
This issue is exacerbated by the "vanishing weight" problem in long trajectories. As trajectory length increases, IS multiplies many probability ratios. If these ratios are small, the weights for long episodes effectively vanish, causing the estimator to over-index on short trajectories and ignore the long-term performance of a policy.
Proposed Method: Per-Horizon Weighted Importance Sampling
The authors propose two primary solutions to address these failures. First, they provide a formal definition of fairness: a selection algorithm is fair if the probability of choosing the optimal policy is at least as high as choosing any other candidate. Second, they introduce the Per-Horizon Weighted Importance Sampling (PHWIS) estimator.
PHWIS combats the bias toward short trajectories by grouping trajectories by their length (horizon $l$), calculating a weighted estimate for each group, and then recombining them using the distribution of horizons under the behavior policy. This prevents the estimator from ignoring long trajectories just because they are mathematically harder to weight.
Experimental Evaluation
The effectiveness of PHWIS was evaluated using a synthetic "Chain MDP" benchmark. In this environment, an agent encounters trajectories of varying lengths. As the length of the long trajectory ($L$) increases, standard IS and Weighted IS (WIS) performance degrades significantly.
As shown in the results, the probability of standard IS picking the correct policy drops well below 50% as $L$ grows. In contrast, the proposed PHWIS-Behavior estimator maintains a near 100% success rate, effectively neutralizing the bias introduced by varying episode lengths.
Conclusion
This research highlights that for policy selection, the distribution of estimation error is more important than the mean error. By introducing the concept of fairness and the PHWIS estimator, the authors provide a more robust framework for off-policy evaluation in domains with variable trajectory lengths, such as education and healthcare. Future work remains to scale these fairness guarantees to larger policy classes and optimize the weighting heuristics used in PHWIS.
Summary updated