Policy Gradient with Active Importance Sampling
Matteo Papini, Giorgio Manganini, Alberto Maria Metelli, Marcello Restelli
TL;DR
The paper addresses high-variance off-policy policy gradient estimation by introducing Behavioral Policy Optimization (BPO), an active IS approach that learns the behavioral policy to minimize gradient estimator variance. It proposes a two-phase algorithm: (i) cross-entropy-based learning of a minimum-variance behavioral policy and (ii) off-policy policy gradient updates using defensive IS, with both theoretical (variance and convergence-rate) and practical (sample reuse) treatments. A key result is a convergence rate of $O(\epsilon^{-4})$ to a stationary point under KL-control and exponential-family policy assumptions, with potential improvements to $O(\epsilon^{-10/3})$ when residual variance is small. Empirical validation on LQ and Cartpole demonstrates substantial variance reduction and faster learning, supporting the practicality of active IS for policy optimization. The work advances variance-reduction techniques for policy gradients and sets the stage for extensions with SVRPG and deep architectures.
Abstract
Importance sampling (IS) represents a fundamental technique for a large surge of off-policy reinforcement learning approaches. Policy gradient (PG) methods, in particular, significantly benefit from IS, enabling the effective reuse of previously collected samples, thus increasing sample efficiency. However, classically, IS is employed in RL as a passive tool for re-weighting historical samples. However, the statistical community employs IS as an active tool combined with the use of behavioral distributions that allow the reduction of the estimate variance even below the sample mean one. In this paper, we focus on this second setting by addressing the behavioral policy optimization (BPO) problem. We look for the best behavioral policy from which to collect samples to reduce the policy gradient variance as much as possible. We provide an iterative algorithm that alternates between the cross-entropy estimation of the minimum-variance behavioral policy and the actual policy optimization, leveraging on defensive IS. We theoretically analyze such an algorithm, showing that it enjoys a convergence rate of order $O(ε^{-4})$ to a stationary point, but depending on a more convenient variance term w.r.t. standard PG methods. We then provide a practical version that is numerically validated, showing the advantages in the policy gradient estimation variance and on the learning speed.
