Abstract
Generative Online Reinforcement Learning (GoRL) is a novel framework that enables Reinforcement Learning (RL) agents to utilize highly expressive generative policies, such as Diffusion and Flow Matching, while maintaining training stability. Standard RL algorithms often rely on unimodal Gaussian policies, which struggle with multimodal reward landscapes. GoRL addresses this by decoupling policy optimization into a tractable latent space and a separate generative decoder. This approach achieves state-of-the-art performance on complex tasks, outperforming standard Gaussian policies by over 3x on challenging benchmarks like HopperStand.
Introduction
In continuous control Reinforcement Learning, agents must select actions from a continuous space. Most state-of-the-art algorithms, including PPO and SAC, employ unimodal Gaussian policies. While computationally efficient and stable, these policies suffer from the "mode-covering problem." In environments with multiple distinct successful strategies, a Gaussian policy attempts to average these modes, often resulting in an action that leads to failure.
Generative models like Diffusion and Flow Matching offer the expressiveness needed to represent complex, multimodal distributions. However, their integration into online RL is hindered by intractable likelihoods and unstable gradients during the long sampling chains required for action generation, often leading to training collapse as the data distribution shifts.
Methods: The GoRL Framework
GoRL introduces a structural decoupling of optimization from generation. The policy is split into two modular components: a Latent Policy (Encoder) and a Generative Mapping (Decoder).
Two-Timescale Update Schedule
To ensure stability, GoRL employs a two-phase update schedule:
- Latent Optimization: The decoder is frozen. The encoder, a simple Gaussian distribution $\pi_\theta(\epsilon|s)$ in latent space, is updated using standard RL algorithms (e.g., PPO). This ensures smooth and stable gradients.
- Decoder Refinement: The encoder is frozen. The decoder $g_\phi(s, \epsilon)$ is trained via supervised learning to map a fixed Gaussian prior to the successful actions stored in a rollout buffer.
By anchoring the decoder to a fixed prior $N(0, I)$, GoRL breaks the destabilizing feedback loop common in generative RL. The encoder is periodically re-initialized to align with the decoder's evolving transport map, consolidating exploration progress into an expressive generator.
Experimental Evaluation
The framework was evaluated on the DMControl Suite and OpenAI Gym benchmarks. GoRL demonstrated compatibility with both on-policy (PPO) and off-policy (SAC) algorithms.
Key Results
- Performance Gains: GoRL consistently outperformed Gaussian baselines and recent generative methods like FPO and DPPO.
- HopperStand Breakthrough: On the difficult HopperStand task, GoRL achieved episodic returns exceeding 870, more than triple the performance of the strongest baseline (~286).
- Multimodality: Qualitative analysis confirmed that GoRL successfully evolves bimodal structures, allowing agents to master multiple stable strategies simultaneously.
- Stability: Unlike direct generative optimization methods, GoRL maintained stable learning curves throughout 180 million environment steps.
Conclusion and Future Work
GoRL provides a robust wrapper for enhancing RL agents with generative expressiveness. While it introduces a computational overhead (approximately 1.87x slower sampling), it significantly improves performance on complex tasks. Future research will focus on adaptive scheduling for component updates and extending the framework to high-dimensional visual inputs and multi-agent environments.
Check out the code: https://github.com/bennidict23/GoRL
Summary updated