arXiv:2610.01399cs.LGOct 2026

Manuscript Offprint

arXiv:2610.01399

Reusing Past Samples in Proximal Policy Optimization: When and How Does It Help?

Alessandro Montenegro, Riccardo Venturelli, Marco Mussi, Matteo Papini, Alberto Maria Metelli

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Alessandro Montenegro

Politecnico di Milano, Milan, Italy

alessandro.montenegro@polimi.it

Marco Mussi

Politecnico di Milano, Milan, Italy

marco.mussi@polimi.it

Riccardo Venturelli

Politecnico di Milano, Milan, Italy

riccardo.venturelli@polimi.it

Matteo Papini

Università degli Studi di Milano, Milan, Italy

matteo.papini@unimi.it

Alberto Maria Metelli

Politecnico di Milano, Milan, Italy

albertomaria.metelli@polimi.it

Abstract

Among on-policy deep reinforcement learning methods, Proximal Policy Optimization (PPO) has become the de facto standard, due to its consistently strong empirical performance across diverse application domains. However, on-policy methods are inherently sample inefficient: fresh data collected under the current policy is used for just a few updates before being discarded. Off-policy methods avoid this inefficiency via experience replay, achieving notable sample efficiency gains, but at the cost of training instabilities or extensive tuning. This motivated the rise of hybrid strategies that augment PPO with off-policy data reuse. Existing sample-reuse variants of PPO demonstrated improved sample efficiency over vanilla PPO, yet a systematic study of when reuse helps, in which scenarios, and to what extent remains missing. In this work, we study the effectiveness of sample reuse in PPO by instantiating two variants within a multiple importance weighting framework. Both retain the core PPO mechanics, reusing only samples from a window of recent iterations, thereby isolating the effect of data reuse from other factors. The variants, termed ω\omegaPPO-U and ω\omegaPPO-BH, employ vanilla importance weights or balance-heuristic-corrected ones, respectively. For both, we derive policy improvement lower bounds providing theoretical grounding for their respective losses. We use them to empirically study when and how data reuse improves sample efficiency or final performance of PPO across continuous control tasks.

1 Introduction

Within reinforcement learning [RL, 55] approaches, policy optimization [PO, 9] methods have proved to be highly effective for solving complex, large-scale sequential decision-making problems, both in simulated [11] and real-world [7, 32, 59] environments. Their success is attributable to several desirable properties: applicability to continuous settings [43], robustness to noise [18], resilience to partial observability [5], and possibility of incorporating the expert domain knowledge during the policy design phase [17]. Taken together, these properties have established PO as the dominant paradigm for continuous control, robot locomotion, and complex simulated tasks.

A key distinction among PO methods is between off-policy and on-policy approaches. Off-policy methods require an RL agent to update its target policy using interaction data collected under a Preprint.

different behavioral policy, including data gathered across multiple past policies. Notable representatives of this family include SAC [21], DDPG [29], and TD3 [16]. These methods are known for their sample efficiency, as they can store and reuse past experience via a replay buffer, and often achieve strong final performance. However, they tend to be computationally intensive, frequently requiring careful implementation choices and extensive tuning. On-policy methods, by contrast, restrict updates to fresh interaction data collected under the current target policy, discarding those samples after one or a few gradient steps. This family includes REINFORCE [64], GPOMDP [6], TRPO [50], PPO [52], POIS [34], and GRPO [53]. By construction, on-policy methods offer stable training dynamics and admit meaningful theoretical guarantees, ranging from convergence results [68, 15] to policy improvement bounds [23, 44, 1]. Their main drawback, however, is poor sample efficiency: each collected trajectory contributes to only a single round of updates before being discarded. 1^{1}

Given the sample efficiency of off-policy methods and the stability and theoretical foundations of on-policy ones, an active research direction pursues methods that exhibit the best of both worlds. Most efforts have focused on augmenting on-policy methods with off-policy data [20, 40, 14], enabling the reuse of samples collected under past policies. This is commonly achieved via importance weighting [37], a technique that corrects for the distributional mismatch between the behavioral and target policies by reweighting samples by the ratio of their likelihoods under the two policies. Since these weights can exhibit high variance when the two policies are dissimilar, some corrections have been proposed to make their use more reliable, including the balance heuristic [BH, 58, 35] estimator. In the context of policy gradient methods [43], substantial work has analyzed whether reusing either past gradients [40, 65, 67, 39] or past trajectories [42, 30, 36] can yield faster convergence rates, with affirmative results in both cases, that, however, remain tied to theoretical settings.

