English

Reusing Trajectories in Policy Gradients Enables Fast Convergence

Machine Learning 2026-02-03 v2

Abstract

Policy gradient (PG) methods are a class of effective reinforcement learning algorithms, particularly when dealing with continuous control problems. They rely on fresh on-policy data, making them sample-inefficient and requiring O(ϵ2)O(\epsilon^{-2}) trajectories to reach an ϵ\epsilon-approximate stationary point. A common strategy to improve efficiency is to reuse information from past iterations, such as previous gradients or trajectories, leading to off-policy PG methods. While gradient reuse has received substantial attention, leading to improved rates up to O(ϵ3/2)O(\epsilon^{-3/2}), the reuse of past trajectories, although intuitive, remains largely unexplored from a theoretical perspective. In this work, we provide the first rigorous theoretical evidence that reusing past off-policy trajectories can significantly accelerate PG convergence. We propose RT-PG (Reusing Trajectories - Policy Gradient), a novel algorithm that leverages a power mean-corrected multiple importance weighting estimator to effectively combine on-policy and off-policy data coming from the most recent ω\omega iterations. Through a novel analysis, we prove that RT-PG achieves a sample complexity of O~(ϵ2ω1)\widetilde{O}(\epsilon^{-2}\omega^{-1}). When reusing all available past trajectories, this leads to a rate of O~(ϵ1)\widetilde{O}(\epsilon^{-1}), the best known one in the literature for PG methods. We further validate our approach empirically, demonstrating its effectiveness against baselines with state-of-the-art rates.

Keywords

Cite

@article{arxiv.2506.06178,
  title  = {Reusing Trajectories in Policy Gradients Enables Fast Convergence},
  author = {Alessandro Montenegro and Federico Mansutti and Marco Mussi and Matteo Papini and Alberto Maria Metelli},
  journal= {arXiv preprint arXiv:2506.06178},
  year   = {2026}
}
R2 v1 2026-07-01T03:03:46.084Z