Flow Models for Unbounded and Geometry-Aware Distributional Reinforcement Learning

Simo Alami C, Rim Kaddah, Jesse Read, Marie-Paule Cani · DOI

Abstract

Distributional Reinforcement Learning (DistRL) aims to model the full probability distribution of returns, providing a richer understanding of risk and uncertainty than traditional expected-value methods. However, existing DistRL approaches often rely on fixed-support categorical representations or noisy quantile-based approximations. This paper introduces NFDRL, a framework that leverages Normalizing Flows to model return distributions as continuous, unbounded densities. By employing a novel, computationally efficient surrogate for the Cramér distance, NFDRL achieves superior expressiveness and parameter efficiency. Evaluations on toy MDPs and the Atari-5 benchmark demonstrate that NFDRL effectively captures complex multi-modal behaviors and outperforms standard categorical baselines.

Introduction

Traditional Reinforcement Learning (RL) focuses on the expected return—the average reward an agent might receive. Distributional RL (DistRL) extends this by modeling the entire probability distribution of returns, which is crucial for risk-sensitive decision-making. Despite its advantages, current DistRL methods face significant bottlenecks. Categorical approaches (e.g., C51) use fixed "atoms" over a bounded range, failing when rewards are skewed or outside the predefined support. Quantile-based methods (e.g., QR-DQN, IQN) handle unbounded ranges better but often produce "noisy" or "staircase" distributions that struggle to capture smooth, multi-modal behaviors. Furthermore, standard loss functions like KL divergence are scale-insensitive, while the theoretically sound Wasserstein distance is difficult to optimize.

Methodology: NFDRL

The authors propose Normalizing Flow Distributional RL (NFDRL) to address these limitations through three core components:

CDF-Based Normalizing Flows

Instead of fixed bins, NFDRL uses a neural network to parameterize a mixture of Gaussians. This acts as a "flow" that transforms simple base noise into a complex return distribution, allowing the model to adapt its resolution and support dynamically based on the data. This architecture is visualized in Figure 1.

The NFDRL architecture showing the flow from input X to the predicted and target distributions.

The Target Flow

In RL, estimates are updated based on a "bootstrap" (reward plus discounted future return). NFDRL treats this bootstrap operation as a flow layer itself, ensuring the target distribution remains mathematically consistent and properly normalized throughout the training process.

PDF-Based Cramér Surrogate

The Cramér distance is "geometry-aware," providing a meaningful gradient signal even when predicted and target distributions do not overlap. However, it typically requires calculating a Cumulative Distribution Function (CDF), which is computationally expensive. The authors derived a novel surrogate loss using a Taylor expansion that optimizes the Cramér distance using only the Probability Density Function (PDF). As shown in Figure 2, this surrogate provides a high-fidelity approximation of the exact Cramér distance while being significantly faster to compute.

Comparison between the Exact Cramér distance and the proposed PDF-based Surrogate, demonstrating high fidelity.

Experimental Evaluation

The model was evaluated across three scales:

  1. Toy MDPs: Custom environments designed to test multi-modality and tunable variance.
  2. Frozen Lake: A stochastic grid-world used to visualize how the model captures inherent environmental randomness.
  3. Atari-5 Benchmark: A subset of Atari 2600 games (Battle Zone, Double Dunk, Name This Game, Phoenix, and Q*Bert) to compare against industry standards like DQN, C51, and IQN.

Key Insights and Results

  • Parameter Efficiency: By learning distribution parameters rather than a fixed grid, NFDRL is highly efficient. It matches the parameter count of C51 using only 11 atoms while offering far greater flexibility.
  • Smoothness and Expressiveness: Unlike quantile methods that produce noisy distributions, NFDRL generates smooth, multi-modal PDFs. This allows the agent to clearly identify distinct possible outcomes, such as high-reward vs. high-penalty scenarios.
  • Performance: NFDRL-S (the surrogate version) achieved a mean human-normalized score of 407 on the Atari-5 benchmark, significantly outperforming C51 (330) and standard DQN (189). While IQN remains the top performer in raw score (525), NFDRL is highly competitive in specific games like Double Dunk and QBert*.

Conclusion and Future Work

NFDRL demonstrates that Normalizing Flows can provide a more expressive and interpretable representation of return distributions in RL. While the model shows promise, the authors noted high training variance in some environments and slower convergence speeds compared to direct density estimation. Future work will explore removing the remaining technical bounds on the CDF-based flow using architectures like flow matching or diffusion, and applying these smooth distributions to more advanced risk-sensitive decision-making strategies.

Summary updated

BibTeX
@inproceedings{c2026flow,
  author = {Simo Alami C and Rim Kaddah and Jesse Read and Marie-Paule Cani},
  title = {{Flow Models for Unbounded and Geometry-Aware Distributional Reinforcement Learning}},
  booktitle = {CPAL (Proceedings Track)},
  year = {2026},
  url = {https://openreview.net/forum?id=k2alUGhVlP},
}
Figure