Manuscript Offprint
arXiv:2610.01399Reusing Past Samples in Proximal Policy Optimization: When and How Does It Help?
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
Riccardo Venturelli
Politecnico di Milano, Milan, Italy
Matteo Papini
Università degli Studi di Milano, Milan, Italy
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 PPO-U and PPO-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.
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
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 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 PPO-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 PPO-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 PPO-BH. This consists of weighting each sample via the ratio between the target policy and the uniform mixture of behavioral policies in the window. PPO-BH inherits all properties of PPO-U and is similarly grounded by a policy improvement lower bound, whose uncontrollable penalty terms are non-decreasing in , reinforcing the recommendation for keeping the policies within the window close (Section 3.2).
• Systematic Empirical Study. We compare PPO-U and PPO-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.
Markov Decision Processes. A Markov Decision Process [MDP, 45] is represented by , where and are the measurable state and action spaces; is the transition model, where is the probability density of landing in state by playing action in state ; is the reward function, where is the reward the agent gets when playing action in state ; is the initial-state distribution; is the discount factor. A trajectory of length is a sequence of state-action pairs. We denote by the set of all trajectories. The discounted return of a trajectory is given by .
Policy Optimization. We consider parametric stochastic policies with parameters . The policy is used to sample actions at each interaction instant as , where is the state observed at time . The performance of a policy is assessed via the expected return , defined as:
where, with an abuse of notation, the expectation is taken over , the -discounted state occupancy under , which is not a proper probability distribution. Moreover, the -discounted state-action occupancy under is defined as , for every and . Two additional performance indices are the value function and the action-value function , defined respectively as: and . The goal of PO is to find .
Trust Region Methods and Proximal Policy Optimization. To learn in an on-policy fashion, one can either follow the policy gradient theorem [56] or one can build surrogate losses allowing for
We allow only when .
using multiple times the same collected data while constraining the target policy to remain inside a trust region, meaning that the target policy is kept near the behavioral one, ensuring the sampled data remain trustworthy. This approach is grounded in the following policy improvement lower bound [1]:
where is the advantage function, is the importance weight [IW, 37], and . The bound reveals that the closer and are in TV, the tighter the bound. TRPO [50] operationalizes this by maximizing the importance-weighted surrogate subject to a KL constraint, at the cost of requiring second-order information in practice. PPO [52] replaces this constraint with a clipping heuristic, optimizing:
where clip. In practice, this loss is approximated using a parameterized critic with parameters . The policy is used to collect a dataset of transitions , where is the number of samples, is estimated via generalized advantage estimation [GAE, 51], and . The surrogate is then approximated as and the critic is fitted via mean squared error minimization over . Further details on the practical functioning of PPO are deferred to Appendix A.
Multiple Importance Weighting. Let be a random variable and let be a function. Consider the goal of estimating the expected value of under a target distribution , but only having samples coming from behavioral distributions . Specifically, for each consider to have access to a dataset of independent samples drawn from . Assuming for every that ( is absolutely continuous w.r.t. ), the multiple importance weighting (MIW) estimator of the expected value of can be written as [38]:
where the coefficients are a partition of the unit, i.e., for every and we have that and . Notice that is unbiased. Among the choices for the coefficients the most simple but inefficient choice is the uniform weighting, meaning for each and we select , thus giving equal weight to all the samples [35]. Among the various choices for such coefficients, the most studied one is the balance heuristic [BH, 58], provably nearly optimal in terms of variance within the class of MIW estimators. The BH prescribes to select the weights as: , leading to the following unbiased estimator:
that, whenever , makes the BH-corrected ratio bounded by .
3 Sample Reuse in PPO
In this section, we first revisit the functioning of PPO and the data reuse mechanism already implicit in its design. We then instantiate two PPO variants within a MIW framework [38, 35] that incorporate past collected data from a window of at most recent iterations, without re-evaluating the advantage signals under the current critic. The first, PPO-U, employs uniform weighting across the window; the second, PPO-BH, applies a BH [58] correction to the IWs. For both, we derive a policy improvement lower bound that accounts for stale advantages: beyond providing theoretical grounding for the losses optimized by the reuse variants, the bounds reveal penalty terms independent of the optimization variable, suggesting that the policies in the reuse window should remain close to each other, while the target policy should remain close to the behavioral ones.
Native PPO's Sample Reuse. PPO already incorporates a form of sample reuse. However, this is limited in two ways: (i) it only considers data collected under the same policy, and (ii) it only considers data from the most recent behavior policy. Specifically, at iteration , policy and critic are used to build dataset by interacting with the environment for steps, so that . For epochs, is shuffled and divided into mini-batches of size , each used to perform one update of both actor and critic. After performing updates, is discarded.
Cross-Iteration Sample Reuse Framework. As highlighted above, one of the causes of PPO's sample inefficiency lies in the fact that the dataset is discarded after a few updates. Instead, past samples could be retained and reused in future iterations, increasing sample efficiency as done in related work [46, 33, 69, 31]. Specifically, suppose we have access to a window of recent iterations, where is the maximum window size. When updating the actor and critic, we consider the composite dataset , which we shuffle and from which we sample mini-batches, equally representing all the iterations in the window. We assume each policy performs interaction steps with the environment, so that all the datasets will have the same cardinality, i.e., for every and . Moreover, for each let , where and are obtained with the critic available at iteration . The key difference with respect to the native PPO reuse is that the data buffer now contains samples from multiple behavioral policies rather than from a single, most recent one. Next, we discuss two MIW instantiations of PPO for exploiting .
3.1 Cross-Iteration Uniform Sample Reuse in PPO
Within the described reuse framework, the simplest form of reuse consists of uniformly weighting all the samples in . While uniform weighting is known to be inefficient in MIW frameworks [38, 35], it may nevertheless be meaningful in the PPO setting, where the clipping mechanism already limits the contribution of samples far from the target policy. A first empirical hint of this approach is discussed in [30]. We refer to the PPO variant employing this weighting scheme as PPO-U, whose empirical loss is:
where is the target actor parameter vector. Some comments are in order. First, in line with our goal of preserving the core PPO functioning, we deliberately use stale advantages, i.e., advantage estimates computed at data collection time under the critic available at that iteration, rather than re-evaluating past samples under the most recent critic [e.g., 46, 33, 69], a practice typically carried out via V-Trace [13] and incurring additional computation. Second, without re-evaluating past data under the current critic, updating the critic on stale returns from distant iterations would mean to update the critic on increasingly stale values, especially for large and values. We therefore restrict critic updates to the most recent dataset only, using past samples exclusively to produce additional actor updates. Third, this loss can be easily employed in mini-batch stochastic gradient ascent as soon as each mini-batch equally represents the full dataset , meaning that each window of reuse should have the same amount of data inside each mini-batch.
Now, we show a policy improvement lower bound providing the theoretical grounding for .
Theorem 3.1. Let . Having access to , for any target , the following holds:
Several remarks are in order. First, unlike prior work [46, 33, 69], this bound accounts for stale advantages: it features rather than , and therefore does not require access to advantage values under the current policy for samples collected under past behavioral policies . Second, compared to the standard policy improvement lower bound [44, 1], recovered when , the factor is unchanged, while two additional averaged TV penalty terms appear. The first, involving , already appears in [46, 69, 31] and accounts for sampling from . The second, involving , is the price paid for considering stale advantages. Crucially, the latter does not depend on the target policy , so it vanishes when taking the gradient of the surrogate loss, leaving the optimization unaffected and thus grounding . However, since it cannot be controlled by the actor update, it suggests that the policies belonging to the reuse window should remain close to each other. Additionally, the first penalty, which depends on , requires the target policy to remain close to all the behavioral policies in the window. In PPO-like methods, this is partially enforced by the clipping mechanism, which limits how far consecutive policies can drift.
3.2 Cross-Iteration Balance-Heuristic-Corrected Sample Reuse in PPO
As the balance heuristic [BH, 58] is the most studied MIW weighting due to its desirable theoretical properties [35] and effectiveness [41, 36] over uniform weighting, here we study its instantiation in PPO, which we term . Specifically, we replace the vanilla IWs in the actor loss with per-step BH-corrected ones. To do so, for every and , let be the uniform mixture of policies in the window. The empirical loss of is:
Some comments are in order. First, we highlight that retains most of the features already discussed for including exploiting stale advantages, without re-evaluating past samples under the most recent critic. Also in this case, we consider fitting the critic over only, thus employing older data exclusively for additional actor updates. Second, the BH correction weights each sample with all behavioral policies in the window jointly, rather than only its own. As a consequence, unlike , where the IWs of samples in equal 1 at the beginning of each iteration, the BH ratio generally differs from 1 whenever , so that even the most recent samples may be clipped from the first update. Third, the BH is known to reduce the variance of the IWs compared to uniform weighting [58, 35]. Moreover, since is a component of the mixture at the beginning of each iteration, the BH ratios are bounded by , whereas the vanilla ratios of older samples are unbounded. Fourth, when updating, the target policy is pushed towards the boundary of the trust region of , rather than towards the individual trust regions around each as in . This provides a single trust region centered at the mixture of the policies in the window. Finally, it is worth noting that incurs a higher computational cost than . Specifically, evaluating the BH-corrected loss requires evaluating all samples in under all policies in the window. However, this cost of evaluations is paid once per data collection step.
Now, we show a policy improvement lower bound serving as a theoretical grounding of .
Theorem 3.2. Let . Having access to , let be the uniform mixture of the discounted state occupancies. Then, for any , the following holds:
Several remarks are in order. First, as for Theorem 3.1, this bound accounts for stale advantages and recovers the standard policy improvement lower bound [1, 44] when . Second, the bound features three TV-based penalty terms. The first involves an average of over the state occupancies in the window, suggesting that the effective trust region should be defined with respect to rather than any individual behavioral policy; note that remains unchanged relative to Theorem 3.1 and prior work [1, 46, 69]. The second penalty, involving , arises from window-specific stale advantages and, unlike the analo-

