Introduction
Off-policy reinforcement learning (RL) allows agents to learn from diverse data sources, such as previous iterations of the agent or random exploration. However, the combination of off-policy learning, function approximation (e.g., deep neural networks), and bootstrapping often leads to the "deadly triad," where value estimates diverge. A theoretical solution involves reweighting updates using the covariate shift—the ratio between the target and behavior state distributions. While the COP-TD algorithm was designed for this purpose, its original formulation was unstable and computationally expensive for deep learning architectures.
Methodology
The authors introduce three key modifications to stabilize COP-TD for deep RL:
1. Discounted COP-TD
The primary innovation is the introduction of a discount factor ($\hat{\gamma}$) into the ratio update rule. This modification transforms the update into a contraction mapping, mathematically guaranteeing convergence to a unique fixed point. Intuitively, this acts as a "reset" probability, preventing density ratios from exploding by periodically anchoring them to the behavior distribution.
2. Soft Ratio Normalization
Traditional COP-TD requires a hard projection onto a probability simplex, which is incompatible with standard backpropagation. The authors replace this with a differentiable normalization loss, allowing the network to learn properly scaled ratios (summing to 1) through standard gradient descent.
3. Prioritized Replay Integration
To manage variance, the learned ratios are used to prioritize samples within a replay buffer rather than directly multiplying the loss. This effectively re-samples transitions that are more likely under the current target policy, focusing the agent's training on relevant experiences.
Experimental Evaluation
The method was evaluated on five games within the Arcade Learning Environment (ALE): Pong, Seaquest, Breakout, Asterix, and Space Invaders. The experimental setup utilized a "drastic" off-policy scenario where the behavior policy was entirely random.
As shown in the results, the "Corrected" agent (using the proposed modifications) outperformed the "Uncorrected" baseline in the majority of tasks. In environments like Seaquest and Breakout, the performance gap is substantial. In Pong, the corrected method reaches higher returns, while in Asterix, both methods achieve similar performance. These results demonstrate that covariate shift correction can significantly improve learning from random behavior data, although performance gains can vary by environment.
Stability and Ablation Studies
The stability of the algorithm is highly dependent on the new hyperparameters, particularly the discount factor $\hat{\gamma}$.
Ablation studies in the Pong environment reveal that while the algorithm is robust to a range of $\hat{\gamma}$ values, the choice of discount factor directly influences the learning curve's smoothness and final performance. The "Uncorrected" version, by contrast, lacks this stabilizing mechanism and often achieves lower returns. Qualitative analysis further showed that the model correctly assigns high ratios to states where the agent is likely to succeed (e.g., returning a ball in Pong) and low ratios to failure states.
Conclusion and Future Work
By bootstrapping the covariate shift with discounting and soft normalization, this work provides a practical path for stable off-policy deep RL. While the method effectively mitigates the deadly triad, it introduces trade-offs regarding effective dataset size and hyperparameter sensitivity. Future research may explore combining these "backward" density ratio methods with "forward" off-policy corrections like Retrace to further enhance sample efficiency and robustness.
Summary updated