A Simpler Alternative to Variational Regularized Counterfactual Risk Minimization

Hua Chang Bakker, Shashank Gupta, Harrie OosterhuisarXiv 2024 · DOI

Abstract

Off-policy learning (OPL) often relies on regularization to manage the variance inherent in training a target policy from logged data. Variance Regularized Counterfactual Risk Minimization (VRCRM) was proposed as a sophisticated solution using $f$-GANs to estimate divergence bounds. This paper demonstrates that a much simpler, direct sample-based approximation of $f$-divergence not only outperforms the complex adversarial approach but also provides greater stability and reveals significant reproducibility issues in the original VRCRM implementation.

Introduction

In off-policy learning, the goal is to optimize a target policy using data collected by a different logging policy. A major hurdle is the high variance that occurs when the target policy deviates significantly from the logging policy. To mitigate this, researchers have used $f$-divergence to regularize the target policy, keeping it "close" to the logging distribution.

VRCRM attempted to solve this by using an $f$-GAN to estimate a lower bound of the divergence. However, this adversarial setup—involving a minimax optimization between a discriminator and a generator—is notoriously difficult to tune and computationally intensive. We propose replacing this complex mechanism with a straightforward mathematical approximation.

Methods: From Adversarial Games to Direct Estimation

The core of our proposal is a shift from the "complex" $f$-GAN approach to a "simple" direct estimator.

  1. The $f$-GAN Approach (VRCRM): This involves a two-step optimization where a discriminator network attempts to distinguish between policies while the policy network (generator) tries to minimize the estimated divergence.
  2. Direct Sample-Based Approximation: We estimate the $f$-divergence by directly summing the squared ratios of the target policy probabilities over the logging policy probabilities across the logged actions. This converts a complex minimax problem into a standard optimization task that can be handled efficiently by the Adam optimizer.

Experimental Setup

We evaluated these methods using the Open Bandit Pipeline (OBP), generating synthetic datasets with varying complexity:

  • Synt-10-5, Synt-25-15, and Synt-50-25: These datasets represent environments with 10 to 50 actions and 5 to 25 context dimensions.
  • Rigorous evaluation was ensured through equal-sized training, validation, and testing splits.

Key Results and Insights

Divergence Minimization Performance

Our experiments show that the "Directly Estimated" method significantly outperforms both "Soft" and "Hard" $f$-GAN variants in mimicking the logging policy. As shown in Figure 1, the $f$-GAN-based policies consistently failed to reach the reward levels of the logging policy, whereas the direct estimation method scaled effectively with sample size.

Comparison of divergence minimization across synthetic datasets. The directly estimated method (light green) consistently outperforms f-GAN variants.

Multiclass Policy Performance

On the more complex Synt-25-15 dataset, the VRCRM policies actually performed worse than the original logging policy. In contrast, our simpler direct estimation method matched the performance of established baselines like Inverse Propensity Scoring (IPS) and Counterfactual Risk Minimization (CRM) without the overhead or instability of a GAN.

Performance comparison on the Synt-25-15 dataset. The proposed direct estimation method matches IPS performance while f-GAN variants lag behind.

Reproducibility and Complexity

A critical finding of this study was the inability to reproduce the original VRCRM results. Inspection of the original code revealed a bug where information leaked between optimization steps, likely inflating the reported performance. This highlights a broader trend: complexity in machine learning models does not always equate to better performance and can often mask underlying issues.

Conclusion

This work demonstrates that for policy regularization in OPL, simpler direct estimators are superior to complex adversarial methods. The direct approach is more stable, easier to implement, and scales better with data. Future research should investigate why $f$-GANs specifically struggle in this context and validate these findings on large-scale real-world production logs.

Summary updated

BibTeX
@misc{bakker2024simpler,
  author = {Hua Chang Bakker and Shashank Gupta and Harrie Oosterhuis},
  title = {{A Simpler Alternative to Variational Regularized Counterfactual Risk Minimization}},
  year = {2024},
  eprint = {2409.09819},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.09819},
}
Figure