(a) Reacher-v5.
(b) Walker2d-v5.

(c) Hopper-v5.
(d) HalfCheetah-v5.
Figure 1: PPO, PPO-U, and PPO-BH in the fixed B setting (10 runs, mean 95% C.I.).
gous term in Theorem 3.1, is non-decreasing in . The third, involving , captures the mismatch between the mixture state occupancy and the individual occupancies and similarly is non-decreasing in . Crucially, both the second and third penalties are independent of and vanish when taking the gradient of the surrogate loss, thus (i) grounding and (ii) suggesting that the policies in the window should remain close to each other, while the first penalty, which depends on , requires the target policy to remain close to the mixture .
4 Experiments
We provide an experimental validation of the effects of sample reuse, implemented via PPO-U and PPO-BH, on PPO. Here, we report only the most interesting results; an extended experimental campaign across diverse MuJoCo [57] tasks is provided in Appendix D. To ensure a fair comparison, we always start from the tuned PPO configuration of [47], and the reuse variants all share common hyperparameters unless otherwise specified. All experimental details are deferred to Appendix C.
Comparison Settings. When comparing PPO-U and PPO-BH against PPO, several experimental settings are possible. In this section we consider the following two:
• Fixed mini-batch size: the reuse variants share all hyperparameters with PPO ( , B, and ). Since , fixing B means the reuse variants perform times as many actor updates per iteration as PPO, with each datum having a maximum life cycle of actor updates. Each mini-batch contains samples per window, so each update sees a smaller fraction of fresh data than PPO. To isolate the effect of data reuse from the effect of additional updates, we also run PPO with epochs per iteration, matching the total update count of the reuse variants.
• Fixed mini-batch count: PPO-U and PPO-BH keep the same number of mini-batches as PPO, yielding larger mini-batches of size . Each update thus sees the same amount of fresh data as PPO, while the reuse variants additionally incorporate past samples into each mini-batch. All methods therefore perform the same number of updates per iteration, isolating the effect of additional data from that of additional gradient steps.
These settings directly measure sample efficiency: given the same number of environment interactions, they test how well each method exploits the available information. Both settings are designed to maintain fairness with respect to PPO and to isolate distinct aspects of the data reuse mechanism.
Fixed B. Figure 1 shows training evaluation curves across four tasks, comparing PPO, PPO-U, PPO-BH, and a PPO variant running epochs per iteration. The latter collapses in almost every setting, while the reuse variants, whose mini-batches come from , do not exhibit the same instability. At , both PPO-U and PPO-BH consistently outperform PPO in terms of final performance of the deployed policy (Table 1), suggesting that the benefit of data reuse is not merely due to performing more updates. However, this trend does not hold uniformly across tasks when enlarging . The Hopper-v5 environment is a pathological case: at , the reuse
| Algorithm | Reacher-v5 | Walker2d-v5 | Hopper-v5 | HalfCheetah-v5 | |||||
|---|---|---|---|---|---|---|---|---|---|
| Fixed B | Fixed | Fixed B | Fixed | Fixed B | Fixed | Fixed B | Fixed | ||
| PPO | |||||||||
| PPO (ωK epochs) | 2× | - | - | - | - | ||||
| 4× | - | - | - | - | |||||
| 8× | - | - | - | - | |||||
| ωPPO-U | ω = 2 | ||||||||
| ω = 4 | |||||||||
| ω = 8 | |||||||||
| ωPPO-BH | ω = 2 | ||||||||
| ω = 4 | |||||||||
| ω = 8 | |||||||||
Table 1: Mean final performance (average of last 10 evaluations, 10 runs C.I.) for the settings of Figures 1–2. Colored cells: best mean performance; bold: methods whose C.I. intersects the best.

(a) Reacher-v5.
(b) Walker2d-v5.

(c) Hopper-v5.
(d) HalfCheetah-v5.
Figure 2: PPO, PPO-U, and PPO-BH in the fixed setting (10 runs, mean C.I.).
variants not only fail to outperform PPO but exhibit degraded training. We conjecture this results from several compounding factors, amplified by this environment's configuration (, , ). First, at the reuse variants perform 2560 updates per iteration against the 320 of PPO, potentially amplifying the bias introduced by stale advantages across many gradient steps. Second, with fresh samples per mini-batch, the fraction of on-policy signal per update is particularly small. Third, since all hyperparameters are inherited from PPO, the larger number of updates may increase the drift between consecutive policies and hence the diversity of the policies in the window, possibly making past samples falling outside the clipping range more frequently. All in all, in this setting PPO consistently benefits from data reuse when the reuse variants are allowed to perform times as many updates as PPO, up to a moderate window size, beyond which the factors above may hinder training.
Fixed . Figure 2 shows training evaluation curves across the same four environments, comparing PPO, PPO-U, and PPO-BH. We recall that in this setting all methods perform the same number of updates per iteration and each update sees the same amount of fresh data, while the reuse variants employ mini-batches of size . A consistent trend is easier to identify here: PPO benefits from sample reuse across all environments, despite the update count being matched. Most of the benefits are observable at , particularly under PPO-BH, as further confirmed by Table 1. Increasing to yields diminishing returns, with the reuse variants either matching or only marginally improving over PPO. We conjecture this is due to the increasing proportion of stale advantages and of samples collected under increasingly distant policies within each mini-batch, which gradually offsets the benefit of additional data as the window grows.
PPO-U vs. PPO-BH. In general, neither weighting scheme consistently dominates the other: the best-performing policy is achievable with both, given an appropriate and environment (Table 1). However, the two schemes exploit past data differently. In PPO-U, each sample is weighted

(a) HalfCheeath-v5: Fixed B.
(b) HalfCheetah-v5: Fixed .

(c) Hopper-v5: Fixed B.
(d) Hopper-v5: Fixed .

(e) Walker2d-v5: Fixed B.
(f) Walker2d-v5: Fixed .

