Clustering Context in Off-Policy Evaluation

Daniel Guzman Olivares, Philipp Schmidt, Jacek Golebiowski, Artur Bekasov

Abstract

Off-policy evaluation (OPE) leverages logged data to estimate the effectiveness of new policies in domains like e-commerce, search engines, and healthcare. However, the performance of baseline estimators like Inverse Propensity Scoring (IPS) deteriorates when the logging policy significantly differs from the evaluation policy, a condition known as "deficient support." This work proposes the CHIPS (Context-Huddling Inverse Propensity Score) estimator, which shares information across similar contexts using clustering. We characterize its theoretical bias and variance and demonstrate through synthetic and real-world experiments that clustering contexts significantly improves estimation accuracy, particularly in data-sparse and deficient information settings.

Introduction

In many real-world systems, evaluating a new policy without actual deployment is critical for safety and efficiency. This is the goal of Off-Policy Evaluation (OPE). The standard IPS estimator reweights observed rewards based on the logging policy's action probabilities. However, IPS relies on a "Common Support" assumption: the logging policy must have a non-zero probability for every action the evaluation policy might take. In practice, especially with large action spaces, this assumption is frequently violated, leading to high variance or bias. While previous methods have explored pooling information across similar actions, this paper identifies a significant opportunity in pooling information across similar contexts.

Methods

The proposed CHIPS estimator partitions the context space into clusters. Instead of calculating importance weights for individual context points, CHIPS calculates them for entire clusters. This approach relies on a "Common Cluster Support" assumption, which is weaker than the standard IPS requirement; it only requires that the logging policy has tried the new policy's actions somewhere within the cluster, rather than at every specific point.

Key components of the method include:

  • Clustering: Utilizing methods like Mini-Batch KMeans to group similar contexts.
  • Reward Estimation: The authors compare a Maximum Likelihood (ML) approach (simple cluster averaging) with a Maximum A Posteriori (MAP) Bayesian approach. The MAP estimator proves more robust when the reward function is misspecified within a cluster.
  • Theoretical Analysis: Formal proofs show that CHIPS can remain unbiased under "Reward Homogeneity" even in scenarios where IPS fails due to lack of support.

Experimental Setup

The researchers evaluated CHIPS using three distinct environments:

  1. Synthetic Datasets: A controlled environment to measure sensitivity to distributional shift ($\beta$) and the number of "deficient actions" (actions never seen in logs).
  2. Open Bandit Dataset (OBD): A large-scale real-world dataset from the Japanese fashion platform ZOZOTOWN.
  3. Classification Benchmarks: UCI datasets, MNIST, and CIFAR-100 transformed into contextual bandit problems to test hyperparameter robustness.

Results and Insights

Experimental results confirm that clustering contexts is particularly effective in deficient information settings where the logging policy differs significantly from the evaluation policy.

Performance of CHIPS across varying cluster counts, policy shifts (beta), and deficient actions.

The V-Shaped Error Curve

As shown in the left panel of the figure above, performance is highly sensitive to the number of clusters. A "V-shaped" error curve emerges: too few clusters oversimplify the reward structure (high bias), while too many clusters cause the estimator to behave like standard IPS (high variance). Finding the optimal "sweet spot" is critical for performance.

Robustness to Deficient Support

In synthetic tests with 200 actions, CHIPS maintained low error even as the number of deficient actions increased. In contrast, traditional baselines like IPS, DR, and SNIPS saw their error explode as support vanished (right panel of the figure above). On the real-world Open Bandit Dataset, CHIPS (ML) outperformed the state-of-the-art MIPS estimator by +11% in accuracy.

Statistical Superiority

Cumulative distribution plots of MSE ratios demonstrate that CHIPS consistently achieves lower error than IPS across a wide range of scenarios. The MAP estimator acts as a regularizer, providing resistance against noise when rewards are not perfectly homogeneous within a cluster.

Cumulative distribution of the ratio of CHIPS MSE to IPS MSE for 100,000 samples.

Limitations and Future Work

CHIPS' performance depends on hyperparameter selection, specifically the number of clusters and the Bayesian prior parameters. It is also reliant on the quality of the underlying clustering algorithm; noisy context features can diminish its advantage. A promising future direction is "double pooling"—combining CHIPS with action-pooling methods like MIPS to share information across both similar contexts and similar actions simultaneously.

Summary updated

BibTeX
@inproceedings{olivares2025clustering,
  author = {Daniel Guzman Olivares and Philipp Schmidt and Jacek Golebiowski and Artur Bekasov},
  title = {{Clustering Context in Off-Policy Evaluation}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=HhhPwHNk6u},
}
Figure