These findings have motivated the investigation of similar gains in practical deep on-policy algorithms [63, 19, 20, 14]. Much of this effort has concentrated on PPO, which has become the de facto standard deep on-policy method thanks to its strong empirical performance across application domains ranging from robot locomotion [27, 7, 32, 59] to LLM fine-tuning [62, 66]. This success has, in turn, motivated deep investigation of PPO from multiple standpoints, including theoretical convergence guarantees [22, 10], implementation best practices [12, 4, 24], and algorithmic variants [60, 61, 54, 8]. Among the latter, several works have specifically targeted the incorporation of off-policy data into PPO. Queeney et al. [46] derive an off-policy policy improvement lower bound from the performance difference lemma [23], proposing GePPO, a PPO variant that reuses data from a window of recent iterations. GePPO requires re-evaluating advantages on past samples via V-Trace [13], incurring additional computation, and employs a modified clipping mechanism together with an adaptive learning rate based on the total variation between the current and behavioral policies. Zhao et al. [69] propose SARD-PPO, a sample reuse PPO variant that adaptively discards samples and re-evaluates past data under the current critic, employing a modified dual clipping mechanism. Liang et al. [28] incorporate prioritized experience replay [49] into PPO, proposing PTR-PPO and studying different priority assignment strategies. Meng et al. [33] introduce Off-Policy PPO, which also requires re-evaluating past trajectories under the current critic to obtain fresh advantage estimates, alongside a heuristic clipping mechanism. Recently, Liu et al. [31] proposed HP30, a sample reuse PPO variant maintaining a FIFO trajectory replay buffer, re-evaluates past samples under the current critic, and retains the best-performing trajectory in each optimization batch. Finally, Lin et al. [30] provide an initial experimental exploration of RPPO, a PPO variant that reuses samples from recent policies without re-evaluating advantages under the new critic. All these methods confirm both the ongoing research interest in PPO and the practical benefits of past-data reuse. However, most approaches require re-evaluation of stored samples under the current critic, rely on heuristics or modified clipping mechanisms, and are presented as standalone methods with tuned configurations rather than as controlled studies of the reuse mechanism itself. To the best of our knowledge, a systematic investigation of when, how, and why data reuse in PPO is beneficial remains unaddressed.

Original Contribution. In this paper, we aim to conduct a controlled study of the effects of sample reuse in PPO. To preserve the core functioning of PPO and isolate the effect of data reuse from other factors, we consider the incorporation of past collected data within the standard multiple importance weighting [MIW, 38, 35] framework. This amounts to the simplest possible form of sample reuse

1^{1}The distinction between on-policy and off-policy methods is a spectrum rather than strictly binary. Methods such as PPO and POIS perform multiple gradient steps on a fixed batch, introducing a mild distributional shift between the behavioral and target policies within each update cycle. Nevertheless, these methods are conventionally classified as on-policy, since the collected data is discarded at the end of each iteration and never reused across policy updates.

for PPO: augmenting its on-policy dataset by retaining data collected over a window of the ω\omega most recent iterations, optionally correcting the vanilla importance weights [IWs, 38]. Specifically, our main contributions can be summarized as follows:

• Uniform Sample Reuse. We study the straightforward MIW instantiation of PPO, which we term ω\omegaPPO-U. Similarly to [30], it uniformly weights all samples in the composite dataset using vanilla IWs between the target and behavioral policies, and employs advantage estimates computed under the critic available at collection time. To ground this approach, we derive a policy improvement lower bound that accounts for stale advantages. Beyond validating the ω\omegaPPO-U loss, the bound reveals a penalty term independent of the optimization variable, which therefore cannot be controlled by actor updates, suggesting that the policies within the considered window should be close (Section 3.1).

• BH-Corrected Sample Reuse. Motivated by the usual inefficiency of uniform weighting in MIW, we additionally study a PPO instantiation employing BH-corrected IWs, which we term ω\omegaPPO-BH. This consists of weighting each sample via the ratio between the target policy and the uniform mixture of behavioral policies in the window. ω\omegaPPO-BH inherits all properties of ω\omegaPPO-U and is similarly grounded by a policy improvement lower bound, whose uncontrollable penalty terms are non-decreasing in ω\omega, reinforcing the recommendation for keeping the policies within the window close (Section 3.2).

• Systematic Empirical Study. We compare ω\omegaPPO-U and ω\omegaPPO-BH with standard PPO on MuJoCo [57] tasks under controlled settings that vary how updates and data collection are matched between methods. We study whether reuse helps convergence speed, final performance, or both, whether the benefit grows indefinitely with larger windows, and when excessive reuse becomes harmful. Finally, we study the differences between the two considered weightings (Section 4). Proofs, experimental details, and additional experiments are in Appendices B, C, and D, respectively.

References (62)