(g) Reacher-v5: Fixed B.
(h) Reacher-v5: Fixed .
Figure 3: Clip ratio diagnostics (10 runs, mean 95% C.I.).
against its own behavioral policy , so the ratio deviates further from 1 for older window indices, causing PPO-U to clip an increasing fraction of past data as grows. In PPO-BH, the mixture denominator has two consequences: (i) at the beginning of each iteration, the IWs are bounded by , which limits how far above the clipping range older samples can start; and (ii) the IWs of the most recent samples generally differ from 1, so that, at small and large , part of the fresh data may be clipped from the first update. Figure 3 reports the average pre-optimization clip fractions, grouped by window index: PPO-BH maintains a lower pre-optimization clip fraction for older windows, consistently with (i), while PPO-U exhibits pre-optimization clip fractions that grow with the window index, confirming that older samples contribute increasingly less.
Main Takeaways. We now summarize when and how PPO may benefit from data reuse, based on the results of this section and of Appendix D. We recall that this paper studies data reuse per se: feeding PPO with a composite buffer from the most recent iterations, either with vanilla importance weights ( PPO-U) or with a BH correction ( PPO-BH). First, PPO benefits from sample reuse in both considered settings (fixed B and fixed ) and the benefit stems from the additional data rather than from the increased number of updates alone. Second, the impact of reuse manifests primarily in the final performance of the deployed policy, while improvements in convergence speed also occur but are closely tied to the environment and hyperparameter configuration, appearing consistently only in Reacher-v5, the simplest here, and Ant-v5 (see Appendix D). Third, in most environments, reuse is most effective at moderate window sizes (e.g., ). With larger windows, particularly in the fixed B setting, stale advantages, the increased diversity of the policies in the window, and the dilution of fresh data may offset the benefits of the additional data. Finally, while both PPO-U and PPO-BH are beneficial depending on the task and hyperparameters, they exploit past data differently: PPO-BH clips a smaller fraction of older samples thanks to its mixture denominator but may clip part of the most recent ones from the start, while PPO-U fully exploits fresh data at the cost of clipping a larger fraction of older samples.
5 Conclusion
We studied sample reuse in PPO within a MIW framework, deliberately preserving its core mechanics to isolate the effect of data reuse from other factors. We instantiated PPO-U and PPO-BH, employing uniform and BH-corrected IWs, respectively, and derived policy improvement lower bounds for both. Beyond grounding their losses, the bounds reveal penalties uncontrollable by the actor updates, suggesting that the policies in the reuse window should remain close to each other. Empirically, we found that moderate data reuse consistently improves the final performances across diverse control tasks, while excessive reuse can be harmful. Neither PPO-U nor PPO-BH consistently dominates the other, though PPO-BH may better exploit older samples at the cost of potentially clipping part of the fresh data. Future work should extend this analysis to other deep on-policy methods [e.g., 56, 53], and systematically isolate the individual contributions of advantage re-evaluation, modified clipping, and other heuristics introduced by existing PPO reuse variants [e.g., 46, 33, 69].
References
[1] Joshua Achiam, David Held, Aviv Tamar, and Pieter Abbeel. Constrained policy optimization. In International conference on machine learning, pages 22–31. Pmlr, 2017.
[2] Alekh Agarwal, Nan Jiang, Sham M Kakade, and Wen Sun. Reinforcement learning: Theory and algorithms. CS Dept., UW Seattle, Seattle, WA, USA, Tech. Rep, 32:96, 2019.
[3] Firas Al-Hafez, Guoping Zhao, Jan Peters, and Davide Tateo. Locomujoco: A comprehensive imitation learning benchmark for locomotion. In 6th Robot Learning Workshop, NeurIPS, 2023.
[4] Marcin Andrychowicz, Anton Raichuk, Piotr Stańczyk, Manu Orsini, Sertan Girgin, Raphaël Marinier, Leonard Hussenot, Matthieu Geist, Olivier Pietquin, Marcin Michalski, et al. What matters for on-policy deep actor-critic methods? a large-scale study. In International conference on learning representations, 2021.
[5] Kamyar Azizzadenesheli, Yisong Yue, and Animashree Anandkumar. Policy gradient in partially observable environments: Approximation and convergence. arXiv preprint arXiv:1810.07900, 2018.
[6] Jonathan Baxter and Peter L Bartlett. Infinite-horizon policy-gradient estimation. journal of artificial intelligence research, 15:319–350, 2001.
[7] Dieter Büchler, Simon Guist, Roberto Calandra, Vincent Berenz, Bernhard Schölkopf, and Jan Peters. Learning to play table tennis from scratch using muscular robots. IEEE Transactions on Robotics, 38(6):3850–3860, 2022.
[8] Yuhu Cheng, Qingbang Guo, and Xuesong Wang. Proximal policy optimization with advantage reuse competition. IEEE Transactions on Artificial Intelligence, 5(8):3915–3925, 2024.
[9] Marc Peter Deisenroth, Gerhard Neumann, Jan Peters, et al. A survey on policy search for robotics. Foundations and Trends® in Robotics, 2(1–2):1–142, 2013.
[10] Leif Doering, Daniel Schmidt, Moritz Melcher, Sebastian Kassing, Benedikt Wille, Tilman Aach, and Simon Weissmann. An approximate ascent approach to prove convergence of ppo. arXiv preprint arXiv:2602.03386, 2026.
[11] Yan Duan, Xi Chen, Rein Houthooft, John Schulman, and Pieter Abbeel. Benchmarking deep reinforcement learning for continuous control. In International conference on machine learning, pages 1329–1338. PMLR, 2016.
[12] Logan Engstrom, Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Firdaus Janoos, Larry Rudolph, and Aleksander Madry. Implementation matters in deep rl: A case study on ppo and trpo. In International conference on learning representations, 2019.
[13] Lasse Espeholt, Hubert Soyer, Remi Munos, Karen Simonyan, Vlad Mnih, Tom Ward, Yotam Doron, Vlad Firoiu, Tim Harley, Iain Dunning, et al. Impala: Scalable distributed deep-rl with importance weighted actor-learner architectures. In International conference on machine learning, pages 1407–1416. PMLR, 2018.
[14] Rasool Fakoor, Pratik Chaudhari, and Alexander J. Smola. P3O: policy-on policy-off policy optimization. In Amir Globerson and Ricardo Silva, editors, Proceedings of the Thirty-Fifth Conference on Uncertainty in Artificial Intelligence, UAI 2019, Tel Aviv, Israel, July 22-25, 2019, Proceedings of Machine Learning Research, pages 1017–1027. AUAI Press, 2019.
[15] Ilyas Fatkhullin, Anas Barakat, Anastasia Kireeva, and Niao He. Stochastic policy gradient methods: Improved sample complexity for fisher-non-degenerate policies. In International Conference on Machine Learning, pages 9827–9869. PMLR, 2023.
[16] Scott Fujimoto, Herke Hoof, and David Meger. Addressing function approximation error in actor-critic methods. In International conference on machine learning, pages 1587–1596. PMLR, 2018.
[17] Mohammad Ghavamzadeh and Yaakov Engel. Bayesian policy gradient algorithms. Advances in neural information processing systems, 19, 2006.
[18] Benjamin Gravell, Peyman Mohajerin Esfahani, and Tyler Summers. Learning optimal controllers for linear systems with multiplicative noise via policy gradient. IEEE Transactions on Automatic Control, 66(11):5283–5298, 2020.
[19] Shixiang Gu, Timothy Lillicrap, Zoubin Ghahramani, Richard E Turner, and Sergey Levine. Q-prop: Sample-efficient policy gradient with an off-policy critic. arXiv preprint arXiv:1611.02247, 2016.
[20] Shixiang Shane Gu, Timothy Lillicrap, Richard E Turner, Zoubin Ghahramani, Bernhard Schölkopf, and Sergey Levine. Interpolated policy gradient: Merging on-policy and off-policy gradient estimation for deep reinforcement learning. Advances in neural information processing systems, 30, 2017.
[21] Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In International conference on machine learning, pages 1861–1870. Pmlr, 2018.
[22] Ruinan Jin, Shuai Li, and Baoxiang Wang. On stationary point convergence of ppo-clip. In The Twelfth International Conference on Learning Representations, 2023.
[23] Sham Kakade and John Langford. Approximately optimal approximate reinforcement learning. In Proceedings of the nineteenth international conference on machine learning, pages 267–274, 2002.
[24] Mahdi Kallel, Jose-Luis Holgado-Alvarez, Samuele Tosatto, and Carlo D'Eramo. Revisiting proximal policy optimization. In Eighteenth European Workshop on Reinforcement Learning, 2025.
[25] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
[26] Augustine Kong. A note on importance sampling using standardized weights. University of Chicago, Dept. of Statistics, Tech. Rep, 348:14, 1992.
[27] Joonho Lee, Jemin Hwangbo, Lorenz Wellhausen, Vladlen Koltun, and Marco Hutter. Learning quadrupedal locomotion over challenging terrain. Science robotics, 5(47):eabc5986, 2020.
[28] Xingxing Liang, Yang Ma, Yanghe Feng, and Zhong Liu. PTR-PPO: proximal policy optimization with prioritized trajectory replay. CoRR, abs/2112.03798, 2021.
[29] Timothy P. Lillicrap, Jonathan J. Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, and Daan Wierstra. Continuous control with deep reinforcement learning. In Yoshua Bengio and Yann LeCun, editors, 4th International Conference on Learning Representations, ICLR 2016, San Juan, Puerto Rico, May 2-4, 2016, Conference Track Proceedings, 2016.
[30] Yifan Lin, Yuhao Wang, and Enlu Zhou. Reusing historical trajectories in natural policy gradient via importance sampling: Convergence and convergence rate. Operations Research, 73(6):3010–3026, 2025.
[31] Qisai Liu, Zhanhong Jiang, Hsin-Jung Yang, Mahsa Khosravi, Joshua R Waite, and Soumik Sarkar. Enhancing ppo with trajectory-aware hybrid policies. IEEE Transactions on Neural Networks and Learning Systems, 2026.
[32] Gabriel B Margolis, Ge Yang, Kartik Paigwar, Tao Chen, and Pulkit Agrawal. Rapid locomotion via reinforcement learning. The International Journal of Robotics Research, 43(4):572–587, 2024.
[33] Wenjia Meng, Qian Zheng, Gang Pan, and Yilong Yin. Off-policy proximal policy optimization. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, pages 9162–9170, 2023.
[34] Alberto Maria Metelli, Matteo Papini, Francesco Faccio, and Marcello Restelli. Policy optimization via importance sampling. Advances in neural information processing systems, 31, 2018.
[35] Alberto Maria Metelli, Matteo Papini, Nico Montali, and Marcello Restelli. Importance sampling techniques for policy optimization. Journal of Machine Learning Research, 21(141): 1–75, 2020.
[36] Alessandro Montenegro, Federico Mansutti, Marco Mussi, Matteo Papini, and Alberto Maria Metelli. Reusing trajectories in policy gradients enables fast convergence. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, 2026.
[37] Art Owen and Yi Zhou. Safe and effective importance sampling. Journal of the American Statistical Association, 95(449):135–143, 2000.
[38] Art B. Owen. Monte Carlo Theory, Methods and Examples. 2013.
[39] Gabor Paczolay, Matteo Papini, Alberto Maria Metelli, Istvan Harmati, and Marcello Restelli. Sample complexity of variance-reduced policy gradient: weaker assumptions and lower bounds. Machine Learning, 113(9):6475–6510, 2024.
[40] Matteo Papini, Damiano Binaghi, Giuseppe Canonaco, Matteo Pirotta, and Marcello Restelli. Stochastic variance-reduced policy gradient. In International conference on machine learning, pages 4026–4035. PMLR, 2018.
[41] Matteo Papini, Alberto Maria Metelli, Lorenzo Lupo, and Marcello Restelli. Optimistic policy optimization via multiple importance sampling. In International Conference on Machine Learning, pages 4989–4999. PMLR, 2019.
[42] Matteo Papini, Giorgio Manganini, Alberto Maria Metelli, and Marcello Restelli. Policy gradient with active importance sampling. arXiv preprint arXiv:2405.05630, 2024.
[43] Jan Peters and Stefan Schaal. Policy gradient methods for robotics. In 2006 IEEE/RSJ international conference on intelligent robots and systems, pages 2219–2225. IEEE, 2006.
[44] Matteo Pirotta, Marcello Restelli, Alessio Pecorino, and Daniele Calandriello. Safe policy iteration. In International conference on machine learning, pages 307–315. PMLR, 2013.
[45] Martin L. Puterman. Markov Decision Processes: Discrete Stochastic Dynamic Programming. Wiley Series in Probability and Statistics. John Wiley & Sons, 2014.
[46] James Queeney, Yannis Paschalidis, and Christos G Cassandras. Generalized proximal policy optimization with sample reuse. Advances in Neural Information Processing Systems, 34:11909–11919, 2021.
[47] Antonin Raffin. Rl baselines3 zoo. https://github.com/DLR-RM/rl-baselines3-zoo, 2020.
[48] Antonin Raffin, Ashley Hill, Adam Gleave, Anssi Kanervisto, Maximilian Ernestus, and Noah Dormann. Stable-baselines3: Reliable reinforcement learning implementations. Journal of Machine Learning Research, 22(268):1–8, 2021.
[49] Tom Schaul, John Quan, Ioannis Antonoglou, and David Silver. Prioritized experience replay. In Yoshua Bengio and Yann LeCun, editors, 4th International Conference on Learning Representations, ICLR 2016, San Juan, Puerto Rico, May 2-4, 2016, Conference Track Proceedings, 2016.
[50] John Schulman, Sergey Levine, Pieter Abbeel, Michael Jordan, and Philipp Moritz. Trust region policy optimization. In International conference on machine learning, pages 1889–1897. PMLR, 2015.
[51] John Schulman, Philipp Moritz, Sergey Levine, Michael Jordan, and Pieter Abbeel. High-dimensional continuous control using generalized advantage estimation. arXiv preprint arXiv:1506.02438, 2015.
[52] John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
[53] Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, YK Li, Yang Wu, et al. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024.
[54] Mingfei Sun, Vitaly Kurin, Guoqing Liu, Sam Devlin, Tao Qin, Katja Hofmann, and Shimon Whiteson. You may not need ratio clipping in ppo. arXiv preprint arXiv:2202.00079, 2022.
[55] Richard S Sutton, Andrew G Barto, et al. Reinforcement learning: An introduction, volume 1. MIT press Cambridge, 1998.
[56] Richard S Sutton, David McAllester, Satinder Singh, and Yishay Mansour. Policy gradient methods for reinforcement learning with function approximation. Advances in neural information processing systems, 12, 1999.
[57] Emanuel Todorov, Tom Erez, and Yuval Tassa. Mujoco: A physics engine for model-based control. In 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, pages 5026–5033. IEEE, 2012. doi: 10.1109/IROS.2012.6386109.
[58] Eric Veach and Leonidas J Guibas. Optimally combining sampling techniques for monte carlo rendering. In Proceedings of the 22nd annual conference on Computer graphics and interactive techniques, pages 419–428, 1995.
[59] Huayi Wang, Zirui Wang, Junli Ren, Qingwei Ben, Tao Huang, Weinan Zhang, and Jiangmiao Pang. Beamdojo: Learning agile humanoid locomotion on sparse footholds. arXiv preprint arXiv:2502.10363, 2025.
[60] Yuhui Wang, Hao He, Xiaoyang Tan, and Yaozhong Gan. Trust region-guided proximal policy optimization. Advances in Neural Information Processing Systems, 32, 2019.
[61] Yuhui Wang, Hao He, and Xiaoyang Tan. Truly proximal policy optimization. In Uncertainty in artificial intelligence, pages 113–122. PMLR, 2020.
[62] Zhichao Wang, Bin Bi, Shiva Kumar Pentyala, Kiran Ramnath, Sougata Chaudhuri, Shubham Mehrotra, Xiang-Bo Mao, Sitaram Asur, et al. A comprehensive survey of llm alignment techniques: Rlhf, rlaif, ppo, dpo and more. arXiv preprint arXiv:2407.16216, 2024.
[63] Ziyu Wang, Victor Bapst, Nicolas Heess, Volodymyr Mnih, Remi Munos, Koray Kavukcuoglu, and Nando De Freitas. Sample efficient actor-critic with experience replay. arXiv preprint arXiv:1611.01224, 2016.
[64] Ronald J Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine learning, 8(3):229–256, 1992.
[65] Pan Xu, Felicia Gao, and Quanquan Gu. Sample efficient policy gradient methods with recursive variance reduction. arXiv preprint arXiv:1909.08610, 2019.
[66] Shusheng Xu, Wei Fu, Jiaxuan Gao, Wenjie Ye, Weilin Liu, Zhiyu Mei, Guangju Wang, Chao Yu, and Yi Wu. Is dpo superior to ppo for llm alignment? a comprehensive study. arXiv preprint arXiv:2404.10719, 2024.
[67] Huizhuo Yuan, Xiangru Lian, Ji Liu, and Yuren Zhou. Stochastic recursive momentum for policy gradient methods. arXiv preprint arXiv:2003.04302, 2020.
[68] Rui Yuan, Robert M Gower, and Alessandro Lazaric. A general sample complexity analysis of vanilla policy gradient. In International Conference on Artificial Intelligence and Statistics, pages 3332–3380. PMLR, 2022.
[69] Li-yang Zhao, Tian-qing Chang, Jie Zhang, Lei Zhang, Kai-xuan Chu, Li-bin Guo, and De-peng Kong. A policy optimization algorithm based on sample adaptive reuse and dual-clipping for robotic action control. Applied Soft Computing, 134:109967, 2023.
A Algorithmic Details: PPO and Data Collection
In this section, we provide details on PPO, remaining tied to its common practical implementation [e.g., 48].
Algorithm 1: On-Policy Data Collection.
Input : Actor , critic , interaction length , environments , GAE parameter , discount factor .
1 Initialize global buffer ; 2 for do 3 Initialize local buffer ; 4 Receive initial state from ; // Interaction 5 for do 6 Set ; 7 Sample and execute it in ; 8 Observe , , and done flag ; 9 Compute value estimate and ; 10 Store tuple in ; 11 if is True then 12 Reset and receive new ; 13 end 14 Set ; 15 end 16 // GAE Calculation taking samples from 17 Compute the last value function ; 18 Initialize next advantage ; 19 for do 19 ; 20 ; 21 ; 22 Add to ; 23 end 24 end Output : Buffer .
A.1 On-Policy Data Collection
We begin by detailing the data collection process. Unlike the theoretical formulation based on complete episodes, practical implementations [48] interact with the environment for a fixed number of timesteps , regardless of the task's actual horizon. This fixed-length rollout is adopted primarily for computational efficiency and memory management. To handle episode termination, we employ a boolean flag , which is true if the environment enters an absorbing state at timestep . Crucially, if the rollout ends at timestep without reaching an absorbing state (truncation), the value of the last state is used for bootstrapping.
For the sake of generality, we consider a set of parallel environments collecting independent trajectory segments of length . During interaction, the agent stores the essential data required for the optimization phase: the state-action pairs , the rewards , the value estimates , and the probabilities . After collection, the algorithm computes the advantage estimates and the return targets . The standard approach is Generalized Advantage Estimation [GAE, 51], which balances the bias-variance trade-off akin to TD( ). While a Monte Carlo estimate is unbiased but suffers from high variance, a TD(0) approach has low variance but introduces significant bias due to bootstrapping. GAE interpolates between these regimes. Formally, let be the TD-error at step . The GAE estimate is defined as the exponentially weighted sum of these errors:
where controls the trade-off, and the sum is truncated at the rollout boundary (handling the last state via bootstrapping as previously described). Algorithm 1 details the data collection. There, for with , we denote and .
Algorithm 2: PPO [52].
Input : Initial parameters and , iterations , epochs per iteration , batch size , environments , GAE parameter , interaction length , discount factor , loss coefficients and , learning rate , clipping parameter .
1 Initialize optimization variables: , .
2 for do
// Data Collection
Run Algorithm 1;
// Multi-Epoch Optimization
4 for do
5 Shuffle ;
6 Create , where , such that ;
7 for do
8 // Compute Loss
,
where
;
.
// Update
9
and .
10
end
11
end
12 end
Output : .
A.2 PPO Details
As highlighted in Section 1, PPO [52] is one of the most used and successful RL methods. In order to extend it in a meaningful way, we detail here an (almost) practical version of it. Before proceeding, we need to introduce additional notation. Let be a joint loss for both the actor and the critic, defined as:
where is a behavioral policy used to collect data, where is the entropy of the policy in state , and where are weighting constants.
Now, let be a batch of interaction tuples, where and are estimates of the advantage function and the return-to-go, both w.r.t. the policy used to collect data, respectively. We can define the sample-based version of as follows:
That being said, the parameters can then be updated as:
where is the step size, usually managed by Adam [25] or by other schedulers (e.g., by linearly decreasing the step size or adapting the step size in order to maintain a certain KL divergence among policies across iterations [48, 3, 46]). Notice that, in many implementations, the critic loss is clipped too. The detailed pseudo-code is reported in Algorithm 2.
B Proofs
Lemma B.1 (Performance Difference Lemma [Lemma 6.1, 23]). For every , the following holds:
Lemma B.2 (Policy Improvement Lower Bound [Corollary 1, 1]). For every , the following holds:
where .
Lemma B.3. For every , the following holds:
Proof. To start the proof, we can simply note that:
where we employed the Jensen’s inequality, then the advantage function definition, and finally we used the triangular inequality and the linearity of the expectation. Notice that in the B term we lose the action sampling from .
Bounding the Term B. We now focus on term B. Before starting with this part, let us define for every and the following:
which is the -discounted state visitation under policy and starting from state . Notice that it holds . Specifically, considering the argument of the expectation, we have the following:
where we applied Lemma B.1 (see also [Lemma 1.16, 2]) and then we exploited the fact that, for every and , it holds that (as similarly done in [Lemma 2, 50]). Thus, by considering the absolute value of the interested quantity, we have the following:
for which we just employed the Jensen’s inequality, the fact that, for every , , and , it holds that , and finally the TV definition. We can finally bound the B quantity, by exploiting this last obtained result. Specifically, we have:
Bounding the Term A. To bound the term A, we will exploit what done for the term B, by exploiting the following:
just by exploiting the action-value function definition. Thus, we have the following:
Final Result. Putting all together, we can conclude that:
18
☐
Theorem B.4. Consider to have access to policies and to a distribution over the policies into . Then, for every , the following holds:
Proof. We start the proof from Lemma B.1 [23]. For ever the following holds:
Now, by following the same procedure as Lemma B.2 [44, 1] and [Lemma 7, 46], for every we have the following:
where is the same as in Lemma B.2, depending just on the policies appearing on the left-hand side of the policy improvement lower bound. Stopping here, we would have the policy improvement bound of [46, 33, 69, 31] which would require to have access to advantages relative to policy in every sampled state-action pairs from policies in . To fix this, we would leverage Lemma B.3.
To continue the proof, let us sum and subtract into the argument of the expectation of term A:
Now, we just need to bound term B, that can be easily done thanks to Lemma B.3. Specifically, we have the following:
A similar need is faced in [Lemma 3, 31] to change the appearing advantage, however, it is not the one related to the data-sampling policy .
By noting that and then applying Lemma B.3, we can conclude that:
Finally, as done in [Theorem 1, 46], since the previous bound is holding for every , then for any choice of distribution over the policies in we have the following:
☐
Theorem 3.1. Let . Having access to , for any target , the following holds:
Proof. The proof straightforwardly follows from Theorem B.4. In particular, setting , and by considering a uniform distribution over the policies in the window. Thus, we have the following:
☐
Theorem 3.2. Let . Having access to , let be the uniform mixture of the discounted state occupancies. Then, for any , the following holds:
Proof. To start the proof, let us start from Lemma B.1:
where we just changed, applying the needed importance weight correction, the state and action sampling distributions.
Now, let us introduce the BH state-action occupancy. Specifically, for every and , let . Notice that is the discounted state occupancy induced by and that:
Letting we note that, in general, we have the following:
That being said, by applying the argument of [1], the following holds:
Now, by triangular inequality we have that:
Furthermore, note that:
(1)
which simply follows from the triangular inequality and from algebraic manipulations taking into account the definition. Equipped with these two arguments, we have that:
thus leading to the following intermediate form of the performance improvement lower bound we aim to reach:
(2)
In order to carry on with the derivation, we introduce the following quantity:
where we just exploited the definition.
Notice that the next steps are to make A appear into Equation (2), then employing Lemma B.3 to finally have the stale advantages. That being said, we proceed by adding and subtracting A into
Equation (2), obtaining the following:
\begin{align*}J(\boldsymbol{\theta})-J(\boldsymbol{\theta}_{k})&\geqslant\frac{1}{\omega_{k}}\sum_{i=0}^{\omega_{k}-1}\mathop{\mathbb{E}}_{\substack{\boldsymbol{s}\sim d_{\boldsymbol{\theta}_{k-i}}\\ \boldsymbol{a}\sim\pi_{\boldsymbol{\theta}_{k-i}}(\cdot|\boldsymbol{s})}}\left[\frac{\pi_{\boldsymbol{\theta}}(\boldsymbol{a}\mid\boldsymbol{s})}{\pi_{\omega_{k}}^{\mathrm{BH}}(\boldsymbol{a}\mid\boldsymbol{s})}A^{\pi_{\boldsymbol{\theta}_{k}}}(\boldsymbol{s},\boldsymbol{a})\right]\\&\quad-\frac{2\gamma C(\boldsymbol{\theta},\boldsymbol{\theta}_{k})}{(1-\gamma)^{2}\omega_{k}}\sum_{i=0}^{\omega_{k}-1}\mathop{\mathbb{E}}_{\substack{\boldsymbol{s}\sim d_{\boldsymbol{\theta}_{k-i}}\\ }}\left[D_{\mathrm{TV}}\left(\pi_{\boldsymbol{\theta}}(\cdot\mid\boldsymbol{s}),\pi_{\omega_{k}}^{\mathrm{BH}}(\cdot\mid\boldsymbol{s})\right)\right]\\&\quad-\frac{2\gamma C(\boldsymbol{\theta},\boldsymbol{\theta}_{k})}{(1-\gamma)^{2}\omega_{k}}\sum_{i=0}^{\omega_{k}-1}D_{\mathrm{TV}}\left(d_{\omega_{k}}^{\mathrm{BH}},d_{\boldsymbol{\theta}_{k-i}}\right)\\&\quad+\underbrace{\mathop{\mathbb{E}}_{\substack{\boldsymbol{s}\sim d_{\omega_{k}}^{\mathrm{BH}}\\ \boldsymbol{a}\sim\pi_{\omega_{k}}^{\mathrm{BH}}(\cdot|\boldsymbol{s})}}\left[\frac{\pi_{\boldsymbol{\theta}}(\boldsymbol{a}\mid\boldsymbol{s})}{\pi_{\omega_{k}}^{\mathrm{BH}}(\boldsymbol{a}\mid\boldsymbol{s})}A^{\pi_{\boldsymbol{\theta}_{k}}}(\boldsymbol{s},\boldsymbol{a})\right]-\mathop{\mathbb{E}}_{(\boldsymbol{s},\boldsymbol{a})\sim\mu_{\omega_{k}}^{\mathrm{BH}}}\left[\frac{\pi_{\boldsymbol{\theta}}(\boldsymbol{a}\mid\boldsymbol{s})}{\pi_{\omega_{k}}^{\mathrm{BH}}(\boldsymbol{a}\mid\boldsymbol{s})}A^{\pi_{\boldsymbol{\theta}_{k}}}(\boldsymbol{s},\boldsymbol{a})\right].\end{align*}(3)
Next, we have to treat B. To do so, we can exploit the fact that for every . Then, the following holds:
Because of the presence of the BH-corrected ratio , we cannot directly bound with a standard TV argument. Thus, we first note that:
where we exploited the fact that for every , , and it holds that and we used as an action-sampling distribution.
Exploiting Equation (1), we can finally conclude the bound as:
where: (i) we applied the previous bound on from Equation (1); (ii) we exploited the fact that for every , , and ; and (iii) we exploited the TV definition. Notice that, when exploiting the specific structure of the BH importance weight with at the numerator, we lose the dependence on in the inner expectation term.
We can now plug this result into Equation (3), obtaining:
(4)
The last thing to do to conclude the proof is to substitute in C the fresh advantage with the stale one , for every . To do so, we will proceed as done in Theorem 3.1, adding and subtracting the expectation term with the stale advantage, then resorting to Lemma B.3. Specifically, the following holds
So now, it suffices to apply Lemma B.3 to D, thus having:
where (i) we changed the action sampling distribution from to ; (ii) we exploited for every , , and ; (iii) we used the fact that , then applying the Jensen's inequality; and (iv) we employed Lemma B.3.
We can finally put all together, thus having the following final policy improvement bound:
☐
C Experimental Details
To help with reproducibility, we provide all the necessary implementation and experimental details we used for conducting the experiments presented in Section 4 and Appendix D.
Environments. We conducted our numerical evaluation on six continuous control environments leveraging the MuJoCo [57] control suite. Specifically, we considered: Reacher-v5, Swimmer-v5, Hopper-v5, Walker2d-v5, HalfCheetah-v5, and Ant-v5. Observations are normalized online using a running mean and variance estimate.
Implementation. For implementing PPO-U and PPO-BH we extended the PPO implementation of [48] with the following modifications. First, the rollout buffer is extended to hold the most recent rollouts (see Algorithm 1 describing the data collection phase): at each iteration , the oldest rollout is discarded and the new one is appended. Second, mini-batches are sampled uniformly at random from the full buffer , with the constraint that each contains the same number of transitions for every window index in the fixed setting, in the fixed setting). Third, PPO-BH additionally stores the parameters of the most recent past policies, which are used to evaluate the BH mixture denominator on every stored transition in . Specifically, after every data collection phase, PPO-BH requires to evaluate all the samples in coming from past policies under , as well as evaluating newer samples in under the past policies . This requires to perform additional evaluations, once per data collection. Finally, the ratio in the actor loss is replaced by the per-policy ratio for PPO-U or the BH-corrected ratio PPO-BH, as defined in Section 3. All remaining implementation details are shared with standard PPO. The pseudo-code of the considered PPO sample reuse variants is presented in Algorithm 3.
Hyperparameters. For each environment, in order to conduct a fair comparison, we adopt the tuned PPO hyperparameters from [47] as our baseline configuration, with the exception of Hopper-v5, for which the provided configuration did not yield the expected performance and hyperparameters were selected manually. The full set of hyperparameters for each environment is reported in Table 2. For the networks' activation functions we used tanh ones. PPO-U and PPO-BH share all common hyperparameters with PPO, with only the parameters specific to each comparison setting varied as described in Section 4 and D. This choice reflects our goal of providing a controlled comparison: by evaluating the reuse variants against a strongly tuned PPO baseline, any observed improvement can be attributed to the data reuse mechanism itself rather than to a suboptimal baseline.
Evaluation Protocol. Each method is evaluated over 10 independent runs using the same set of fixed random seeds across all compared methods. Specifically, we employed seeds in . Policy performance is assessed every 10000 environment steps by running 50 complete episodes under the current deterministic policy, and the evaluation metric is the mean episodic return, computed as the undiscounted sum of rewards over a complete episode. For plotting purposes, the resulting mean return is smoothed via a moving average with a window of 10 evaluation points, and all plots report
Algorithm 3: ωPPO-U and ωPPO-BH.
Input : Initial parameters and , iterations , epochs per iteration , batch size , environments , GAE parameter , interaction length , discount factor , loss coefficients and , learning rate , clipping parameter , window size .
1 Initialize optimization variables: , ; initialize buffer .
2 for do
// Data Collection
Run Algorithm 1;
// Buffer Update
if then
;
else
;
end
// [ωPPO-BH only] Precompute mixture denominator
for all ;
// Multi-Epoch Optimization
for do
Shuffle ;
Create , where , such that equally represents all iterations;
for do
// Actor Loss
;
;
// Critic Loss (on samples only)
// Update
end
end
end
Output : .
the mean and 95% confidence interval across runs. Final performance values reported in tables are computed as the mean over the last 10 evaluation points of each run, prior to smoothing.
Diagnostics. To monitor the distributional shift induced by data reuse, we track two complementary diagnostics at every iteration. Each diagnostic is computed independently for every window index over the corresponding rollout set , and is evaluated before the optimization phase to distinguish the shift present at the start of each iteration. Specifically, the two diagnostics are:
| Hyperparameter | Ant-v5 | HalfCheetah-v5 | Hopper-v5 | Reacher-v5 | Swimmer-v5 | Walker2d-v5 |
| Environment | ||||||
|---|---|---|---|---|---|---|
| Total timesteps | ||||||
| Number of environments () | 1 | 1 | 1 | 1 | 4 | 1 |
| PPO | ||||||
| Learning rate | ||||||
| Steps per rollout () | 512 | 512 | 2048 | 512 | 1024 | 512 |
| Batch size | 32 | 64 | 64 | 32 | 256 | 32 |
| Epochs per update | 10 | 20 | 10 | 5 | 10 | 20 |
| Discount factor | 0.98 | 0.98 | 0.999 | 0.9 | 0.9999 | 0.99 |
| GAE | 0.8 | 0.92 | 0.95 | 1.0 | 0.98 | 0.95 |
| Clip range | 0.1 | 0.1 | 0.2 | 0.3 | 0.2 | 0.1 |
| Value function coefficient | 0.677 | 0.581 | 0.5 | 0.950 | 0.5 | 0.872 |
| Entropy coefficient | 0.0 | 0.0 | ||||
| Max gradient norm | 0.6 | 0.8 | 0.5 | 0.9 | 0.5 | 1.0 |
| Normalize advantage | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Policy Network | ||||||
| Architecture | ||||||
| Orthogonal init | ✓ | ✕ | ✓ | ✓ | ✓ | ✓ |
| Log std init | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | |
Table 2: Employed hyperparameters values for conducting the experimental validation shown in Section 4 and D.
• Clip Fraction:
where for we have while for we have . is the fraction of transitions in whose weight falls outside . It measures how frequently the clipping mechanism is active for data from window index , and therefore how often those samples are effectively excluded from the gradient signal. However, it is insensitive to the magnitude of deviations among clipped transitions.
• (Normalized) Effective Sample Size (ESS):
In a standard importance weighting setting, the effective sample size [ESS, 26] is the number of samples drawn directly from for which the Monte Carlo estimator of the mean has approximately the same variance as the self-normalized importance weighting estimator employing samples from [35]. So, the normalized ESS is 1 whenever , while it decreases as the dissimilarity of the two distributions enlarges.
Each metric is averaged across all iterations of a single training run, reported for the pre-optimization phase. Plots show the mean and 95% confidence interval over 10 independent runs.
Computational Resources All experiments were conducted on a machine equipped with an AMD Ryzen Threadripper PRO 9965WX CPU (24 cores, 48 threads) and an NVIDIA RTX A1000 GPU (8 GB VRAM), running Ubuntu 24.04 LTS. A single run of PPO in HalfCheetah-v5 considering the hyperparameters of Table 2 takes minutes. Additionally, in the same setting, a run of and with in the fixed scenario takes minutes, while for fixed scenario it takes minutes.
LLMs Usage. We employed LLMs mainly as aid for editing purposes, for checking proof correctness, and for assistance with code.
D Additional Experiments
In this section, we provide the complete experimental campaign conducted for this work, of which Section 4 presents a subset. Our experiments aim to empirically understand when and how PPO can benefit from sample reuse. All experiments are designed to maintain fairness with respect to PPO, as detailed in Appendix C.
PPO Mechanics and Update Accounting. Before starting, we recall that at each iteration , PPO collects a dataset of samples under . For epochs, is shuffled and divided into mini-batches of size , each used to perform one parameter update, so PPO performs actor and critic updates per iteration. Each datum therefore has an update life cycle of updates before being discarded.
ωPPO-U and ωPPO-BH Mechanics and Update Accounting. As detailed in Section 3, rather than discarding after each iteration, ωPPO-U and ωPPO-BH maintain a sliding window of the most recent datasets, forming the composite buffer of total size , from which balanced mini-batches are drawn. As in PPO, epochs are performed per iteration, while the number and size of mini-batches depend on the comparison setting (see below and Table 3). Because each datum remains in the buffer for iterations and is replayed for epochs per iteration, its update life cycle extends to epochs.
Comparison Settings. The mini-batch sampling strategy from governs how the reuse variants differ from PPO in terms of update count, mini-batch composition, and data collection cost. We consider three settings, each designed to isolate a distinct aspect of the reuse mechanism.
• Fixed mini-batch size (Fixed B). The reuse variants share the same B and as PPO. Since , this yields mini-batches per epoch, so the reuse variants perform actor updates per iteration, exactly times as many as PPO, with each mini-batch containing samples per window index. This setting investigates whether a larger buffer, made of fresh and past data, can support more gradient steps without additional environment interaction, and whether keeping B fixed is sufficient to avoid update instability. To isolate the effect of reuse from the increased update count, we also run a PPO baseline with epochs per iteration, matching the total actor updates of the reuse variants.
• Fixed mini-batch count (Fixed ). The reuse variants keep the same as PPO, yielding larger mini-batches of size . All methods therefore perform actor updates per iteration, with each update seeing the same amount of fresh data as in PPO while additionally drawing on past samples. This setting investigates whether keeping the update count fixed while enriching each mini-batch with historical data is sufficient to improve learning, and whether mixing current and past samples within a larger mini-batch provides a benefit over using fresh data alone.
• Reduced data collection (H/ω Steps). The reuse variants collect only new environment steps per iteration, keeping , , and fixed at their PPO values. The composite buffer therefore has the same total size as PPO's dataset, but only a fraction of it consists of fresh transitions, and all methods perform actor updates per iteration. This setting investigates whether stored historical data can compensate for a reduced fresh signal, allowing the policy to advance more rapidly relative to environment interaction. Among the three settings, it poses the most stringent test of sample efficiency.
Table 3 summarizes the main characteristics of the discussed comparison settings. In the following, we analyze all three settings and use diagnostic tools to investigate when and how data reuse helps in PPO.
D.1 Fixed Mini-Batch Size and Increased PPO Epochs Settings
Here, we analyze the behavior of PPO-U and PPO-BH when sharing all hyperparameters with the tuned PPO baseline (Appendix C). Specifically, the reuse variants retain the same mini-batch size , so each mini-batch contains samples per reuse window and the reuse variants perform times as many actor updates per iteration as PPO. To isolate the effect of sample reuse from the increased number of updates alone, we also include a PPO baseline running epochs per iteration, matching the total update count of the reuse variants.
Where represents the number of parallel environments and H the number of steps performed in each environment.
The buffers are considered to have the same size since at each iteration policy is used to collect samples, as previously detailed.
| Setting | Environment Steps | Update Epochs | Mini-Batch Size | Mini-Batch Count | Updates per Iteration |
| PPO | |||||
| PPO ( epochs) | |||||
| : Fixed | |||||
| : Fixed | |||||
| : Steps |
Table 3: Summary of the main features of the considered comparison setting. Highlighted cells mark values that differ from the PPO baseline.
Figures 4 and 5 show training evaluation curves across the considered MuJoCo [57] environments and Table 4 reports final performance achieved by all methods, clustered by environment. All experiments consider three window sizes, . Overall, this set of experiments supports five conclusions: (i) PPO may truly benefit from sample reuse; (ii) this benefit is not merely attributable to performing more gradient updates; (iii) in this setting, data reuse does not always accelerate convergence but leads to higher final performance in most cases; (iv) neither nor consistently dominates the other, with both methods behaving similarly across environments; and (v) it appears that in this setting there exists a window value for which the reuse variants exhibit most of the benefit, although this window value is environment-dependent. We now detail the results for each environment in turn.
Figure 4a reports the evaluation curves on the Reacher-v5 environment. Even a reuse window of yields a clear improvement in sample efficiency, with most of the gain exhibited at . Further increasing to continues to improve sample efficiency, though with diminishing returns relative to the to step. Notably, data reuse not only accelerates learning but also leads to higher final performance (Table 4), with consistently achieving the best results across window sizes. As expected, more updates also increase wall-clock training time. The comparison against the -epoch PPO baseline is particularly informative. While this baseline initially matches the sample efficiency of the reuse variants, it becomes unstable at larger values of , a phenomenon that does not affect or . This suggests that the benefits of data reuse do not stem solely from performing more updates, but from the additional data itself.
Similar observations hold for the Swimmer-v5 environment, shown in Figure 4b. Data reuse consistently benefits PPO, though the improvement at is mild and the advantage over the -epoch PPO baseline is not clearly separable at this window size. The benefit becomes more pronounced at and , where the reuse variants reach higher final performances while the -epoch PPO baseline saturates early. Notably, unlike in Reacher-v5, increasing the window size does not accelerate convergence. Instead, data reuse allows the agent to extract more information from the available samples, translating into higher final performance, as also confirmed by Table 4, rather than faster initial learning.
One of the most instructive scenarios is the Hopper-v5 environment, shown in Figure 4c. Data reuse is beneficial for : in both cases, and behave similarly and outperform both PPO and its -epoch variant, with the latter improving over PPO at but collapsing at due to the increased number of updates. For , however, both and degrade significantly, with only eventually recovering to match PPO performance given its wide confidence interval. The -epoch PPO baseline collapses early in this regime. This setting clearly demonstrates that an optimal window size exists and that excessive reuse can actively harm performance. We conjecture this results from several compounding factors, amplified by this environment's configuration (, , ). First, at the reuse variants perform 2560 updates per iteration against the 320 of PPO, amplifying the bias introduced by stale advantages across many gradient steps. Second, each window contributes only samples per mini-batch, meaning that just of each actor update is driven by fresh data and that each critic update employs only 8 samples. Third, since all hyperparameters are inherited from PPO, the larger number of updates may increase the drift between consecutive policies and hence the diversity of the policies in the window. Past samples falling outside the clipping range contribute no gradient. In
| Algorithm | Reacher-v5 | Walker2d-v5 | Hopper-v5 | HalfCheetah-v5 | Swimmer-v5 | Ant-v5 | |
|---|---|---|---|---|---|---|---|
| PPO | |||||||
| PPO ( epochs) | 2× | ||||||
| 4× | |||||||
| 8× | |||||||
| ωPPO-U | |||||||
| ωPPO-BH | |||||||
Table 4: Average of the last 10 final performance values of the curves shown in the fixed setting (Figures 4 and 5). Each cell shows the mean C.I. edges (10 runs).
Appendix D.2, we investigate what happens when PPO and its reuse variants are instead constrained to perform the same number of updates per iteration while matching the number of mini-batches .
Figure 4d shows the same evaluation conducted in the Walker2d-v5 environment. The results are broadly consistent with the other environments: data reuse is beneficial, especially for . The -epoch PPO variant slightly improves over PPO at but fails to match the reuse variants, while for it collapses entirely. Notably, the BH correction does not appear to offer a clear advantage over uniform weighting in this environment, particularly at . Finally, while larger windows do not consistently accelerate convergence, they allow the reuse variants to reach higher final performances, as confirmed by Table 4.
Figure 5a reports the evaluation curves on the HalfCheetah-v5 environment. Data reuse consistently leads to higher final performance across all window sizes , as confirmed also by Table 4. There is a visible improvement from to , while the gain from to is negligible, suggesting that most of the benefit is already captured at moderate window sizes. PPO-U and PPO-BH perform comparably throughout, with neither variant offering a clear advantage over the other. The -epoch PPO baseline exhibits faster initial learning but fails to reach the final performance of the reuse variants, and shows increased instability, possibly due to overexploiting a fixed data batch. In contrast, PPO-U and PPO-BH perform the same number of updates while leveraging a larger and more diverse composite buffer, which appears to stabilize training and support more effective policy improvement.
Figure 5b reports the evaluation curves on the Ant-v5 environment. Unlike the other environments, data reuse does not yield a clear improvement in final performance, as confirmed by Table 4; instead, the primary benefit lies in the speed at which the agent reaches that performance. At , the -epoch PPO baseline achieves a convergence speed comparable to the reuse variants without exhibiting instability. However, at , this baseline learns faster initially but then diverges, whereas PPO-U and PPO-BH remain stable and they reach the final performance level sooner than the baseline PPO.
D.2 Fixed Mini-Batch Count Setting
Here, we analyze the behavior of PPO-U and PPO-BH when sharing all hyperparameters with the tuned PPO baseline (Appendix C), but, in contrast to Appendix D.1, we keep fixed the number of mini-batches per epoch rather than the mini-batch size . By design, the reuse variants perform the same number of updates per epoch as PPO, but leverage mini-batches of size , thereby preserving the same amount of fresh information per update, i.e., the same number of samples from the most recent policy .
Figures 6 and 7 show training evaluation curves across the considered MuJoCo [57] environments and Table 5 reports the final performance reached by the considered methods. All experiments consider three window sizes, . The results of this setting can be summarized as follows: (i) PPO consistently benefits from sample reuse; (ii) in this setting the benefit manifests in both faster convergence and higher final performance, as further confirmed by Table 5; (iii) PPO-BH tends

