Off-Policy Deep Reinforcement Learning by Bootstrapping the Covariate Shift.

Carles Gelada, Marc G. Bellemare

Introduction

Reinforcement learning (RL) often faces the "deadly triad"—the unstable combination of off-policy learning, function approximation (like neural networks), and bootstrapping (temporal difference learning). While off-policy learning is highly efficient, allowing agents to learn from diverse data sources, it frequently leads to value function divergence. This paper addresses this instability by introducing a practical method to estimate the "covariate shift"—the ratio between the target and behavior distributions—specifically designed for deep RL.

Methodology

The authors propose two key innovations to stabilize covariate shift estimation:

  1. Discounted COP-TD: By introducing a discount factor ($\hat{\gamma}$) into the ratio update rule, the authors transform the ratio-learning operator into a contraction mapping. This ensures convergence to a unique fixed point, bypassing the need for complex projection steps required by previous methods like COP-TD.
  2. Soft Ratio Normalization: A "soft" normalization penalty is used to keep learned ratios well-behaved. The authors derive an unbiased gradient estimator for online optimization via mini-batches.

Rather than direct loss reweighting, which often causes high variance, the learned ratios are used to prioritize transitions in the replay memory. This effectively focuses the agent's learning on transitions most relevant to the current target policy.

Experimental Results

The method was evaluated on the Arcade Learning Environment (ALE), focusing on five Atari 2600 games: Pong, Seaquest, Breakout, Asterix, and Space Invaders. The agents were tested in a challenging off-policy scenario: learning a control policy while only observing data generated by a uniformly random behavior policy.

Performance comparison of the corrected agent versus uncorrected and random baselines across five Atari games.

As shown in the results, the "Corrected" agent significantly outperformed the uncorrected baseline in Seaquest, Breakout, and Pong. In Pong, the agent achieved near-maximum scores despite the random data source. In Asterix, performance remained neutral, while a slight performance loss was observed in Space Invaders compared to the uncorrected baseline.

Stability and Divergence

A critical finding was the role of the discount factor $\hat{\gamma}$ in maintaining stability. Without proper discounting or normalization, the value function often diverged, illustrating the risks of the deadly triad.

Stability analysis on Pong illustrating how different values of the discount factor $\hat{\gamma}$ affect convergence and prevent divergence.

The discounted version showed no signs of the divergence seen in undiscounted variants. Qualitative analysis in Pong revealed that the model correctly learns the relevance of states; it assigns low ratios to states a good policy would avoid, such as those where the opponent is about to score, and higher ratios to states likely to be visited by an optimal policy.

Conclusion and Future Work

This work demonstrates that bootstrapping the covariate shift with a discount factor provides a stable and effective way to handle off-policy data in deep RL. By turning ratio estimation into a contraction mapping, the authors provide a tool that integrates well with modern neural network architectures. While the method shows clear gains, future work could explore learning ratios under non-uniform sampling distributions and combining this "backward" correction with "forward" off-policy methods like Retrace. Extending the approach to handle data from multiple historical policies also remains an important next step for scaling RL.

Summary updated

BibTeX
@inproceedings{gelada2019off,
  author = {Carles Gelada and Marc G. Bellemare},
  title = {{Off-Policy Deep Reinforcement Learning by Bootstrapping the Covariate Shift.}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33013647},
}
Figure