On the Reuse Bias in Off-Policy Reinforcement Learning

Chengyang Ying, Zhongkai Hao, Xinning Zhou, Hang Su, Dong Yan, Jun Zhu

Abstract

Importance sampling (IS) is a popular technique in off-policy evaluation, which re-weights the return of trajectories in the replay buffer to boost sample efficiency. However, training with IS can be unstable and previous attempts to address this issue mainly focus on analyzing the variance of IS. In this paper, we reveal that the instability is also related to a new notion of Reuse Bias of IS -- the bias in off-policy evaluation caused by the reuse of the replay buffer for evaluation and optimization. We theoretically show that the off-policy evaluation and optimization of the current policy with the data from the replay buffer result in an overestimation of the objective, which may cause an erroneous gradient update and degenerate the performance. We further provide a high-probability upper bound of the Reuse Bias, and show that controlling one term of the upper bound can control the Reuse Bias by introducing the concept of stability for off-policy algorithms. Based on these analyses, we finally present a novel Bias-Regularized Importance Sampling (BIRIS) framework along with practical algorithms, which can alleviate the negative impact of the Reuse Bias. Experimental results show that our BIRIS-based methods can significantly improve the sample efficiency on a series of continuous control tasks in MuJoCo.

Introduction

Off-policy reinforcement learning (RL) leverages historical data stored in a replay buffer to improve sample efficiency. To correct for the distribution shift between the behavior policy that collected the data and the current target policy, Importance Sampling (IS) is typically employed. While the RL community has traditionally focused on the high variance of IS as the primary source of training instability, this paper identifies a more fundamental pitfall: Reuse Bias.

Reuse Bias occurs when the same set of data is used to both optimize and evaluate a policy. This dual use leads to a form of overfitting where the agent overestimates the expected return by exploiting specific quirks in the sampled data. This over-optimism misleads gradient updates, potentially causing performance degradation or collapse, especially in complex environments.

The Reuse Bias and BIRIS Framework

The authors formally define Reuse Bias as the expected difference between the estimated return (via IS) and the true return when the policy depends on the replay buffer. Through theoretical analysis, they prove that off-policy evaluation is a systematic overestimation (Theorem 1) and that this bias can grow arbitrarily large regardless of the true return (Theorem 3).

Mechanism of Reuse Bias and the BIRIS regularization framework.

To mitigate this, the Bias-Regularized Importance Sampling (BIRIS) framework is introduced. By deriving high-probability upper bounds for the bias using PAC-Bayes techniques, the authors link bias reduction to algorithmic stability—the degree to which a policy changes when a single trajectory in the buffer is replaced. BIRIS adds a regularization term, $\mathcal{L}(\pi, \mathcal{B})$, to the standard RL objective, penalizing the policy when the ratio between the target and behavior policies deviates significantly from unity. For practical implementation in actor-critic algorithms like SAC and TD3, a state-level surrogate $L_{BR}$ is used to maintain numerical stability.

Experimental Evaluation

The BIRIS framework was evaluated on discrete (MiniGrid) and continuous (MuJoCo) control tasks. In MiniGrid, BIRIS demonstrated a dramatic reduction in "Relative Reuse Bias." For instance, in a 16x16 grid, standard PG+IS exhibited a relative bias of 19.04, whereas PG+WIS+BIRIS reduced it to 0.05.

Performance on Humanoid-v3 task comparing SAC+BIRIS against baselines.

In the MuJoCo suite, BIRIS consistently improved cumulative rewards across tasks such as Ant, HalfCheetah, and Walker2d. The most significant gains were observed in the challenging Humanoid-v3 environment, where SAC+BIRIS and TD3+BIRIS achieved higher scores and smoother learning trajectories compared to vanilla versions or those using Prioritized Experience Replay (PER).

Key Insights and Conclusion

This research highlights that data reuse bias is a "silent killer" in off-policy RL, becoming increasingly severe as environment complexity grows. Crucially, simply increasing the replay buffer size does not eliminate this bias if the policy space is sufficiently large. By bridging algorithmic stability and RL performance, the authors show that stable algorithms naturally suffer less from Reuse Bias. While BIRIS introduces a hyperparameter $\alpha$ for regularization balance, it offers a robust mechanism to improve the reliability and efficiency of off-policy learning in high-dimensional state spaces.

Summary updated

BibTeX
@inproceedings{ying2023reuse,
  author = {Chengyang Ying and Zhongkai Hao and Xinning Zhou and Hang Su and Dong Yan and Jun Zhu},
  title = {{On the Reuse Bias in Off-Policy Reinforcement Learning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.24963/ijcai.2023/502},
}
Figure