Abstract
Off-policy reinforcement learning (RL) is widely utilized for its sample efficiency, enabling agents to learn from historical data stored in a replay buffer. However, this paper identifies a systematic overestimation phenomenon termed Reuse Bias, which arises when the same data is used for both policy optimization and evaluation. We demonstrate that this bias can lead to training instability and performance collapse. To address this, we propose Bias-Regularized Importance Sampling (BIRIS), a framework that incorporates a regularization term to penalize policy divergence from the data distribution. Our experiments on MiniGrid and MuJoCo benchmarks show that BIRIS significantly reduces bias and enhances sample efficiency and stability in complex environments.
Introduction
The ability to learn from historical trajectories—off-policy learning—is a cornerstone of modern reinforcement learning. By utilizing a replay buffer, agents can reuse past experiences, significantly reducing the number of environment interactions required. Traditionally, Importance Sampling (IS) is employed to correct the distribution mismatch between the behavior policy (which collected the data) and the target policy (being optimized). While the RL community has often attributed off-policy instability to the high variance of IS, this research uncovers a more fundamental issue: Reuse Bias.
Reuse Bias occurs because the policy is optimized to maximize performance on the specific samples within the replay buffer. When these same samples are used to estimate the policy's value, the result is an over-optimistic "hallucination" of performance, akin to a student taking an exam composed of the exact same questions they practiced.
The Reuse Bias Problem
The authors provide a formal mathematical framework characterizing off-policy evaluation as a systematic overestimation. They link this bias to algorithmic stability: if a policy changes drastically based on a single trajectory in the buffer, it is prone to high bias.
As shown in the figure above, standard off-policy methods like PG+IS exhibit a significant gap between the estimated return ($\hat{J}$) and the true return ($J$). This overestimation misleads gradient updates, reinforcing sub-optimal actions and potentially causing training to collapse.
The BIRIS Framework
To mitigate Reuse Bias, we introduce Bias-Regularized Importance Sampling (BIRIS). The core idea is to add a regularization term, $\mathcal{L}(\pi, \mathcal{B})$, to the standard RL loss function. This term penalizes the policy if it deviates too far from the distribution of the data in the replay buffer, effectively enforcing a degree of "stability" that prevents the agent from overfitting to the buffer's specific trajectories.
In practice, calculating full trajectory probabilities is computationally intensive. BIRIS utilizes a state-level surrogate loss ($L_{BR}$) that examines the ratio between the current policy and the behavior policy for individual state-action pairs. This approach is orthogonal to existing variance-reduction techniques and can be integrated into state-of-the-art algorithms like Soft Actor-Critic (SAC) and Twin Delayed DDPG (TD3).
Experimental Evaluation
The effectiveness of BIRIS was evaluated on two distinct platforms:
- MiniGrid: A grid-world environment used to visualize and precisely measure the magnitude of Reuse Bias.
- MuJoCo: A suite of continuous control tasks (e.g., Ant, HalfCheetah, Humanoid) providing high-dimensional physics simulations to test scalability.
Results and Discussion
Experimental results demonstrate that BIRIS effectively reduces the relative Reuse Bias. In MiniGrid, bias was reduced from massive overestimations (e.g., 19.04) to near-zero levels (0.05). On MuJoCo benchmarks, SAC+BIRIS and TD3+BIRIS consistently outperformed their standard counterparts. For instance, in the complex Humanoid task, SAC+BIRIS achieved a return of approximately 5466, compared to 5145 for standard SAC. Furthermore, training curves for BIRIS-based methods exhibited lower standard deviation, indicating significantly smoother and more reliable learning processes.
Conclusion
This work identifies Reuse Bias as a critical, yet previously overlooked, factor in the instability of off-policy RL. By framing this bias as a form of overfitting and providing the BIRIS regularization framework, we bridge the gap between statistical learning theory and reinforcement learning. Future work includes optimizing the hyperparameter $\alpha$ and exploring the potential of BIRIS in Offline RL settings, where data reuse is even more prevalent.
Summary updated