(a) Reacher-v5.

(b) Swimmer-v5.

(c) Hopper-v5.

(d) Walker2d-v5.
Figure 4: Comparison among PPO, PPO-BH, and PPO-U in various MuJoCo environments under different window values in the fixed B setting, showing the PPO version with increased epochs to match the number of updates performed by the reuse variants (10 runs, mean 95% C.I.).
to reach higher final performances with tighter confidence intervals, particularly for ; and across environments, appears to offer the best trade-off, with larger windows providing diminishing returns.
In Figure 6a, we show results for the Reacher-v5 environment, the simplest in our experimental campaign. The results are consistent with those of Appendix D.1, where the baseline setting is considered. The benefit of data reuse increases with : larger windows yield both faster convergence and higher final performance, with PPO-BH performing slightly better throughout. Importantly, all

(a) HalfCheetah-v5.

(b) Ant-v5.
Figure 5: Comparison among PPO, PPO-BH, and PPO-U in various MuJoCo environments under different window values in the fixed setting, showing the PPO version with increased epochs to match the number of updates performed by the reuse variants (10 runs, mean C.I.).
| Algorithm | Reacher-v5 | Walker2d-v5 | Hopper-v5 | HalfCheetah-v5 | Swimmer-v5 | Ant-v5 | |
|---|---|---|---|---|---|---|---|
| PPO | -4.35 ± 0.063 | 2430 ± 443 | 2530 ± 137 | 4330 ± 725 | 322 ± 13.6 | 3640 ± 204 | |
| ωPPO-U | ω = 2 | -4.22 ± 0.060 | 3340 ± 535 | 2680 ± 163 | 5160 ± 515 | 327 ± 9.56 | 3910 ± 130 |
| ω = 4 | -4.17 ± 0.063 | 2820 ± 485 | 2810 ± 157 | 5760 ± 569 | 327 ± 11.2 | 3820 ± 491 | |
| ω = 8 | -4.05 ± 0.057 | 3030 ± 430 | 2750 ± 131 | 5360 ± 384 | 334 ± 10.5 | 3970 ± 301 | |
| ωPPO-BH | ω = 2 | -4.12 ± 0.052 | 3250 ± 530 | 2740 ± 128 | 4580 ± 949 | 327 ± 7.69 | 3650 ± 136 |
| ω = 4 | -4.01 ± 0.045 | 3810 ± 642 | 2920 ± 159 | 5780 ± 558 | 334 ± 7.51 | 4030 ± 197 | |
| ω = 8 | -3.96 ± 0.054 | 2990 ± 375 | 2910 ± 177 | 5240 ± 447 | 326 ± 12.6 | 3960 ± 357 | |
Table 5: Average of the last 10 final performance values of the curves shown in the fixed setting (Figures 6 and 7). Each cell shows the mean C.I. edges (10 runs).
methods here perform the same number of updates, confirming that the gains are not an artifact of additional gradient steps.
For the other environments, similar conclusions can be drawn. At , data reuse provides a marginal improvement, while most of the benefit is observed at , particularly for PPO-BH. At , the pathological collapse seen in the baseline setting for Hopper-v5 (Figure 4c) disappears, suggesting that larger mini-batches and reduced update count stabilize training. However, a hindered early convergence speed remains visible. We conjecture this is due to the larger policy changes occurring during early training: consecutive policies differ the most in this phase, so that, with a large reuse window, older samples carry the most stale advantages and come from the most distant behavioral policies.
The exception in this setting is the Ant-v5 environment, the most complex among the ones considered. Unlike what is observed with fixed (Appendix D.1), data reuse does not appear to help with convergence speed here and provides only a marginal improvement in final performance, with PPO-BH at being the best-performing variant (Table 5), though the PPO baseline's confidence interval slightly overlaps with it.

