Bridging the Gap Between Value and Policy Based Reinforcement Learning

Ofir Nachum, Mohammad Norouzi, Kelvin Xu, Dale Schuurmans

TL;DR

This paper introduces Path Consistency Learning (PCL), a novel reinforcement learning (RL) framework that bridges the gap between value-based (Q-learning) and policy-based (actor-critic) methods. By leveraging entropy regularization, the authors derive a "softmax" consistency property that enables stable, off-policy learning using a single model to represent both the agent's behavior and its value function.

Introduction: The RL Divide

In the realm of Reinforcement Learning, algorithms traditionally fall into two distinct camps:

  1. Policy-based methods (e.g., REINFORCE): These directly optimize the agent's behavior. While stable, they are notoriously "sample inefficient," requiring massive amounts of data because they typically only learn from their most recent, on-policy experiences.
  2. Value-based methods (e.g., Q-learning): These learn the expected value of actions. They are highly "sample efficient" due to their ability to learn from any past data (off-policy), but they often suffer from instability when combined with deep neural networks.

Actor-critic methods attempt to marry these two approaches by using a "critic" (value-based) to guide the "actor" (policy-based). However, combining them often introduces bias or requires complex heuristics to maintain training stability. The authors of this paper sought a more fundamental, theoretical connection to unify these perspectives into a single, stable objective.

Methodology: Path Consistency Learning (PCL)

The core innovation of this work is Path Consistency Learning (PCL). The authors move away from the standard "hard-max" Bellman equations—which greedily look for the single best action—and instead utilize entropy regularization. This approach encourages the agent to explore by rewarding it for maintaining a diverse policy.

Key technical components include:

  • Softmax Temporal Consistency: The authors mathematically prove that under entropy regularization, there is a precise relationship between optimal policy probabilities and "soft" state values.
  • Multi-step Path Consistency: Unlike standard Q-learning, which typically looks only one step ahead, PCL defines a consistency error over entire sub-trajectories (paths). This allows the model to effectively link rewards and actions across many time steps.
  • Unified PCL: Perhaps the most elegant contribution is the "Unified" version of the algorithm. Because of the derived softmax consistency, the authors demonstrate that two separate models (an actor and a critic) are not strictly necessary. A single neural network representing action values ($Q$) can implicitly define both the optimal policy and the state values.

Experimental Setup

The researchers evaluated PCL on a suite of increasingly difficult algorithmic tasks (commonly found in environments like the OpenAI Gym), which require learning long-term dependencies and precise action sequences:

  • Basic Tasks: Copy, DuplicatedInput, RepeatCopy.
  • Challenging Tasks: Reverse, ReversedAddition, ReversedAddition3, and Hard ReversedAddition.
  • Synthetic Tree: A task specifically designed to test exploration in a branching environment.

Key Results and Insights

The "Bridge" is Entropy: The fundamental insight of PCL is that entropy regularization is not merely a heuristic trick for exploration; it is the mathematical glue that ensures the policy and value functions remain consistent with one another. Furthermore, this consistency holds for any sequence of actions, regardless of whether they were optimal. This property is what makes PCL so effective at off-policy learning, allowing it to learn efficiently from a replay buffer of old, sub-optimal experiences.

Outperforming Baselines: PCL significantly outperformed strong baselines like A3C (a popular actor-critic method) and DQN (the gold standard for value-based deep RL) across the algorithmic benchmarks. PCL demonstrated much more stable learning curves on difficult tasks like ReversedAddition, where DQN often failed to converge.

PCL outperforms A3C and DQN across various algorithmic tasks.

Expert Integration: The authors also demonstrated that PCL can seamlessly incorporate "expert" trajectories. By seeding the replay buffer with just 10 expert examples, the agent's performance on the hardest tasks skyrocketed. This highlights how effectively the algorithm handles diverse, off-policy data sources.

Integrating expert trajectories significantly accelerates learning on hard tasks.

Limitations and Future Work

  • Stochastic Environments: While the paper provides a theoretical framework for stochastic environments, the squared consistency error used in the experiments is technically a biased estimator when transitions are random. The authors note that while it works well in practice, more sophisticated "double-sampling" or gradient techniques might be necessary for highly noisy environments.
  • Hyperparameter Sensitivity: Like many RL algorithms, PCL introduces a "temperature" parameter ($\tau$) to control entropy. Finding the optimal balance between exploration (high $\tau$) and exploitation (low $\tau$) remains a manual tuning challenge.
  • Scaling to Visual Tasks: The experiments primarily focused on algorithmic and vector-based tasks. Future work will involve testing PCL on high-dimensional visual inputs, such as Atari games or complex robotic simulations.

Summary updated

BibTeX
@inproceedings{nachum2017bridging,
  author = {Ofir Nachum and Mohammad Norouzi and Kelvin Xu and Dale Schuurmans},
  title = {{Bridging the Gap Between Value and Policy Based Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=HJbOQwWObS},
}
Figure