Flow Models for Unbounded and Geometry-Aware Distributional Reinforcement Learning
Simo Alami C., Rim Kaddah, Jesse Read, Marie-Paule Cani
TL;DR
This paper addresses the limitations of bounded-support and single-moment approaches in distributional RL by modeling full return densities with normalizing flows. It introduces NFDRL, a forward-flow architecture conditioned on state-action pairs that yields unbounded, flexible return distributions, and it trains using a geometry-aware Cramèr-distance surrogate with KDE-based target alignment. Key contributions include a CDF-based 1D flow design with an affine rescaling to support unbounded returns, a principled target distribution construction via composed flows, and a surrogate loss that provides unbiased gradients and contraction properties. Empirically, NFDRL demonstrates expressive, multimodal distributions in toy MDPS and Frozen Lake, and achieves competitive or superior performance on the Atari-5 benchmark while significantly reducing parameter count compared to C51, highlighting practical benefits in parameter efficiency and density-based learning for distributional RL.
Abstract
We introduce a new architecture for Distributional Reinforcement Learning (DistRL) that models return distributions using normalizing flows. This approach enables flexible, unbounded support for return distributions, in contrast to categorical approaches like C51 that rely on fixed or bounded representations. It also offers richer modeling capacity to capture multi-modality, skewness, and tail behavior than quantile based approaches. Our method is significantly more parameter-efficient than categorical approaches. Standard metrics used to train existing models like KL divergence or Wasserstein distance either are scale insensitive or have biased sample gradients, especially when return supports do not overlap. To address this, we propose a novel surrogate for the Cramèr distance, that is geometry-aware and computable directly from the return distribution's PDF, avoiding the costly CDF computation. We test our model on the ATARI-5 sub-benchmark and show that our approach outperforms PDF based models while remaining competitive with quantile based methods.