(a) Reacher-v5.

(b) Swimmer-v5.

(c) Hopper-v5.

(d) Walker2d-v5.
Figure 6: Comparison among PPO, PPO-BH, and PPO-U in various MuJoCo environments under different window values in the fixed setting (10 runs, mean 95%).
D.3 Reduced Data Collection Setting
Here, we analyze PPO-U and PPO-BH under the most aggressive sample efficiency setting: in contrast to Appendices D.1 and D.2, we keep both and B fixed at their PPO values but allow the reuse variants to collect only new samples per iteration. The reuse variants therefore perform the same number of updates as PPO over a composite dataset of the same total size, but with a fresh data fraction of per iteration.

(a) HalfCheetah-v5.

(b) Ant-v5.
Figure 7: Comparison among PPO, PPO-BH, and PPO-U in various MuJoCo environments under different window values in the Fixed setting (10 runs, mean ).
| Algorithm | Reacher-v5 | Walker2d-v5 | Hopper-v5 | HalfCheetah-v5 | Swimmer-v5 | Ant-v5 | |
|---|---|---|---|---|---|---|---|
| PPO | -4.35 ± 0.063 | 2430 ± 443 | 2530 ± 137 | 4330 ± 725 | 322 ± 13.6 | 3640 ± 204 | |
| ωPPO-U | ω = 2 | -4.86 ± 0.113 | 2300 ± 629 | 2920 ± 154 | 3960 ± 994 | 292 ± 51.6 | 3520 ± 222 |
| ω = 4 | -6.30 ± 0.342 | 1420 ± 300 | 1920 ± 553 | 3830 ± 373 | 251 ± 62.1 | 2670 ± 262 | |
| ω = 8 | -7.78 ± 0.366 | 686 ± 157 | 438 ± 198 | 2710 ± 750 | 137 ± 70.1 | 1600 ± 216 | |
| ωPPO-BH | ω = 2 | -4.48 ± 0.084 | 2270 ± 463 | 3020 ± 163 | 5040 ± 711 | 269 ± 52.0 | 3500 ± 116 |
| ω = 4 | -5.06 ± 0.191 | 1160 ± 286 | 1770 ± 555 | 4070 ± 1080 | 207 ± 43.5 | 2150 ± 459 | |
| ω = 8 | -6.63 ± 0.366 | 778 ± 126 | 777 ± 218 | 3440 ± 976 | 168 ± 57.9 | 865 ± 193 | |
Table 6: Average of the last 10 final performance values of the curves shown in the steps setting (Figures 8 and 9). Each cell shows the mean C.I. edges (10 runs).
Figures 8 and 9 show training evaluation curves and Table 6 reports final performance. All experiments consider . In this setting the results are unambiguous: the considered sample reuse does not help. We conjecture that the primary cause is the severely reduced amount of fresh data available to the critic. Since the critic is updated exclusively on the most recent dataset , reducing new interactions to may directly hinder it, possibly leading to degraded advantage estimates that in turn corrupt actor updates. We anticipate that this is not mitigated by fitting the critic on the whole (see Appendix D.5). The single exception is Hopper-v5 at (Figure 8c), where both PPO-U and PPO-BH still collect 1024 fresh samples per iteration, appearing to be sufficient to maintain critic quality in this environment. In all other environments, where PPO collects only samples, the reuse variants are forced to operate with as few as 64 fresh samples at , falling below what appears to be the minimum threshold for stable learning.
D.4 PPO-U vs. PPO-BH
In this experiment, we aim to understand how the two importance weighting schemes adopted by PPO-U and PPO-BH differ in practice in their treatment of on and off-policy data. To this end, we present for all the considered environments and for all the comparison settings, the clip fraction and ESS diagnostics described in Appendix C. Each metric is evaluated before the optimization phase

