Qualitative Measurements of Policy Discrepancy for Return-based Deep Q-Network

Wenjia Meng, Qian Zheng, Long Yang, Pengfei Li, Gang PanIEEE TNNLS 2018 · DOI

TL;DR

This paper introduces R-DQN, a unified framework that combines Deep Q-Networks (DQN) with return-based reinforcement learning algorithms. They also propose a novel strategy with two measurements to qualitatively assess policy discrepancy, leading to improved performance and state-of-the-art results on various benchmark tasks.

What Problem Does This Paper Address?

Reinforcement learning (RL) has seen significant progress with algorithms like Deep Q-Networks (DQN), which excel at complex sequential decision-making. However, traditional DQN primarily uses one-step samples, which can lead to instability with function approximation. Return-based RL algorithms, on the other hand, can leverage multi-step trajectories, offering advantages in sample efficiency. While attempts have been made to combine these approaches, existing methods often have specialized formulations, limiting their generality. Furthermore, a qualitative understanding and measurement of "policy discrepancy" – the difference between the policy being learned and the policy used to generate data – has been lacking. This gap hinders the ability to effectively utilize off-policy data and distinguish between near on-policy and near off-policy scenarios, which is crucial for optimizing learning.

Methods

The core contribution is the R-DQN framework, a general approach to integrate various return-based RL algorithms with DQN. This framework uses a unified update target that accommodates different return-based methods. A key innovation is the introduction of a strategy with two qualitative measurements for policy discrepancy:

  • β-based measurement: This measures the L1 distance between the target and behavior policies across all actions for a given state. It's designed to be more sensitive when actions are less relevant to the environment's immediate state change.
  • η-based measurement: This focuses on the sampled action itself, comparing the target and behavior policies' probabilities for that specific action. This is more relevant when actions significantly impact the environment.

These measurements are derived from two definitions of "near on-policy" and "near off-policy" cases, aiming to help the algorithm adapt its learning based on how closely the behavior policy matches the target policy. The paper also derives bounds for these measurements, assuming an ε-greedy exploration strategy.

Datasets

The paper evaluates its proposed methods on several standard RL benchmarks:

  • OpenAI Gym: CartPole-v1, CartPole-v2, Copy-v0, Pixelcopter-v0
  • Classic Control Tasks: Mountain Car, Cliff Walking
  • Atari Games: berzerk, hero, qbert, seaquest

No new datasets were introduced.

Key Insights and Ideas

  • Unified Framework for Return-Based RL: The R-DQN framework provides a flexible way to combine diverse return-based RL algorithms with DQN, overcoming the limitations of specialized integration methods.
  • Qualitative Policy Discrepancy Matters: Explicitly measuring and understanding policy discrepancy is crucial for effectively utilizing off-policy data. The paper demonstrates that this can be done qualitatively.
  • Context-Dependent Measurements: The two proposed measurements (β and η) offer different perspectives on policy discrepancy, with one being more suitable for scenarios where actions have less environmental impact (β) and the other for scenarios where actions are more critical (η). This suggests that the choice of measurement can be tailored to the task.
  • Improved Performance: Integrating return-based methods via R-DQN, especially with the proposed qualitative measurements, consistently improves upon traditional DQN and achieves state-of-the-art results.

Key Results

  • Improved Performance over DQN: Experiments show that R-DQN algorithms consistently outperform traditional DQN across various OpenAI Gym tasks (CartPole, Copy, Pixelcopter).
  • State-of-the-Art Achievements: The R-DQN framework, particularly when enhanced with the proposed QM(λ) strategy (using β or η measurements), achieves state-of-the-art performance on several benchmark tasks, including Atari games. For instance, QM(λ) with β-based measurement achieved the highest average return in Mountain Car, and QM(λ) with η-based measurement showed strong performance in Cliff Walking.
  • Effectiveness of Measurements: The experiments demonstrate that the proposed β and η measurements help R-DQN algorithms achieve comparable or higher scores than original R-DQN algorithms, validating their effectiveness in improving learning.

Limitations and Future Work

  • Simple L1 Metric: The authors acknowledge that the L1 distance used for the measurements is a simple metric. They suggest that exploring other metrics, such as Kullback-Leibler divergence, could be a valuable future direction for measuring policy discrepancy.
  • One-Step Sample Definitions: The definitions of near on- and off-policy cases are based on one-step samples. The paper suggests that developing more general definitions that can account for multi-step samples would be beneficial.
  • Exploration Parameter Assumption: The derivation of measurement bounds relies on a reasonable ε range assumption for exploration parameters. The authors note that this might not be applicable in scenarios demanding extreme exploration, and more general derivation processes could be explored.

Summary updated

BibTeX
@article{meng2018qualitative,
  author = {Wenjia Meng and Qian Zheng and Long Yang and Pengfei Li and Gang Pan},
  title = {{Qualitative Measurements of Policy Discrepancy for Return-based Deep Q-Network}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2018},
  doi = {10.1109/tnnls.2019.2948892},
}
Figure