A policy gradient approach for optimization of smooth risk measures

Nithia Vijayan, Prashanth L A

Abstract

We propose policy gradient algorithms for solving a risk-sensitive reinforcement learning (RL) problem in on-policy as well as off-policy settings. We consider episodic Markov decision processes, and model the risk using the broad class of smooth risk measures of the cumulative discounted reward. We propose two template policy gradient algorithms that optimize a smooth risk measure in on-policy and off-policy RL settings, respectively. We derive non-asymptotic bounds that quantify the rate of convergence of our proposed algorithms to a stationary point of the smooth risk measure. As special cases, we establish that our algorithms apply to optimization of mean-variance and distortion risk measures, respectively.

1. Introduction

Standard Reinforcement Learning (RL) frameworks typically focus on risk-neutral objectives, aiming to maximize the expected cumulative reward. However, in high-stakes applications such as finance, healthcare, and autonomous driving, the variability and tail behavior of the reward distribution are critical considerations. Existing risk-sensitive RL algorithms often lack non-asymptotic convergence guarantees or struggle with complex risk measures where the gradient cannot be easily expressed as a simple expectation.

This paper addresses these challenges by introducing a unified framework for optimizing "Smooth Risk Measures" (SRMs). By leveraging a zeroth-order gradient estimation technique, the authors provide the first non-asymptotic convergence guarantees for a broad class of risk objectives, including mean-variance and distortion risk measures.

2. Methodology

The proposed framework introduces two template algorithms: OnP-SF (On-Policy) and OffP-SF (Off-Policy). The methodology centers on two primary innovations:

2.1 Smoothed Functional (SF) Gradient Estimation

To bypass the difficulties of deriving analytical gradients for complex risk measures, the authors employ a zeroth-order Smoothed Functional (SF) method. This approach involves perturbing policy parameters in random directions and measuring the resulting change in the risk measure to estimate the gradient. This "black-box" approach allows the algorithm to be applied to any risk measure that satisfies specific smoothness criteria.

2.2 Risk Estimation for Distortion and Mean-Variance Measures

The authors provide specific estimation schemes for different risk types. For Mean-Variance Risk Measures (MVRM), unbiased sample variance estimators are utilized. For Distortion Risk Measures (DRM), which involve weighting the cumulative distribution function (CDF), the authors use order statistics to create efficient estimators.

Table of smooth distortion functions used in the risk optimization framework.

3. Theoretical Results and Key Insights

The core contribution of this work is the derivation of improved convergence rates. While previous abstract risk optimization methods often yielded rates of $O(1/N^{1/3})$, this framework achieves $O(1/\sqrt{N})$, matching the standard rate for risk-neutral policy gradients.

3.1 The Smoothness Framework

By defining a broad class of SRMs where the gradient is Lipschitz continuous, the authors move away from case-specific proofs. They rigorously demonstrate that common measures like Mean-Variance and various Distortion Risk Measures (e.g., dual-power, exponential) fit this template.

Extracted figure from page 6 of A policy gradient approach for optimization of smooth risk measures

3.2 Off-Policy Efficiency

The off-policy variant, OffP-SF, significantly improves sample efficiency. Unlike the on-policy version, which requires new simulations for every parameter perturbation, OffP-SF utilizes importance sampling to estimate values from a single set of trajectories generated by a behavior policy.

4. Conclusion and Limitations

The authors prove that both algorithms reach an $\epsilon$-stationary point in $O(1/\epsilon^2)$ iterations. However, the current theory relies on the risk measure being "smooth" (differentiable with a Lipschitz gradient). This excludes raw forms of popular measures like Value-at-Risk (VaR) or Conditional Value-at-Risk (CVaR). Future research may focus on using smooth approximations of these measures or addressing the high variance inherent in zeroth-order gradient estimation methods.

Summary updated

BibTeX
@inproceedings{vijayan2023policy,
  author = {Nithia Vijayan and Prashanth L A},
  title = {{A policy gradient approach for optimization of smooth risk measures}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2023},
  url = {https://openreview.net/forum?id=9Bil4Otq5WL},
}
Figure