Efficient Multi-Policy Evaluation for Reinforcement Learning

Shuze Daniel Liu, Claire Chen, Shangtong Zhang

Abstract

To unbiasedly evaluate multiple target policies, the dominant approach among RL practitioners is to run and evaluate each target policy separately. However, this evaluation method is far from efficient because samples are not shared across policies, and running target policies to evaluate themselves is actually not optimal. In this paper, we address these two weaknesses by designing a tailored behavior policy to reduce the variance of estimators across all target policies. Theoretically, we prove that executing this behavior policy with manyfold fewer samples outperforms on-policy evaluation on every target policy under characterized conditions. Empirically, we show our estimator has a substantially lower variance compared with previous best methods and achieves state-of-the-art performance in a broad range of environments.

Introduction

In Reinforcement Learning (RL), evaluating a set of "target policies" is a common requirement, particularly during model selection or hyperparameter tuning. The standard approach, on-policy evaluation, involves running each policy independently and averaging the results. This method is inherently inefficient as sample requirements scale linearly with the number of policies. In high-stakes or resource-intensive domains like robotics, such costs are often prohibitive.

Existing off-policy alternatives aimed at data reuse frequently suffer from restrictive assumptions or rely on impractical knowledge of state-visitation densities. This paper introduces a framework for Multi-Policy Evaluation (MPE) that overcomes these hurdles by designing a single, optimized behavior policy to collect data for all target policies simultaneously, achieving unbiased estimation with up to 90% fewer samples.

Methodology

The core innovation is the design of a tailored behavior policy ($\mu$) that minimizes the variance of estimators for all target policies at once. The authors derive an optimal sampling distribution where the behavior policy at any state and time is proportional to the square root of the weighted sum of the target policies' squared probabilities and their expected future rewards (Q-values):

$$\hat{\mu}_t(a|s) \propto \sqrt{\sum_{k=1}^K \pi_t^{(k)}(a|s)^2 \hat{q}_{\pi^{(k)},t}(s, a)}$$

Technical Implementation

  • Per-Decision Importance Sampling (PDIS): To maintain unbiased estimation, PDIS is used to reweight rewards collected by the behavior policy.
  • Offline Data Informed: A small amount of offline data is used to approximate the necessary Q-values ($\hat{q}$) before starting online data collection.
  • Similarity Metric: A formal metric is introduced to quantify target policy similarity. The authors prove that for sufficiently similar policies, the sample complexity for evaluating the entire set does not increase significantly with the number of policies.

Experimental Results

The MPE framework was evaluated on Gridworld environments and the MuJoCo physics engine benchmarks.

Gridworld Performance

In controlled Gridworld settings with 1,000 and 27,000 states, the MPE estimator demonstrated significant sample efficiency. It required approximately 87% fewer samples than on-policy Monte Carlo to achieve comparable accuracy.

Relative error vs. samples for Gridworld environments of different sizes.

MuJoCo Benchmarks

On continuous control tasks (Ant, Hopper, InvertedDoublePendulum, InvertedPendulum, and Walker), the method reduced variance to roughly 10% of the on-policy baseline. MPE consistently outperformed state-of-the-art methods like Offline Data Informed (ODI) and Shared-sample On-policy (SON), particularly when target policies were less similar.

Relative error across various MuJoCo continuous control tasks.

Discussion and Conclusion

The results highlight that data sharing is a powerful tool for RL evaluation. By finding an optimal "middle ground" behavior policy, a single trajectory can inform multiple target agents more effectively than running the agents themselves. Crucially, this method remains strictly unbiased, a vital property for high-stakes applications.

While the method relies on initial offline data for Q-value approximation, its performance remains robust even with imperfect data. Future work may explore extending this variance reduction framework to policy improvement, potentially accelerating RL training algorithms.

Summary updated

BibTeX
@inproceedings{liu2025efficient,
  author = {Shuze Daniel Liu and Claire Chen and Shangtong Zhang},
  title = {{Efficient Multi-Policy Evaluation for Reinforcement Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=lR5rXkh7OQ},
}
Figure