Learning to Optimize for Reinforcement Learning
Qingfeng Lan, A. Rupam Mahmood, Shuicheng Yan, Zhongwen Xu
TL;DR
The paper tackles the challenge of learning optimizers for reinforcement learning, showing that optimizers trained for supervised learning fail in RL due to non-IID gradient distributions and high bias/variance from stochastic interactions. It introduces Optim4RL, which uses pipeline training (training multiple agents in parallel with regular resets) and an inductive-bias update structure that mirrors adaptive optimizers to stabilize meta-learning and enable learning from scratch. Empirically, Optim4RL generalizes to unseen Brax tasks and outperforms several baselines, including VeLO, while remaining simpler and more robust to training instability. This work provides a practical, data-driven pathway to RL-specific learned optimizers with notable generalization potential and efficiency advantages over prior approaches.
Abstract
In recent years, by leveraging more data, computation, and diverse tasks, learned optimizers have achieved remarkable success in supervised learning, outperforming classical hand-designed optimizers. Reinforcement learning (RL) is essentially different from supervised learning, and in practice, these learned optimizers do not work well even in simple RL tasks. We investigate this phenomenon and identify two issues. First, the agent-gradient distribution is non-independent and identically distributed, leading to inefficient meta-training. Moreover, due to highly stochastic agent-environment interactions, the agent-gradients have high bias and variance, which increases the difficulty of learning an optimizer for RL. We propose pipeline training and a novel optimizer structure with a good inductive bias to address these issues, making it possible to learn an optimizer for reinforcement learning from scratch. We show that, although only trained in toy tasks, our learned optimizer can generalize to unseen complex tasks in Brax.
