NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Quantile-Based Policy Optimization for Reinforcement Learning

Jinyang Jiang, Jiaqiao Hu, Yijie Peng

TL;DR

This paper introduces Quantile-Based Policy Optimization (QPO) and its proximal variant (QPPO), moving beyond standard reinforcement learning that only optimizes for average rewards. By using a novel two-time-scale iterative algorithm, the authors enable deep RL agents to directly maximize specific quantiles of cumulative rewards, providing a robust framework for high-stakes domains like finance where tail risks and extreme events matter most.

What Problem Does This Paper Address?

Most classical Reinforcement Learning (RL) algorithms are "mean-seekers"—they aim to maximize the expected cumulative reward. While this works for games or simple control tasks, it fails in environments where the distribution of outcomes is skewed or heavy-tailed.

Consider financial investment: an agent might achieve a high average return but have a 10% chance of total bankruptcy. A mean-based agent wouldn't see the "cliff" at the edge of the distribution. As shown in Figure 1, two distributions can have the exact same mean, but vastly different tail behaviors. In safety-critical systems or portfolio management, we often care more about the "worst-case" scenario (e.g., the 5th or 10th percentile) than the average.

Figure 1. Probability density plots of two normal distributions N(0, 1) and N(0, 2). The right boundaries of shaded areas repre- sent the value of 10%-quantile.

The challenge is that quantiles (also known as Value-at-Risk or VaR) are much harder to optimize than expectations. Their gradients are complex to estimate because they depend on the probability density at the quantile point, which is usually unknown in RL settings.

Methods

The authors propose a policy gradient approach tailored for quantiles. Their core contribution is a two-time-scale iterative algorithm:

  1. Quantile Estimation (Faster Scale): One iteration tracks and updates the estimate of the reward quantile for the current policy.
  2. Policy Update (Slower Scale): Simultaneously, the policy parameters are updated using a gradient ascent direction derived from the quantile estimate.

To make this work in deep RL, they introduce two specific algorithms:

  • QPO: A "REINFORCE-style" algorithm that uses the likelihood ratio method to estimate gradients. To handle the unknown density function in the denominator of the quantile gradient, they simplify the ascent direction, proving that the sign of the gradient is enough to guide the search.
  • QPPO: A variant inspired by Proximal Policy Optimization (PPO). It uses importance sampling and a "clipped" objective function to improve data efficiency and prevent the policy from changing too drastically in a single update.

Datasets

The researchers evaluated their algorithms on three distinct environments:

  • Toy Example (Zero Mean): A synthetic environment where rewards follow a bimodal distribution with a mean of zero. This is designed to be impossible for standard RL to solve, as there is no "average" gain to optimize.
  • Sim Stock: A simulated stock trading environment where stock prices are generated using a model that incorporates bimodal noise to represent "bull" and "bear" market scenarios.
  • Dow Stock: A real-world dataset using historical daily prices from the Dow Jones 30 index to test the algorithms' performance on actual market data.

Key Insights and Ideas

  • Quantiles as Robust Measures: Unlike expectations, quantiles are always well-defined, even for distributions like the Cauchy distribution where the mean does not exist. This makes them a more stable performance metric for volatile environments.
  • Decoupling the Scales: The two-time-scale approach is the "secret sauce." By letting the quantile estimate update faster than the policy, the algorithm ensures the policy gradient is always calculated against a relatively accurate "moving target" of the current quantile.
  • Simplifying the Gradient: A major "aha moment" is realizing that since the density function (the denominator in the quantile gradient formula) is always non-negative, it can be omitted when determining the direction of the gradient ascent. This bypasses the need to estimate complex probability densities.

Key Results

The experimental results demonstrate a clear advantage for quantile-based methods when the objective is risk-aversion:

  • Zero Mean Task: As shown in Figure 3, standard REINFORCE and PPO fail to learn anything because the expected reward is zero. QPO and QPPO successfully identify the policy that maximizes the 10%-quantile, significantly outperforming the baselines.
  • Stock Trading: In both simulated and real-world Dow Jones data (Figures 4 & 5), QPO and QPPO achieved much higher quantiles than REINFORCE. This means the agents were significantly more robust against extreme market downturns.
  • Convergence: The authors provide a mathematical proof that QPO converges to the global optimal policy under certain conditions (specifically, when the quantile function is strictly convex).
Figure 3. Learning curves for quantile (α = 0.1) of REINFORCE, QPO, PPO and QPPO in the Zero Mean example estimated by 10 independent experiments.

Limitations and Future Work

While powerful, the approach has some hurdles:

  • Baseline Complexity: In QPPO, the authors noted that the quantile-based baseline is harder for a neural network to learn than a standard mean-based baseline because it isn't "centralized," which can lead to slower convergence at the end of training.
  • Convexity Assumption: The global convergence proof relies on the quantile function being strictly convex, which may not hold for all complex neural network architectures or environments.
  • Future Directions: The authors suggest extending this framework to distortion risk measures, which are even more general than quantiles and can represent a wider variety of risk-averse or risk-seeking behaviors.

Summary updated

BibTeX
@inproceedings{jiang2022quantile,
  author = {Jinyang Jiang and Jiaqiao Hu and Yijie Peng},
  title = {{Quantile-Based Policy Optimization for Reinforcement Learning}},
  booktitle = {WSC},
  year = {2022},
  doi = {10.1109/wsc57314.2022.10015456},
}
Figure