A Policy Gradient Algorithm for the Risk-Sensitive Exponential Cost MDP

Mehrdad Moharrami, Yashaswini Murthy, Arghyadip Roy, Rayadurgam Srikant

Introduction

In the field of Reinforcement Learning (RL), the standard objective is to minimize the expected cumulative cost. While this risk-neutral approach is effective for many applications, it often fails in high-stakes environments such as robotics, autonomous systems, and telecommunications. In these domains, rare but catastrophic "tail events" can lead to system failure. To address this, researchers utilize the risk-sensitive exponential cost formulation, which prioritizes robustness by penalizing high-cost trajectories more severely than a linear expectation would.

This paper presents a novel policy gradient algorithm designed specifically for the risk-sensitive exponential cost Markov Decision Process (MDP). By introducing a smooth truncation technique, the authors overcome the long-standing challenges of exploding variance and non-differentiability that have historically hindered the optimization of risk-sensitive objectives.

The Risk-Sensitive Objective and Its Challenges

The risk-sensitive cost is defined using an exponential utility function: $J(\theta) = \frac{1}{\alpha} \log E[\exp(\alpha \sum c_t)]$. This formulation is particularly attractive because of its duality with robustness; minimizing this cost is equivalent to finding a policy that performs well under the worst-case distributional shifts within a specific Kullback-Leibler (KL) divergence ball.

However, optimizing this objective is significantly more complex than standard RL for two primary reasons:

  1. Exploding Variance: Unlike additive costs, the exponential cost is multiplicative. When estimating gradients from sample paths, the stochastic noise can become non-summable, leading to infinite variance. This instability often causes standard stochastic approximation algorithms to diverge.
  2. The Truncation Dilemma: To manage variance, researchers often "clip" or truncate the cost. However, standard hard-truncation creates discontinuities, making the cost function non-differentiable. Without a clean gradient, traditional policy gradient methods cannot be applied.

Methodology: Smooth Truncation and Policy Gradients

The authors propose a three-pillar solution to enable stable and accurate gradient-based optimization in risk-sensitive MDPs.

1. Fixed-Point Representation

The algorithm leverages a representation of the risk-sensitive cost as the unique fixed point of a specific equation derived from visits to a recurrent state. This provides a structured way to analyze the cost over long trajectories without the traditional recursive complexities of the risk-sensitive Bellman equation.

2. Smooth Truncation

To resolve the conflict between stability and differentiability, the authors introduce a smooth truncation technique. Instead of a hard cutoff, they employ a Taylor-series-based approximation to bound the cost. This ensures that the noise remains "summable" (finite variance) while preserving the smoothness required to calculate gradients.

The algorithm employs an increasing sequence of truncation thresholds ($M_m$). In the early stages of training, heavy truncation is used to ensure stability. As the policy improves and the variance becomes more manageable, the threshold is gradually increased, allowing the algorithm to eventually converge to the true, untruncated risk-sensitive solution.

3. Trajectory-Based Gradient Estimation

The core contribution is the derivation of a new Policy Gradient Theorem for the smooth, truncated risk-sensitive cost. This allows the gradient to be estimated directly from sample paths—sequences of states, actions, and costs—collected during agent interaction. This trajectory-based approach bypasses the need for complex value function approximations that are often unstable in the exponential setting.

Key Theoretical Results

The paper provides rigorous mathematical foundations for the proposed algorithm:

  • Convergence with Probability 1: The authors prove that the algorithm converges to a stationary point of the risk-sensitive cost function under standard assumptions.
  • Uniform Approximation: It is shown that the smooth truncated cost and its corresponding gradient uniformly approximate the true risk-sensitive cost and gradient as the truncation threshold increases.
  • Gradient Formula: The paper derives a specific, computable formula (Equation 7) for the policy gradient, providing a practical path for implementation in risk-sensitive RL tasks.

Discussion and Limitations

While the paper marks a significant theoretical advancement, several areas remain for future exploration. The current work is primarily mathematical, and while the proofs are robust, the algorithm has not yet been benchmarked against high-dimensional, empirical RL environments like MuJoCo or Atari.

Furthermore, the performance of the algorithm is likely sensitive to the choice of the risk factor ($\alpha$) and the schedule for the truncation sequence ($M_m$). In practical engineering applications, tuning these hyperparameters will be critical. Finally, while the authors provide extensions for parameterized policies, further research is needed to evaluate how this approach scales when combined with deep neural networks and complex function approximation.

Conclusion

By bridging the gap between risk-sensitivity and gradient-based optimization, this paper provides a mathematically sound framework for developing robust RL agents. The introduction of smooth truncation offers a generalizable strategy for handling high-variance objectives, paving the way for safer and more reliable reinforcement learning in real-world systems.

Summary updated

BibTeX
@inproceedings{moharrami2025policy,
  author = {Mehrdad Moharrami and Yashaswini Murthy and Arghyadip Roy and Rayadurgam Srikant},
  title = {{A Policy Gradient Algorithm for the Risk-Sensitive Exponential Cost MDP}},
  booktitle = {Math. Oper. Res},
  year = {2025},
  url = {https://openreview.net/forum?id=oe2YW5FK61},
}
Figure