GoRL: An Algorithm-Agnostic Framework for Online Reinforcement Learning with Generative Policies

Chubin Zhang, Zhenglin Wan, Feng Chen, Xingrui Yu, Ivor W. Tsang, Bo An · DOI

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.

The mode-covering problem: Unimodal policies fail to capture multiple high-reward regions, leading to suboptimal average actions.

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).

The GoRL framework: Decoupling policy optimization into a latent encoder and a generative decoder trained via supervised learning.

Two-Timescale Update Schedule

To ensure stability, GoRL employs a two-phase update schedule:

  1. 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.
  2. 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

BibTeX
@misc{zhang2025gorl,
  author = {Chubin Zhang and Zhenglin Wan and Feng Chen and Xingrui Yu and Ivor W. Tsang and Bo An},
  title = {{GoRL: An Algorithm-Agnostic Framework for Online Reinforcement Learning with Generative Policies}},
  year = {2025},
  eprint = {2512.02581},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.02581},
}
Figure