Efficient Multi-Policy Evaluation for Reinforcement Learning

Shuze Daniel Liu, Yuxin Chen, Shangtong Zhang · DOI

Evaluating a single reinforcement learning (RL) policy is computationally demanding. When researchers or engineers need to evaluate dozens of policies—for instance, during model selection or hyperparameter tuning—the data requirements often become prohibitive. Standard on-policy evaluation scales linearly with the number of policies, requiring fresh data for every new candidate.

In a recent study, researchers from the University of Virginia introduced the Multi-Policy Evaluation (MPE) algorithm. This method enables the simultaneous evaluation of multiple target policies by designing a "tailored behavior policy" optimized to collect data that benefits the entire group, drastically reducing the total sample complexity.

The Challenge of Multi-Policy Evaluation

The "gold standard" for policy evaluation is on-policy Monte Carlo (MC) estimation: running each policy in the environment and averaging the returns. However, this is inefficient for large sets of policies. While off-policy evaluation (OPE) allows reusing data from one policy to evaluate another, standard OPE techniques often suffer from high variance when applied to many target policies simultaneously. Naive data pooling—simply combining samples from different policies—frequently performs worse than standard on-policy evaluation because the data distribution is not optimized for the target set.

The MPE Algorithm: Tailored Data Collection

The core innovation of MPE is the active design of a behavior policy ($\hat{\mu}$) specifically for online data collection. Instead of using a generic or random policy, MPE solves an optimization problem to find the behavior policy that minimizes the total variance across all $K$ target policies.

The authors derived a closed-form solution for this optimal behavior policy. At any given state $s$ and time $t$, the probability of taking action $a$ is: $$\hat{\mu}_t(a|s) \propto \sqrt{\sum_{k=1}^K \pi_t^{(k)}(a|s)^2 \hat{q}_{\pi^{(k)},t}(s, a)}$$ This formula reveals that the optimal behavior policy prioritizes actions that are both important to the target policies ($\pi^{(k)}$) and have high future uncertainty, represented by the estimated $q$-values ($\hat{q}$).

To implement this, MPE uses a two-phase approach:

  1. Offline Phase: A small initial dataset is used to approximate the $q$-values for each target policy (e.g., via Fitted Q-Evaluation).
  2. Online Phase: The environment is rolled out using the tailored behavior policy $\hat{\mu}$. The collected data is then processed using Per-Decision Importance Sampling (PDIS) to produce unbiased estimates for all target policies.

Empirical Performance

The researchers benchmarked MPE against several baselines, including on-policy MC and Offline Data Informed (ODI) estimators, across discrete and continuous environments.

Gridworld Benchmarks

In Gridworld environments with 1,000 and 27,000 states, MPE demonstrated superior sample efficiency. As shown in Figure 1, the relative error of the MPE estimator (labeled "Ours") drops significantly faster than all other methods.

Relative error vs. samples for Gridworld environments of different sizes. MPE consistently achieves lower error with fewer samples.

MuJoCo Continuous Control

The method's scalability was further tested on the MuJoCo suite, including complex tasks like Ant and Walker. Across all five environments, MPE reduced variance to approximately 10% of the on-policy baseline.

Performance comparison across the MuJoCo benchmark suite. MPE (blue) outperforms baselines in all tasks, demonstrating robust variance reduction in continuous action spaces.

Key Insights and Scalability

A significant theoretical contribution of the paper is the introduction of a similarity metric, $\eta$, for target policies. The authors prove that if the target policies are sufficiently similar, the number of samples required for evaluation does not need to scale linearly with the number of policies ($K$). This suggests that MPE is uniquely suited for evaluating "snapshots" of a policy during training, where successive versions are highly correlated.

Conclusion and Future Directions

MPE offers a powerful framework for efficient RL evaluation, achieving up to a 90% reduction in sample requirements compared to standard methods. While the current approach requires an initial offline dataset for $q$-value estimation, it sets a new state-of-the-art for multi-policy assessment. Future work may extend these variance-reduction principles directly into the policy improvement phase, potentially leading to more sample-efficient RL training algorithms.

Summary updated

BibTeX
@inproceedings{liu2025efficient,
  author = {Shuze Daniel Liu and Yuxin 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