Abstract
Diffusion and flow matching policies offer expressive, multimodal action modeling, yet they are frequently unstable in online reinforcement learning (RL) due to intractable likelihoods and gradients propagating through long sampling chains. Conversely, tractable parameterizations such as Gaussians lack the expressiveness needed for complex control -- exposing a persistent tension between optimization stability and representational power. We address this tension with a key structural principle: decoupling optimization from generation. Building on this, we introduce GoRL (Generative Online Reinforcement Learning), an algorithm-agnostic framework that trains expressive policies from scratch by confining policy optimization to a tractable latent space while delegating action synthesis to a conditional generative decoder. Using a two-timescale alternating schedule and anchoring decoder refinement to a fixed prior, GoRL enables stable optimization while continuously expanding expressiveness. Empirically, GoRL consistently outperforms unimodal and generative baselines across diverse continuous-control tasks. Notably, on the challenging HopperStand task, it achieves episodic returns exceeding 870 -- more than $3\times$ that of the strongest baseline -- demonstrating a practical path to policies that are both stable and highly expressive.
1. Introduction
In continuous control reinforcement learning, agents typically represent their policy as a simple Gaussian distribution. While this parameterization is stable and easy to optimize, it is inherently unimodal. This limitation becomes critical in tasks where the optimal strategy requires choosing between distinct, equally valid actions. A unimodal policy attempting to represent such a distribution often collapses to the mean, potentially leading the agent into low-reward regions or obstacles.
Generative models, such as Diffusion and Flow Matching, provide the capacity to represent these complex, multimodal distributions. However, their integration into online RL—where learning occurs through continuous environmental interaction—is fraught with challenges. These models typically possess intractable likelihoods, complicating standard policy gradient methods like PPO. Furthermore, backpropagating gradients through the iterative sampling chains of these models often results in high variance and training instability.
2. The GoRL Framework
We propose GoRL (Generative Online Reinforcement Learning), a framework designed to resolve the tension between optimization stability and representational power by decoupling these two processes.
2.1 Decoupled Architecture
GoRL splits the policy into two distinct components:
- The Encoder (Latent Policy): A tractable Gaussian distribution $\pi_\theta(\epsilon|s)$ that operates within a latent space.
- The Decoder (Generative Model): A high-capacity conditional generator $g_\phi(s, \epsilon)$, implemented as either a Diffusion or Flow Matching model, which maps latent variables to the final action space.
2.2 Two-Timescale Alternating Schedule
Training in GoRL proceeds through an alternating schedule of two phases:
- Phase 1: Encoder Optimization. The decoder is frozen, and the encoder is optimized using standard RL algorithms (e.g., PPO or SAC). Since the encoder is a simple Gaussian, this phase maintains the stability and efficiency of traditional RL.
- Phase 2: Decoder Refinement. The encoder is frozen, and the decoder is updated via supervised generative training. It learns to map the latent samples from the encoder to the high-reward actions discovered during Phase 1, stored in a rollout buffer.
To ensure stability and prevent degenerate feedback loops, the decoder refinement is anchored to a fixed Gaussian prior. Additionally, the encoder is re-initialized at the start of each stage to align with the decoder's expanded representational capabilities.
3. Experimental Evaluation
GoRL was evaluated across a suite of continuous-control tasks from DeepMind Control (DMControl) and OpenAI Gym, spanning locomotion, manipulation, and stabilization.
3.1 Performance Breakthroughs
The most significant results were observed in the HopperStand task, a notoriously difficult stabilization problem. GoRL achieved episodic returns exceeding 870, representing a more than 3x improvement over both standard Gaussian baselines and state-of-the-art generative RL methods, which struggled to surpass 300.
Qualitative analysis reveals that GoRL successfully discovers and maintains multiple distinct modes of behavior (e.g., different stable standing postures), whereas unimodal baselines fail by attempting to average these modes.
3.2 Consistency and Compatibility
GoRL demonstrated consistent performance gains across all tested environments. Furthermore, the framework proved to be algorithm-agnostic, showing successful integration with both on-policy (PPO) and off-policy (SAC) reinforcement learning algorithms. While the additional decoder refinement steps introduce a computational overhead (approximately 1.87x wall-clock time compared to PPO), GoRL is uniquely successful in translating this extra computation into substantial performance improvements.
4. Discussion and Future Work
GoRL provides a practical path toward highly expressive policies in online RL. By confining noisy RL optimization to a tractable latent space and delegating expressiveness to a generative decoder, it achieves a "virtuous cycle" of exploration and consolidation.
Future work will focus on several key areas:
- Adaptive Scheduling: Moving beyond fixed update intervals for the decoder toward triggers based on latent policy plateaus.
- High-Dimensional Inputs: Extending the framework to handle visual inputs (pixels) for more complex robotic tasks.
- Computational Efficiency: Optimizing the supervised training phase to reduce the wall-clock time overhead.
In conclusion, GoRL demonstrates that decoupling optimization from generation is a powerful principle for building stable, multimodal agents capable of mastering complex continuous control tasks.
Summary updated