Bayesian Risk-Sensitive Policy Optimization For MDPs With General Loss Functions
Xiaoshuang Wang, Yifan Lin, Enlu Zhou
TL;DR
This work addresses risk-sensitive planning for MDPs with general convex loss under epistemic uncertainty by introducing a Bayesian risk formulation that integrates a Bayesian posterior mu_N with a coherent risk measure rho. It develops a policy-gradient algorithm BR-PG that leverages the dual representation of risk measures and an extended envelope theorem to derive a gradient in continuous parameter spaces, with a gradient estimator based on a variational approach or zeroth-order methods. The authors establish a finite-time convergence rate of $\mathcal{O}(T^{-1/2}+r^{-1/2})$ and show global convergence in an episodic setting as data size grows, along with bounds on iterations to achieve an $\mathcal{O}(\epsilon)$-error per episode. Numerical experiments on Frozen Lake demonstrate BR-PG’s robustness across loss functions (e.g., linear, CVaR-derived) and better performance under limited data compared to empirical and distributionally robust baselines, highlighting practical impact for offline planning with general loss objectives. The framework advances convex RL by enabling policy-gradient methods to handle continuous risk envelopes and unknown environment parameters in a unified offline setting.
Abstract
Motivated by many application problems, we consider Markov decision processes (MDPs) with a general loss function and unknown parameters. To mitigate the epistemic uncertainty associated with unknown parameters, we take a Bayesian approach to estimate the parameters from data and impose a coherent risk functional (with respect to the Bayesian posterior distribution) on the loss. Since this formulation usually does not satisfy the interchangeability principle, it does not admit Bellman equations and cannot be solved by approaches based on dynamic programming. Therefore, We propose a policy gradient optimization method, leveraging the dual representation of coherent risk measures and extending the envelope theorem to continuous cases. We then show the stationary analysis of the algorithm with a convergence rate of $\mathcal{O}(T^{-1/2}+r^{-1/2})$, where $T$ is the number of policy gradient iterations and $r$ is the sample size of the gradient estimator. We further extend our algorithm to an episodic setting, and establish the global convergence of the extended algorithm and provide bounds on the number of iterations needed to achieve an error bound $\mathcal{O}(ε)$ in each episode.