(a) Reacher-v5.

(b) Swimmer-v5.

(c) Hopper-v5.

(d) Walker2d-v5.
Figure 8: Comparison among PPO, PPO-BH, and PPO-U in various MuJoCo environments under different window values in the steps setting (10 runs, mean 95%).
at every iteration, allowing us to distinguish the distributional shift already present at the start of each iteration.
Before presenting the results, we recall that:
• The clip fraction captures how frequently the clipping mechanism is active for data from window index . A high value indicates that a large fraction of transitions are effectively excluded from the gradient signal, suggesting a significant distributional shift between the current policy and the one at the denominator of the importance weight, i.e., either the policy under which samples have been collected or the uniform mixture policy.

(a) HalfCheetah-v5.

(b) Ant-v5.
Figure 9: Comparison among PPO, PPO-BH, and PPO-U in various MuJoCo environments under different window values in the steps setting (10 runs, mean 95%).
• The normalized ( ) measures the statistical efficiency of the importance weights: it equals 1 when the current policy matches the sampling distribution exactly, and decreases as the two distributions diverge.
Together, these two metrics provide complementary views of how stale the reused data is and how each method manages the resulting off-policy correction. Specifically, we group the plots of these metrics per environment:
• Figure 10 shows the metrics for the Reacher-v5 environment;
• Figure 11 shows the metrics for the Swimmer-v5 environment;
• Figure 12 shows the metrics for the Hopper-v5 environment;
• Figure 13 shows the metrics for the Walker2d-v5 environment;
• Figure 14 shows the metrics for the HalfCheetah-v5 environment;
• Figure 15 shows the metrics for the Ant-v5 environment.
Each figure reports the metric at hand averaged over the entire training and grouped by window index.
Window Index Effect Under PPO-U. Under the vanilla uniform weighting scheme, older data corresponding to larger window indices consistently exhibit higher and lower , before optimization. This is expected: since the policy has already been updated on those samples in previous iterations, the importance ratio for older transitions deviates more from 1 than for recently collected data, reflecting the growing distributional shift between the current policy and the one that generated them. This is also reflected by the which decreases monotonically with window index.
The Effect of the BH Correction. Since PPO-BH weights all samples w.r.t. the mixture policy , both and are approximately constant across all window indices before optimization, effectively equalizing the distribution of the IWs across window indices (the advantages of older samples, however, remain stale). Crucially, PPO-BH also maintains a substantially higher and more uniform across all window indices compared to PPO-U. This may allow PPO-BH to extract more reliable gradient signal from samples coming from older iterations. It is worth noting, however, that this equalization comes at a cost: since the BH ratios of the most recent data (window index ) generally differ from 1, a fraction of new transitions already falls outside the clipping range before any gradient update, conversely to what happens in both PPO and PPO-U.

