Data-Efficient Policy Evaluation Through Behavior Policy Search

Josiah P. Hanna, Philip S. Thomas, Peter Stone, Scott Niekum

Introduction

Policy evaluation—the process of estimating the expected return of a target policy—is a fundamental component of reinforcement learning. Traditionally, this is performed "on-policy" using Monte Carlo methods, where the policy of interest is executed directly and its rewards are averaged. While unbiased, this approach often suffers from high variance, particularly in environments where high-reward events are infrequent or the state-action space is vast.

Conventional wisdom suggested that if the evaluation policy $\pi_e$ is available, it should be used for data collection. Off-policy methods like Importance Sampling (IS) were typically reserved for scenarios where $\pi_e$ was too costly or dangerous to deploy. This paper challenges that paradigm, demonstrating that a specifically optimized behavior policy $\pi_b$ can yield significantly more accurate estimates than the evaluation policy itself.

Behavior Policy Search (BPS)

The authors introduce Behavior Policy Search (BPS), a framework for finding a behavior policy that minimizes the Mean Squared Error (MSE) of the policy evaluation estimate. The core innovation is the Behavior Policy Gradient (BPG) theorem, which provides an analytic gradient of the IS estimator's MSE with respect to the parameters of the behavior policy.

The BPG algorithm iteratively updates the behavior policy using stochastic gradient descent. Conceptually, the update rule resembles the REINFORCE algorithm but utilizes the square of the importance-sampled return as a reinforcement signal. This encourages the behavior policy to over-sample trajectories that are rare under $\pi_e$ but have high-magnitude returns, effectively "seeking out" the most informative data points to reduce variance.

Experimental Performance

The effectiveness of BPG was evaluated across several benchmarks, including discrete gridworlds and continuous control tasks like Cart-pole and Acrobot.

Comparison of Mean Squared Error (MSE) between the BPG algorithm and standard Monte Carlo evaluation over iterations.

In discrete settings, BPG demonstrated a dramatic reduction in error. For a partially learned policy in a 4x4 Gridworld, BPG reduced the MSE by over 85% compared to standard Monte Carlo. The method also scales effectively to continuous domains. In the Acrobot task, where an agent must swing a two-link pendulum, BPG consistently maintained lower MSE than the on-policy baseline throughout the learning process.

MSE performance on the continuous Acrobot task, demonstrating BPG's scalability to complex control environments.

Key Insights

  1. The Divergence of Optimal Behavior: The optimal behavior policy for evaluation is rarely the evaluation policy itself. It prioritizes trajectories with high-magnitude returns, even if they are unlikely under the target policy.
  2. Active Data Collection: This approach transforms policy evaluation from a passive observation task into an active, optimized search for informative data.
  3. Model Integration: The framework extends to model-based estimators. By combining BPG with a Doubly Robust (DR) estimator, the authors achieved a 56.9% improvement over existing state-of-the-art methods in stochastic environments.

Limitations and Future Directions

While powerful, BPG is a gradient-based method and exhibits sensitivity to hyperparameters, particularly the step size. An inappropriate learning rate can lead to a behavior policy that performs worse than the baseline. Additionally, while BPG excels at reducing variance from policy stochasticity, its impact may be lessened in environments dominated by external transition noise.

Future research may explore applying BPS to biased estimators like Weighted Importance Sampling or integrating optimized evaluation directly into the policy improvement loop to accelerate the overall RL training process.

Summary updated

BibTeX
@inproceedings{hanna2017data,
  author = {Josiah P. Hanna and Philip S. Thomas and Peter Stone and Scott Niekum},
  title = {{Data-Efficient Policy Evaluation Through Behavior Policy Search}},
  booktitle = {International Conference on Machine Learning},
  year = {2017},
}
Figure