When Do Off-Policy and On-Policy Policy Gradient Methods Align?
Davide Mambelli, Stephan Bongers, Onno Zoeter, Matthijs T. J. Spaan, Frans A. Oliehoek
TL;DR
This work analyzes when off-policy policy gradient methods that optimize the excursion objective align with the true on-policy deployment performance. By linking state visitation, stationary distributions, and discounted rewards, the authors prove that for finite-state irreducible and aperiodic Markov chains, the excursion and on-policy objectives converge as the discount factor $\gamma$ approaches 1, and they provide explicit bounds on the gradient mismatch. Theoretical results are complemented by empirical validation on a simple two-state MDP and offline policy ranking experiments in DeepMind Control Suite, demonstrating that larger $\gamma$ improves alignment but that misalignment can persist in some continuous-control environments. The findings offer practical guidance for using excursion-based off-policy methods, highlighting when they reliably reflect deployment performance and how to trade off alignment with convergence speed in policy optimization.
Abstract
Policy gradient methods are widely adopted reinforcement learning algorithms for tasks with continuous action spaces. These methods succeeded in many application domains, however, because of their notorious sample inefficiency their use remains limited to problems where fast and accurate simulations are available. A common way to improve sample efficiency is to modify their objective function to be computable from off-policy samples without importance sampling. A well-established off-policy objective is the excursion objective. This work studies the difference between the excursion objective and the traditional on-policy objective, which we refer to as the on-off gap. We provide the first theoretical analysis showing conditions to reduce the on-off gap while establishing empirical evidence of shortfalls arising when these conditions are not met.