(a) Clip Fraction diagnostic: Fixed B.
(b) ESS diagnostic: Fixed B.

(c) Clip Fraction diagnostic: Fixed .
(d) ESS diagnostic: Fixed .

(e) Clip Fraction diagnostic: Fixed Steps.
(f) ESS diagnostic: Fixed Steps.
Figure 10: Clip Fraction and ESS diagnostics in Reacher-v5 (10 runs, mean ± 95% C.I.).
D.5 Ablation: Training the Critic on vs. on
In this section, we conduct an ablation on whether to fit the critic on the full composite buffer rather than on the most recent dataset alone, as done in all other experiments and motivated in Section 3. We consider Reacher-v5, Swimmer-v5, and Hopper-v5 across the three comparison settings. Training evaluation curves are reported in Figures 16, 17, and 18, with overall performance in Table 7. We denote by PPO-U Off and PPO-BH Off the variants fitting the critic on .
In general, by looking at Table 7 only and if the aim is just to find the best-performing configuration of PPO-U and PPO-BH (relative to our controlled scenarios), then one could treat the fitting of the critic of the whole buffer as an additional hyperparameter to explore. However, results appear to be tied to the specific starting hyperparameter configuration, considered control task, and considered comparison setting. For instance, in Reacher-v5 fitting the critic on delivers the best performance across all the comparison settings, as well as in Hopper-v5, but for the sole fixed scenario. Otherwise, results may vary and often there is not a clear distinction in achieved final performance and in many cases, as enlarges, final and training performances tends to degrade when fitting the critic on . Next, we comment the comparison settings separately, considering to group them by .
In the fixed B setting (Figures 16a, 17a, and 18a), results are nearly identical at , but as increases, fitting on either worsens performance or leaves it unchanged across all environments. The only exception is Reacher-v5, where past data yields a marginal improvement in final performance, particularly for PPO-BH, though the gain is negligible relative to fitting on only.
In the fixed setting (Figures 16b, 17b, and 18b), performance in Reacher-v5 is comparable across both strategies for all window sizes, while in Swimmer-v5 fitting on the full appears to

