Quantile-Based Deep Reinforcement Learning using Two-Timescale Policy Gradient Algorithms

Jinyang Jiang, Jiaqiao Hu, Yijie PengarXiv 2023 · DOI

Abstract

Standard reinforcement learning (RL) paradigms typically focus on maximizing the expected cumulative reward. However, in many real-world applications—such as finance, supply chain management, and autonomous systems—the average performance is less critical than the risk of catastrophic "tail" events. This paper presents Quantile-Based Policy Optimization (QPO) and its data-efficient off-policy variant, Quantile-Based Proximal Policy Optimization (QPPO). By employing a two-timescale stochastic approximation, these algorithms allow agents to optimize for specific quantiles of the reward distribution. Experimental results across robotic control, portfolio management, and inventory tasks demonstrate that quantile-based agents achieve superior tail performance and exhibit emergent risk-averse behaviors compared to traditional mean-optimizing methods.

Introduction: The Challenge of Tail Risks

In classical RL, the objective is to maximize the expected value of cumulative rewards. While effective for games or deterministic environments, this approach often fails in high-uncertainty "noisy" systems. For instance, an inventory manager or a financial trader is often more concerned with avoiding the worst-case scenario (the "tail risk") than achieving a high average profit.

Optimizing for quantiles (e.g., Value-at-Risk) is mathematically challenging for two primary reasons:

  1. Non-Recursive Structure: Unlike the mean, the quantile of a sum of rewards cannot be easily decomposed into a sum of quantiles. This breaks the standard Bellman equation, which is the foundation of most RL algorithms.
  2. Biased Gradients: Estimating the gradient of a quantile is significantly harder than estimating the gradient of a mean. It typically requires knowledge of the true quantile value and the probability density of rewards, both of which are unknown during training.

Methodology

To address these challenges, the authors propose two novel algorithms:

Quantile-Based Policy Optimization (QPO)

QPO is an on-policy algorithm that utilizes two-timescale stochastic approximation. It runs two coupled iterations simultaneously: a "fast" iteration to estimate the current quantile of the policy’s reward distribution, and a "slow" iteration to update the policy parameters. A key innovation is the observation of directional equivalence: the quantile gradient shares the same direction as the gradient of the distribution function, allowing the algorithm to skip difficult density estimations.

Quantile-Based Proximal Policy Optimization (QPPO)

To improve data efficiency, the authors developed QPPO, an off-policy variant. It incorporates the "clipping" mechanism from the popular PPO algorithm to prevent destabilizingly large policy updates. Furthermore, it utilizes truncated trajectories, allowing for multiple parameter updates within a single simulation episode.

Key Insights and Distributional Evolution

The core advantage of quantile-based RL is its ability to reshape the entire reward distribution rather than just shifting the mean.

Comparison of reward distribution evolution between Mean-based RL and Quantile-based RL.

As shown in the figure above, mean-based RL focuses on shifting the bulk of the distribution, often leaving a significant "left tail" of low-reward outcomes. In contrast, Quantile-based RL actively compresses and shifts the distribution to ensure that even the lower quantiles meet a certain performance threshold. This leads to several emergent behaviors, such as risk-averse hedging in financial tasks and increased policy stability in supply chain management.

Experimental Results

The researchers evaluated QPO and QPPO across several benchmarks, including robotic control (Cart Pole, Reacher), financial portfolio management, and multi-echelon supply chain problems.

Performance of Quantile-based RL on standard robotic control benchmarks (Cart Pole and Reacher).

The results indicate that QPPO significantly outperformed standard PPO in tail-risk metrics. While mean-based agents occasionally achieved higher average rewards, their reward distributions possessed much riskier left tails. Furthermore, QPPO reached optimal performance significantly faster than the vanilla QPO, validating the effectiveness of the off-policy clipping and truncation techniques.

Limitations and Future Work

Despite its success, the framework has limitations. The use of truncated trajectories introduces a bias, though this bias vanishes as the time horizon grows. Additionally, two-timescale algorithms are sensitive to the tuning of two separate learning rates. Future research may extend this framework to distortion risk measures, allowing for even more nuanced risk-tuning in autonomous and financial systems.

Summary updated

BibTeX
@misc{jiang2023quantile,
  author = {Jinyang Jiang and Jiaqiao Hu and Yijie Peng},
  title = {{Quantile-Based Deep Reinforcement Learning using Two-Timescale Policy Gradient Algorithms}},
  year = {2023},
  eprint = {2305.07248},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.07248},
}
Figure