NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Hyperparameter Optimization Can Even Be Harmful in Off-Policy Learning and How to Deal with It

Yuta Saito, Masahiro Nomura

Abstract

In Off-Policy Learning (OPL), hyperparameter optimization (HPO) is essential for selecting high-performing policies from logged data. However, standard HPO approaches often fail by aggressively pursuing "optimistic" errors in performance estimators, leading to the selection of policies that perform worse than the original baseline. This paper identifies the "Winner's Curse" in OPL and introduces CIR-HPO (Conservative and Imitation-Regularized HPO). By utilizing conservative lower-bound estimates and adaptive imitation regularization, CIR-HPO ensures that policy tuning leads to safer and more robust real-world performance improvements without significant computational overhead.

Introduction

Off-Policy Learning (OPL) is a critical framework for domains where live experimentation is risky or expensive, such as personalized medicine or large-scale recommender systems. In these scenarios, we must learn and evaluate new strategies using historical logs generated by a previous "logging policy." To identify the optimal policy, researchers typically employ Hyperparameter Optimization (HPO) guided by off-policy estimators like Inverse Propensity Scoring (IPS).

While HPO is a standard tool in supervised learning, this paper demonstrates that it can be actively harmful in OPL. The authors identify two primary failure modes: Optimistic Bias and Unsafe Behavior. Because estimators naturally possess variance, an HPO algorithm will gravitate toward hyperparameter configurations where the estimator overestimates performance—effectively picking "lucky" winners that fail in production.

The "Winner's Curse" of Estimators

An unbiased estimator is only unbiased on average. When an optimizer (such as Tree-structured Parzen Estimator or Random Search) evaluates hundreds of trials, it inherently selects the trial with the highest estimated value. In OPL, the distribution of overestimation bias is often heavy-tailed, meaning the optimizer is likely to get trapped in "fake" peaks caused by estimation error rather than true policy quality.

Figure 2: Distribution of overestimation bias for Random Search and TPE, illustrating how adaptive HPO algorithms gravitate toward optimistic errors.

As shown in Figure 2, advanced HPO methods like TPE exhibit a wider, more positive tail in overestimation bias compared to Random Search. This confirms that more "efficient" search algorithms are actually more prone to the Winner's Curse in the presence of estimator variance.

Methods: Introducing CIR-HPO

To mitigate these risks, the authors propose CIR-HPO, which introduces two safety mechanisms into the standard HPO pipeline:

  1. Conservative Surrogate Objective (CSO): Instead of maximizing the raw estimated performance, CIR-HPO maximizes a lower confidence bound. By assuming a Student’s t-distribution for the rewards, the algorithm penalizes hyperparameter sets with high uncertainty. This shifts the search toward "solid" gains rather than risky, high-variance peaks.
  2. Adaptive Imitation Regularization (AIR): This mechanism acts as a safety net. It creates a mixture between the new candidate policy and the original logging policy. Using a sequence of t-tests, the algorithm determines if the logging policy is outperforming the new candidates. If the new policy appears unsafe, AIR automatically increases the "imitation" weight, pulling the model back toward the known baseline.

Experimental Results

The researchers evaluated CIR-HPO using both synthetic data (via OpenBanditPipeline) and real-world data from the Open Bandit Dataset (fashion e-commerce logs). A key finding was that when the logging policy was already near-optimal, standard HPO often "collapsed," producing policies significantly worse than the starting point.

Figure 4: Comparison of CIR-HPO and Baseline performance across different logging policy qualities (β₀), demonstrating CIR-HPO's ability to prevent performance collapse.

As illustrated in Figure 4, while the baseline performance drops sharply when the logging policy is strong (high β₀), CIR-HPO remains stable and maintains performance near or above the baseline. In ablation studies, the AIR component alone provided a 23.6% improvement in final generalization performance compared to versions without it.

Conclusion and Future Work

CIR-HPO provides a "drop-in" replacement for existing HPO workflows, offering safety and stability without requiring expensive cross-validation or bootstrapping. While the current work focuses on Contextual Bandits (one-step decisions), the authors note that extending these corrections to full Reinforcement Learning (multi-step sequences) is a necessary next step, as variance issues in RL are even more pronounced. By acknowledging that HPO can be harmful, practitioners can adopt more conservative, imitation-aware strategies to ensure that "optimization" truly leads to better outcomes.

Summary updated

BibTeX
@inproceedings{saito2024hyperparameter,
  author = {Yuta Saito and Masahiro Nomura},
  title = {{Hyperparameter Optimization Can Even Be Harmful in Off-Policy Learning and How to Deal with It}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
}
Figure