Mean-Variance Efficient Reinforcement Learning with Applications to Dynamic Financial Investment

Masahiro Kato, Kei Nakagawa, Kenshi Abe, Tetsuro Morimura, Kentaro BabaarXiv 2020

TL;DR

This paper introduces EQUMRL, a novel reinforcement learning (RL) framework that achieves an optimal balance between reward and risk (mean-variance efficiency) by maximizing expected quadratic utility. By shifting from constrained optimization to utility maximization, the authors bypass the notorious "double sampling issue," resulting in a more computationally stable and effective method for training risk-aware agents in dynamic environments like financial markets.

What Problem Does This Paper Address?

In standard reinforcement learning, the goal is typically to maximize the expected cumulative reward. However, in high-stakes domains like finance or robotics, the variance of that reward—a proxy for risk—matters just as much as the average.

Existing Mean-Variance RL (MVRL) methods usually try to maximize the mean reward while keeping variance below a certain threshold. This leads to a significant technical hurdle known as the double sampling issue. Calculating the gradient of a variance term involves the square of an expectation. To get an unbiased estimate of this gradient, an agent would need to sample two independent trajectories from the same state, which is often impossible or computationally prohibitive in complex environments. Consequently, existing methods often struggle with stability and fail to find truly "Pareto efficient" policies—those where you can't increase reward without also increasing risk.

Methods

The authors propose Expected Quadratic Utility Maximization RL (EQUMRL). Instead of treating variance as a constraint, they define a quadratic utility function: $$u(G; \alpha, \beta) = \alpha G - \frac{1}{2}\beta G^2$$ where $G$ is the cumulative reward, and $\alpha, \beta$ are hyperparameters representing risk preference.

The key mathematical "aha" moment is that maximizing the expectation of this utility is equivalent to finding a point on the Mean-Variance Pareto frontier. Crucially, the gradient of $\mathbb{E}[G^2]$ (the second moment) does not require double sampling. It only requires estimating the first and second moments of the rewards, which is computationally straightforward.

The paper provides two main implementations:

  1. REINFORCE-based EQUMRL: A policy gradient approach that uses sample approximations of the first and second moments from trajectories.
  2. Actor-Critic (AC)-based EQUMRL: A more advanced version that uses four separate value functions to estimate the conditional first and second moments, allowing for online updates.

To handle the fact that variance depends on the entire history, the authors also suggest including the past cumulative reward in the agent's state space, ensuring the Markov property holds for the risk-aware objective.

Datasets

The researchers evaluated their approach on three distinct benchmarks:

  • Synthetic Portfolio Management: A simulated environment with liquid and non-liquid assets, switching interest rates, and default risks.
  • American-Style Options: A synthetic dataset where the agent must decide the optimal time to exercise call and put options.
  • Fama-French (FF) Datasets: Real-world financial benchmarks (FF25, FF48, and FF100) containing monthly returns for various portfolios from 1980 to 2020. This serves as a rigorous test for out-of-sample performance in actual market conditions.

Key Insights and Ideas

  • Utility as a Proxy for Constraints: The paper demonstrates that you don't need to solve a hard constrained optimization problem to get risk-aware behavior. Maximizing quadratic utility naturally pushes the policy toward the Pareto frontier.
  • Solving Double Sampling by Omission: By reformulating the objective to avoid the explicit variance gradient $\nabla_\theta V[G]$, the authors eliminate the need for the complex multi-time-scale stochastic optimization techniques used in previous literature.
  • State Space Augmentation: A critical insight for variance-related RL is that the "state" must include the reward accumulated so far. Without this, the agent cannot know how much "risk budget" it has left or how its current actions will impact the total trajectory variance.

Key Results

The experiments show that EQUMRL consistently finds more efficient policies than standard RL (REINFORCE) and existing MVRL methods (like those by Tamar et al. and Xie et al.).

Figure 2: The Mean-Variance frontier. EQUMRL (red dots) consistently achieves higher cumulative rewards (CR) for the same level of variance (Var) compared to competitors, placing it closer to the ideal Pareto efficient frontier (top-left).

As seen in Figure 2, EQUMRL's results (red dots) form a clear frontier that dominates other methods. In real-world Fama-French tests, EQUMRL achieved the highest Risk-Adjusted Return (R/R) and the lowest Maximum Drawdown (MaxDD) in almost all cases. For example, on the FF25 dataset, EQUMRL achieved an R/R of 1.13 compared to 0.52 for a standard equally-weighted portfolio.

Figure 1: The CRs and Vars in the training process of the experiment using the synthetic dataset.

Limitations and Future Work

While EQUMRL simplifies the optimization, it introduces a new challenge: hyperparameter selection. Users must choose $\alpha$ and $\beta$ (or a target return $\zeta$) to define their risk tolerance. While the authors suggest using cross-validation or economic theory to set these, it remains an iterative process.

Additionally, the theoretical analysis provided is asymptotic. The authors note that deriving non-asymptotic convergence rates (how fast the agent learns) by restricting the policy class is a promising direction for future research. Finally, while quadratic utility is standard in finance, exploring other utility functions that capture higher-order moments (like skewness or kurtosis) could further refine risk management.

Summary updated

BibTeX
@misc{kato2020mean,
  author = {Masahiro Kato and Kei Nakagawa and Kenshi Abe and Tetsuro Morimura and Kentaro Baba},
  title = {{Mean-Variance Efficient Reinforcement Learning with Applications to Dynamic Financial Investment}},
  year = {2020},
  eprint = {2010.01404},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.01404},
}
Figure