Spectral-Risk Safe Reinforcement Learning with Convergence Guarantees
Dohyeong Kim, Taehyun Cho, Seungyub Han, Hojun Chung, Kyungjae Lee, Songhwai Oh
TL;DR
This work tackles risk-constrained reinforcement learning where nonlinear spectral risk measures impede convergence. It introduces SRCPO, a bilevel optimization framework that leverages the dual form of spectral risk measures to separate inner policy optimization from outer dual-variable updates, with a discretized spectrum and a sampler over the discretization parameters to guarantee convergence in the tabular setting. The inner problem uses novel risk value functions and a policy-gradient-like update with convergence guarantees, while the outer problem searches for an optimal dual representation via a sampler over the discretized risk function, enabling joint training. Empirically, SRCPO achieves top performance among constrained RCRL methods on continuous control tasks while strictly satisfying risk constraints, and it supports multiple risk measures through spectrum discretization. These results provide a principled and scalable approach for safe RL in safety-critical domains where tail risks must be tightly controlled.
Abstract
The field of risk-constrained reinforcement learning (RCRL) has been developed to effectively reduce the likelihood of worst-case scenarios by explicitly handling risk-measure-based constraints. However, the nonlinearity of risk measures makes it challenging to achieve convergence and optimality. To overcome the difficulties posed by the nonlinearity, we propose a spectral risk measure-constrained RL algorithm, spectral-risk-constrained policy optimization (SRCPO), a bilevel optimization approach that utilizes the duality of spectral risk measures. In the bilevel optimization structure, the outer problem involves optimizing dual variables derived from the risk measures, while the inner problem involves finding an optimal policy given these dual variables. The proposed method, to the best of our knowledge, is the first to guarantee convergence to an optimum in the tabular setting. Furthermore, the proposed method has been evaluated on continuous control tasks and showed the best performance among other RCRL algorithms satisfying the constraints.
