Clustered KL-barycenter design for policy evaluation

Simon Weissmann, Till Freihaut, Claire Vernade, Giorgia Ramponi, Leif DöringarXiv 2025 · DOI

Introduction

Evaluating a new strategy using data collected from a historical one—a process known as Off-Policy Evaluation (OPE)—is a fundamental challenge in machine learning. It is particularly critical in domains like recommendation systems and healthcare, where deploying untested policies in real-time can be costly or risky. The primary hurdle in OPE is the alignment between the "behavior policy" (the data collection strategy) and the "target policy" (the strategy being tested). When these policies diverge significantly, the resulting estimates become highly inaccurate.

In the paper "Clustered KL-barycenter design for policy evaluation," the authors propose a mathematically rigorous framework to optimize data collection by identifying the "center of gravity" of target policies. By utilizing the KL-barycenter and clustering techniques, they provide a method to minimize variance and improve sample efficiency in stochastic bandit environments.

The Problem: The Variance of Importance Sampling

In stochastic bandit problems, researchers often aim to evaluate a large set of target policies to identify the most effective one. This is typically achieved through Importance Sampling (IS), which re-weights historical data to approximate the performance of a new policy.

However, IS suffers from an "Achilles' heel": variance. If a target policy assigns high probability to an action that the behavior policy rarely explored, the importance weight for that action explodes. This leads to unreliable performance estimates. The challenge scales with the number of target policies; designing a single behavior policy that provides adequate "coverage" for hundreds or thousands of diverse targets is a non-trivial optimization problem.

Proposed Methodology

To address this, the researchers introduce two primary algorithmic approaches:

1. KL-PE (KL-based Policy Evaluation)

The authors demonstrate that the optimal behavior policy for minimizing the average Kullback-Leibler (KL) divergence across a set of target policies is the arithmetic mean of those policies. They define this as the KL-barycenter. This policy is computationally efficient and provides a theoretical guarantee that importance weights remain bounded, ensuring that no action required by the target policies is entirely neglected during data collection.

2. CKL-PE (Clustered KL-PE)

While a single KL-barycenter is effective for homogeneous policy sets, it can become overly "blurry" and inefficient if the target policies are highly diverse. CKL-PE introduces a clustering layer: target policies are grouped into $M$ clusters based on probabilistic similarity. Each cluster is then assigned its own dedicated KL-barycenter as a behavior policy.

To facilitate this, the authors employ Hellinger-based clustering. Because the square root of the Hellinger distance is a proper metric, standard algorithms like K-Means can be used to group policies effectively before calculating the respective barycenters for each group.

Experimental Evaluation

The methodology was evaluated using a synthetic 100-armed bandit environment:

  • Environment: Rewards followed a Gaussian distribution. The "best" arm featured a mean reward of 3, with rewards for the remaining 99 arms decaying linearly.
  • Target Policies: The researchers generated 1,000 softmax policies. These were structured into six distinct groups, each favoring a specific subset of arms to simulate real-world diversity.
  • Baselines: CKL-PE was compared against a single KL-barycenter (KL-PE) and a naive Monte Carlo approach where policies are tested in isolation.

Key Insights and Results

The "Sweet Spot" of Clustering

The research highlights a critical trade-off regarding the number of clusters ($M$). If $M$ is too small, the behavior policies lack the specificity needed to cover target policies efficiently. Conversely, if $M$ is too large, the total sample budget is spread too thin across too many behavior policies. In their 1,000-policy experiment, the authors identified $M=10$ as the "Goldilocks" zone that maximized performance.

Performance Gains

  • Sample Complexity: The authors proved that CKL-PE enhances sample efficiency whenever the reduction in policy mismatch (the maximum importance weight) outweighs the cost of partitioning the sample budget.
  • Regret Reduction: In numerical tests, CKL-PE with $M=10$ achieved significantly lower regret—the difference between the chosen policy's value and the true optimal value—compared to both the single-barycenter and Monte Carlo baselines.
  • Scalability: The framework proved robust when scaling to large policy sets, maintaining strong performance guarantees even with over 1,000 target policies.

Conclusion and Future Work

The Clustered KL-barycenter design offers a simple yet powerful tool for efficient policy evaluation. By focusing on the information-theoretic "center" of policy sets, it provides a safer and more efficient path for data collection in bandit settings.

Future research directions include extending this framework to continuous action spaces and contextual bandits, where policy decisions depend on state-specific information (e.g., user profiles). Additionally, the authors suggest that adaptive sample allocation—giving more resources to clusters that show early promise—could further accelerate the identification of optimal policies.

Summary updated

Abstract

In the context of stochastic bandit models, this article examines how to design sample-efficient behavior policies for the importance sampling evaluation of multiple target policies. From importance sampling theory, it is well established that sample efficiency is highly sensitive to the KL divergence between the target and importance sampling distributions. We first analyze a single behavior policy defined as the KL-barycenter of the target policies. Then, we refine this approach by clustering the target policies into groups with small KL divergences and assigning each cluster its own KL-barycenter as a behavior policy. This clustered KL-based policy evaluation (CKL-PE) algorithm provides a novel perspective on optimal policy selection. We prove upper bounds on the sample complexity of our method and demonstrate its effectiveness with numerical validation.
BibTeX
@misc{weissmann2025clustered,
  author = {Simon Weissmann and Till Freihaut and Claire Vernade and Giorgia Ramponi and Leif Döring},
  title = {{Clustered KL-barycenter design for policy evaluation}},
  year = {2025},
  eprint = {2503.02735},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.02735},
}
Figure