(a) Clip Fraction diagnostic: Fixed B.
(b) ESS diagnostic: Fixed B.

(c) Clip Fraction diagnostic: Fixed .
(d) ESS diagnostic: Fixed .

(e) Clip Fraction diagnostic: Fixed Steps.
(f) ESS diagnostic: Fixed Steps.
Figure 11: Clip Fraction and ESS diagnostics in Swimmer-v5 (10 runs, mean ± 95% C.I.).
hinder training, particularly at . A notable exception is Hopper-v5, where fitting on improves final performance for both variants and all window sizes.
In the steps setting (Figures 16c, 17c, and 18c), the choice of critic fitting strategy has no discernible effect across all window sizes, as all methods perform poorly regardless.
Overall, fitting the critic on, as enlarges, either shows no clear advantage or actively worsens learning, with the exceptions of Reacher-v5 (all settings) and Hopper-v5 in the fixed setting only. As discussed in Section 3, past windows in contain return estimates computed under the critic available at collection time; without re-evaluation under the current critic [e.g., 46, 33, 69], stale returns may introduce a bias accumulating with the window size. This ablation confirms that such bias may be harmful, though its magnitude appears to depend on both the environment and the comparison setting and, as previously said, when the goal is just to find the best reuse configuration, then fitting the critic on the whole could be considered as an additional exploring dimension. However, for the purpose of this work and given this ablation, we decided to conduct the controlled study on reusing fitting the critic on only.

(a) Clip Fraction diagnostic: Fixed .
(b) ESS diagnostic: Fixed .

(c) Clip Fraction diagnostic: Fixed .
(d) ESS diagnostic: Fixed .

(e) Clip Fraction diagnostic: Fixed Steps.
(f) ESS diagnostic: Fixed Steps.
Figure 12: Clip Fraction and ESS diagnostics in Hopper-v5 (10 runs, mean C.I.).
| Algorithm | Reacher | Hopper | Swimmer | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Fixed | Fixed | Steps | Fixed | Fixed | Steps | Fixed | Fixed | Steps | ||
| PPO | ||||||||||
| PPO ( epochs) | — | — | — | — | — | — | ||||
| — | — | — | — | — | — | |||||
| — | — | — | — | — | — | |||||
| PPO-U | ||||||||||
| PPO-U Off | ||||||||||
| PPO-BH | ||||||||||
| PPO-BH Off | ||||||||||
Table 7: Average of the last 10 final performance values of the curves shown in the critic fitting ablation (Figures 16, 17, and 18). Each cell shows the mean C.I. edges (10 runs).

(a) Clip Fraction diagnostic: Fixed B.
(b) ESS diagnostic: Fixed B.

(c) Clip Fraction diagnostic: Fixed .
(d) ESS diagnostic: Fixed .

(e) Clip Fraction diagnostic: Fixed Steps.
(f) ESS diagnostic: Fixed Steps.
Figure 13: Clip Fraction and ESS diagnostics in Walker2d-v5 (10 runs, mean ± 95% C.I.).

(a) Clip Fraction diagnostic: Fixed B.
(b) ESS diagnostic: Fixed B.

(c) Clip Fraction diagnostic: Fixed .
(d) ESS diagnostic: Fixed .

(e) Clip Fraction diagnostic: Fixed Steps.
(f) ESS diagnostic: Fixed Steps.
Figure 14: Clip Fraction and ESS diagnostics in HalfCheetah-v5 (10 runs, mean ± 95% C.I.).

(a) Clip Fraction diagnostic: Fixed B.
(b) ESS diagnostic: Fixed B.

(c) Clip Fraction diagnostic: Fixed .
(d) ESS diagnostic: Fixed .

(e) Clip Fraction diagnostic: Fixed Steps.
(f) ESS diagnostic: Fixed Steps.
Figure 15: Clip Fraction and ESS diagnostics in Ant-v5 (10 runs, mean ± 95% C.I.).

(a) Fixed B setting.

(b) Fixed setting.

(c) steps setting.
Figure 16: Ablation on training the critic on on-policy data only vs. on off-policy data too. Evaluation conducted in the Reacher-v5 environment, considering all the presented comparison settings (10 runs, mean ± 95%).

(a) Fixed B setting.

(b) Fixed setting.

(c) steps setting.
Figure 17: Ablation on training the critic on on-policy data only vs. on off-policy data too. Evaluation conducted in the Swimmer-v5 environment, considering all the presented comparison settings (10 runs, mean ± 95%).

(a) Fixed B setting.

(b) Fixed setting.

(c) steps setting.
Figure 18: Ablation on training the critic on on-policy data only vs. on off-policy data too. Evaluation conducted in the Hopper-v5 environment, considering all the presented comparison settings (10 runs, mean ± 95%).