Normalizing Flows are Capable Models for Continuous Control

Raj Ghugare, Benjamin Eysenbach

Normalizing Flows (NFs) have long been dismissed in reinforcement learning (RL) as "not expressive enough," leading researchers to favor slower diffusion models or complex transformers. This paper flips that narrative, demonstrating that a simple, well-designed NF architecture can match or beat state-of-the-art models across 82 tasks while being significantly faster, more parameter-efficient, and easier to implement.

The "Probabilistic Tax" in Modern RL

In modern RL, agents often need to model complex, multi-modal probability distributions. For example, a robot might have three different but equally valid ways to pick up a tool. To handle this, researchers have recently flocked to Diffusion Models and Autoregressive Transformers.

However, these models come with a "probabilistic tax":

  • Diffusion models are highly expressive but computationally heavy. Because they require solving differential equations, sampling takes many steps, hindering real-time control.
  • Transformers are scalable but usually require turning continuous actions into discrete "tokens," adding architectural complexity.
  • Gaussian models (the old standard) are fast but fail to capture the multi-modal nature of real-world data.

Normalizing Flows theoretically offer the best of both worlds: they provide exact likelihoods (great for training) and fast, one-pass sampling (great for real-time control). Yet, they have been largely ignored in RL due to a prevailing belief that they lack the expressive power to handle complex control tasks.

Methods: A Streamlined Architecture

The authors propose a streamlined NF architecture that integrates seamlessly into four major RL settings: Imitation Learning (BC), Goal-Conditioned RL (GCRL), Offline RL, and Unsupervised RL.

The versatile capabilities of Normalizing Flows across RL settings.

The core "block" of their model combines two classic ideas:

  1. Coupling Layers: Based on RealNVP, these split the input data and apply a simple transformation to one half based on the other.
  2. Linear Flows: Based on GLOW, these use a learnable matrix to mix dimensions, ensuring every part of the input can influence every other part.

Crucially, they use LayerNorm within the coupling networks and a "denoising trick" (adding a small amount of Gaussian noise to training data) to stabilize training. Because NFs are invertible and differentiable, they can be trained using both Maximum Likelihood Estimation (MLE)—standard for imitation—and Variational Inference (VI)—essential for maximizing rewards in offline RL.

Key Insights and Advantages

  • The Expressivity Myth Busted: The most important takeaway is that NFs are expressive enough for RL. The perceived weakness in prior work likely stemmed from suboptimal architectures or training stability issues, not a fundamental mathematical limit.
  • The "Swiss Army Knife" of Models: Because NFs provide exact likelihoods and fast sampling, the exact same architecture can serve as a policy (sampling actions), a Q-function (evaluating actions), and an occupancy measure (estimating state density).
  • Efficiency is King: The NF models achieved their results with 6x fewer parameters than diffusion-based policies. In robotics, where inference speed determines how fast a robot can react, this is a massive practical win.
  • Direct Gradient Optimization: Unlike diffusion models, which often require "distillation" or "resampling" to work with value functions, NFs allow for direct backpropagation of value gradients through the policy.

Evaluation and Key Results

The authors evaluated their approach across a massive suite of 82 tasks, proving the versatility of their model:

  • Imitation Learning: NF-BC outperformed or matched Diffusion Policies and Transformers on multi-modal tasks like PushT (fine-grained control) and Kitchen, while being significantly faster at inference.
  • Conditional IL: On the OGBench suite (45 tasks involving high-dimensional actions and long-horizon reasoning), NF-GCBC outperformed the closest flow-matching baseline by 77%. This suggests NFs are better at directly optimizing log-likelihoods than indirect methods.
  • Offline RL: Their model, NF-RLBC, outperformed strong baselines on 15 out of 30 tasks. On the particularly difficult puzzle-3x3 manipulation task, it performed 230% better than the next best baseline.
  • Unsupervised Exploration: In complex ant-maze tasks, the NF-based agent successfully estimated state densities to drive exploration without a predefined reward, even outperforming "oracle" baselines that had access to test-time goals.

Limitations and Future Work

The primary limitation of this approach is the invertibility constraint. Because NFs must be invertible, the input and output dimensions must match, which can be restrictive for certain architectural designs.

The authors note that they didn't invent a new type of flow; rather, they proved that existing, well-tuned flows are more than sufficient for modern RL. Future work could involve exploring more advanced flow architectures (like Neural Spline Flows) or applying NFs to even higher-dimensional spaces, such as direct control from pixels in vision-based RL.

Summary updated

BibTeX
@inproceedings{ghugare2025normalizing,
  author = {Raj Ghugare and Benjamin Eysenbach},
  title = {{Normalizing Flows are Capable Models for Continuous Control}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=EJ34X5VWwu},
}
Figure