A Block Coordinate Ascent Algorithm for Mean-Variance Optimization

Tengyang Xie, Bo Liu, Yangyang Xu, Mohammad Ghavamzadeh, Yinlam Chow, Daoming Lyu, Daesub Yoon

This paper, presented at NeurIPS 2018, introduces a more stable and mathematically grounded way to handle risk in Reinforcement Learning (RL). By leveraging a clever mathematical duality, the authors move away from "black magic" hyperparameter tuning toward an algorithm with provable efficiency.

TL;DR

The authors propose the Mean-Variance Policy Gradient (MVP) algorithm, which optimizes for both high rewards and low variance. By reformulating the objective using Legendre-Fenchel duality, they transform a notoriously difficult optimization problem into a simpler coordinate ascent framework, providing the first finite-sample convergence guarantees for this class of risk-sensitive RL.

What Problem Does This Paper Address?

Standard Reinforcement Learning usually aims to maximize the expected return (risk-neutral). However, in high-stakes fields like finance, healthcare, or autonomous driving, we care deeply about risk. We don't just want a high average return; we want that return to be predictable and consistent (low variance).

The "Mean-Variance" objective is the gold standard for this, but it is mathematically "messy." Specifically, it involves a squared expectation term $(E[R])^2$. In RL, we estimate expectations by sampling trajectories. Because you cannot get an unbiased estimate of a squared expectation from a single sample (the "double sampling" problem), existing algorithms had to use "multi-time-scale" stochastic approximation. These older methods are:

  1. Hard to tune: They require multiple learning rates that must interact perfectly.
  2. Theoretically thin: They only had "asymptotic" proofs (meaning they work if you have infinite time/data), but no one knew how many samples were actually needed for a good result.

Methods

The core innovation is a mathematical "pivot" using Legendre-Fenchel duality.

  1. Duality Reformulation: The authors use the property that a squared term $z^2$ can be rewritten as a maximization problem: $z^2 = \max_y (2zy - y^2)$. By applying this to the mean-variance objective, they introduce an auxiliary variable $y$. This effectively "unpacks" the squared expectation, bypassing the double-sampling problem.
  2. Block Coordinate Ascent (BCA): Instead of trying to update everything at once with a complex gradient, the algorithm alternates. It updates the auxiliary variable $y$ (which acts as a proxy for the mean), and then updates the policy parameters $\theta$.
  3. MVP Algorithm: They implement this as a Stochastic Block Gradient (BSG) method. It cycles through the variables: observe a trajectory, update the mean estimate, then update the policy.
  4. Theoretical Analysis: This is the paper's heavy lifting. They provide a finite-sample error bound. They prove that the algorithm converges to a local optimum at a rate of $O(1/\sqrt{N})$, meaning we now have a "budget" for how much data is needed to reach a certain level of performance.

Datasets

The authors evaluated the algorithm on three classic risk-sensitive benchmark domains:

  • Portfolio Management: Managing a mix of liquid and non-liquid assets with varying interest rates and default risks.
  • American-style Options: A financial contract where the agent must decide the optimal time to exercise an option to maximize profit while minimizing risk.
  • Optimal Stopping: A continuous state domain problem where an agent must decide when to "stop" and take a reward/cost based on fluctuating prices.

Key Insights and Ideas

  • Duality as a Bridge: The most elegant "aha moment" is realizing that a difficult non-linear constraint (variance) can be made linear and manageable by adding just one extra variable ($y$) via duality.
  • Solving the Double-Sampling Problem: By using the $y$ variable, the algorithm can get unbiased updates from a single trajectory per step, making it much more sample-efficient than previous methods that required complex "simultaneous perturbation" or double-sampling.
  • Cyclic vs. Random: While many researchers use randomized block updates, this paper shows that cyclic updates (updating $y$ then $\theta$ in a fixed order) perform better empirically and can still be proven to converge.

Key Results

The MVP algorithm was compared against Vanilla Policy Gradient (PG), the previous state-of-the-art mean-variance algorithm (Tamar et al., 2012), and a Stochastic Gradient Ascent (SGA) baseline.

Probability Density Functions of Accumulated Reward across three benchmark domains.
  • Stability and Tighter Distributions: As seen in the reward distribution plots above, MVP (the red curve) shows much tighter "bells" in its probability density function across all three domains. This indicates it is far more successful at suppressing high-variance failures and delivering consistent returns.
  • Superior Risk-Return Tradeoff: In the Portfolio Management task, MVP achieved a higher mean return (29.754) with significantly lower standard deviation (0.325) compared to the previous best method (Mean: 28.575, Std: 0.857).
  • Efficiency: Because it avoids multi-time-scale complexity, it converges faster and is less sensitive to the exact choice of learning rates.

Limitations and Future Work

  • Local Optima: Like most policy gradient methods for non-convex problems, the algorithm is guaranteed to find a local optimum, not necessarily the global best policy.
  • Linear/Non-linear Dynamics: While tested on standard benchmarks, the authors note that exploring more complex, non-linear system dynamics (like those found in robotics) is a logical next step.
  • Distributional RL: The authors suggest that connecting this work to Distributional RL (which models the entire distribution of rewards rather than just the mean and variance) could lead to even more robust risk-management tools.

Summary updated

BibTeX
@inproceedings{xie2018block,
  author = {Tengyang Xie and Bo Liu and Yangyang Xu and Mohammad Ghavamzadeh and Yinlam Chow and Daoming Lyu and Daesub Yoon},
  title = {{A Block Coordinate Ascent Algorithm for Mean-Variance Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=BJ4uld-_ZS},
}
Figure