Bilevel reinforcement learning via the development of hyper-gradient without lower-level convexity
Yan Yang, Bin Gao, Ya-xiang Yuan
TL;DR
This work develops a fully first-order framework for bilevel reinforcement learning by deriving the hyper-gradient without assuming lower-level convexity, using the fixed-point structure of entropy-regularized RL. It introduces model-based (M-SoBiRL) and model-free (SoBiRL) algorithms, and extends to stochastic settings (Stoc-SoBiRL), with convergence guarantees: $\mathcal{O}(\epsilon^{-1})$ for deterministic methods and $\widetilde{\mathcal{O}}(\epsilon^{-1.5})$ outer iterations and $\widetilde{\mathcal{O}}(\epsilon^{-3.5})$ samples for the stochastic variant. The hyper-gradient combines exploitation and exploration, enabling joint optimization of reward shaping and RLHF-style objectives while requiring only first-order oracles. Empirical results on RLHF tasks (Atari, Mujoco) and a synthetic BiRL problem corroborate the effectiveness and scalability of the approach, highlighting the practical impact of first-order BiRL methods in complex hierarchical RL settings.
Abstract
Bilevel reinforcement learning (RL), which features intertwined two-level problems, has attracted growing interest recently. The inherent non-convexity of the lower-level RL problem is, however, to be an impediment to developing bilevel optimization methods. By employing the fixed point equation associated with the regularized RL, we characterize the hyper-gradient via fully first-order information, thus circumventing the assumption of lower-level convexity. This, remarkably, distinguishes our development of hyper-gradient from the general AID-based bilevel frameworks since we take advantage of the specific structure of RL problems. Moreover, we design both model-based and model-free bilevel reinforcement learning algorithms, facilitated by access to the fully first-order hyper-gradient. Both algorithms enjoy the convergence rate $O(ε^{-1})$. To extend the applicability, a stochastic version of the model-free algorithm is proposed, along with results on its iteration and sample complexity. In addition, numerical experiments demonstrate that the hyper-gradient indeed serves as an integration of exploitation and exploration.
