Importance-Weighted Offline Learning Done Right

Germano Gabbianelli, Gergely Neu, Matteo Papini

Abstract

We study the problem of offline policy optimization in stochastic contextual bandit problems, where the goal is to learn a near-optimal policy based on a dataset of decision data collected by a suboptimal behavior policy. Rather than making any structural assumptions on the reward function, we assume access to a given policy class and aim to compete with the best comparator policy within this class. In this setting, a standard approach is to compute importance-weighted estimators of the value of each policy, and select a policy that minimizes the estimated value up to a “pessimistic” adjustment subtracted from the estimates to reduce their random fluctuations. In this paper, we show that a simple alternative approach based on the “implicit exploration” estimator of Neu (2015) yields performance guarantees that are superior in nearly all possible terms to all previous results. Most notably, we remove an extremely restrictive “uniform coverage” assumption made in all previous works. These improvements are made possible by the observation that the upper and lower tails importance-weighted estimators behave very differently from each other, and their careful control can massively improve on previous results that were all based on symmetric two-sided concentration inequalities. We also extend our results to infinite policy classes in a PAC-Bayesian fashion, and showcase the robustness of our algorithm to the choice of hyper-parameters by means of numerical simulations.

Introduction

Offline Policy Optimization (OPO) is a critical task in domains where real-time experimentation is costly or unethical, such as healthcare, personalized medicine, and large-scale recommendation systems. In these settings, we aim to learn an optimal decision-making policy using only historical data collected by a potentially suboptimal "behavior policy."

The standard approach to OPO involves Importance Weighting (IW), which reweights historical rewards to estimate the performance of a candidate policy. However, IW estimators are notoriously high-variance. If the behavior policy rarely selects an action that the candidate policy prefers, the importance weights can explode, leading to unstable estimates. To mitigate this, previous research has relied on "pessimistic" adjustments—subtracting a penalty from the reward estimates to account for uncertainty. However, the theoretical guarantees for these methods have historically depended on a "uniform coverage" assumption: the requirement that the behavior policy must have a non-zero probability of selecting every possible action in every context. In practice, this assumption is frequently violated, as human experts or legacy algorithms often ignore certain actions entirely.

The PIWO-IX Framework

This paper introduces PIWO-IX (Pessimistic Importance-Weighted Offline learning with Implicit eXploration), a novel approach that replaces standard pessimistic estimators with the Implicit eXploration (IX) estimator. Originally proposed for online learning, the IX estimator adds a small positive hyperparameter $\gamma$ to the denominator of the importance weight.

This simple modification achieves two goals simultaneously:

  1. Implicit Pessimism: By increasing the denominator, the IX estimator naturally biases reward estimates toward zero. This provides a form of "pessimism" that penalizes actions with low coverage without requiring the complex, explicit regularization terms used in prior work.
  2. Variance Reduction: The $\gamma$ term caps the maximum possible weight, preventing the estimator from exploding even when the behavior policy's probability for an action is near zero.

Furthermore, PIWO-IX is oracle-efficient. The optimization problem can be reduced to a single call to a cost-sensitive classification (CSC) solver, allowing practitioners to leverage existing supervised learning infrastructure for complex reinforcement learning tasks. The authors also provide a PAC-Bayesian extension, allowing the method to generalize to infinite policy classes by utilizing prior distributions over policies.

Theoretical Breakthroughs: Tail Asymmetry and Smoothed Coverage

The core theoretical insight of this work lies in the observation of tail asymmetry in importance-weighted estimators. Standard approaches often use symmetric concentration inequalities (like Bernstein’s inequality) to bound the error of reward estimates. However, because rewards are non-negative, the lower tail (the probability of underestimating the reward) is significantly lighter and easier to control than the upper tail (the probability of overestimating).

By focusing on the lower tail, the authors derive regret bounds that do not require the restrictive uniform coverage assumption. Instead, they introduce the smoothed coverage ratio $C_\gamma(\pi)$. Unlike traditional coverage metrics that approach infinity as the behavior policy's probability approaches zero, $C_\gamma$ remains well-behaved. This allows for performance guarantees that scale with the "overlap" between the target policy and the available data, rather than the global properties of the behavior policy.

Empirical Results

The authors validated PIWO-IX using the Letter dataset (OpenML ID 247). This dataset consists of 16 features representing handwritten letters, with 26 possible actions (predicting the correct letter). The classification task was converted into a contextual bandit problem by simulating rewards (1 for correct, random values for others).

The experiments compared PIWO-IX against state-of-the-art methods like PIWO-PL across 20 different behavior policies with varying degrees of determinism. The results demonstrated that PIWO-IX is exceptionally robust to hyperparameter selection. While competing methods often failed catastrophically when the behavior policy became nearly deterministic (with action probabilities as low as $10^{-100}$), PIWO-IX maintained stable and high performance. This robustness suggests that the IX estimator's built-in regularization is more effective than explicit pessimistic penalties in practical, data-constrained scenarios.

Conclusion and Future Directions

By leveraging the IX estimator and recognizing the asymmetric nature of reward estimation tails, this work provides a more robust and theoretically sound foundation for offline policy optimization. The removal of the uniform coverage requirement bridges the gap between theoretical OPO and real-world applications where data is often "skinny" or incomplete.

Future work may explore computational-statistical tradeoffs more deeply, particularly in scenarios where the coverage ratio is unknown. Additionally, extending these results to adaptive data collection settings—where the behavior policy changes over time—remains an open and promising area of research.

Summary updated

BibTeX
@inproceedings{gabbianelli2024importance,
  author = {Germano Gabbianelli and Gergely Neu and Matteo Papini},
  title = {{Importance-Weighted Offline Learning Done Right}},
  booktitle = {ALT},
  year = {2024},
  url = {https://openreview.net/forum?id=jeRLEP9K78},
}
Figure