Introduction
Normalizing flows are powerful generative models capable of representing complex probability distributions over high-dimensional data. However, they are often hamstrung by a strict mathematical requirement: the need for tractable Jacobian determinants during training.
This paper introduces Autoregressive Quantile Flows (AQFs), a flexible class of normalizing flow models that ditch traditional Maximum Likelihood Estimation (MLE) in favor of a novel objective based on "proper scoring rules," such as the quantile loss. This shift allows for more expressive neural architectures that are simultaneously fast to train and easy to sample from, leading to significantly better uncertainty estimation in tasks like object detection and time series forecasting.
The Bottleneck of Maximum Likelihood
Normalizing flows represent complex probability distributions by transforming a simple "prior" (like a Gaussian) through a series of invertible mappings. To train these models via Maximum Likelihood, researchers must be able to compute the determinant of the Jacobian for these mappings.
This requirement is a major bottleneck. It forces the use of specific, restricted architectures (like affine transformations) where the Jacobian is mathematically convenient to calculate. Consequently, practitioners often face a frustrating trade-off: a model might be fast to train but slow to sample from (like Masked Autoregressive Flows), or vice versa. Furthermore, MLE-based flows can struggle with "aleatoric uncertainty"—the inherent randomness in data—especially when the underlying distribution isn't neatly Gaussian.
A Jacobian-Free Approach
The authors propose a "Jacobian-free" way to train flows by leveraging proper scoring rules from the statistics literature, specifically the Continuous Ranked Probability Score (CRPS) and the Quantile Loss (also known as the pinball loss).
- Quantile Flow Training: Instead of maximizing the log-likelihood of the data, the model is trained to minimize the expected quantile loss. The authors prove that for one-dimensional flows, minimizing CRPS is mathematically equivalent to minimizing the quantile loss.
- Sampling-based Objectives: Because these losses involve integrals that are often intractable, the authors use Monte Carlo sampling during training. This allows them to use "Forward Training" (sampling from the latent space to generate data) or "Reverse Training" (transforming data to the latent space).
- Neural Quantile Flows (NAQF): By removing the Jacobian constraint, the authors can use more flexible architectures, such as monotonic neural networks. This results in a model that is both fast to train (highly parallelizable) and fast to sample from—a combination rarely achieved in standard flow literature.
- Quantile Flow Regression (QFR): The framework is also applied to regression. Instead of outputting a single point estimate or a simple Gaussian variance, the model outputs a full normalizing flow as the predictive distribution for a given input.
Applications and Results
The authors evaluated their approach across a diverse set of benchmarks, demonstrating that AQFs are "distribution-free"—capable of learning multimodal, skewed, or heavy-tailed distributions just as easily as Gaussians.
Time Series Forecasting
On the 2011-2014 Electricity Load dataset (containing hourly usage for 321 clients), AQF outperformed state-of-the-art models like DeepAR and MQ-RNN. It achieved a lower Normalized Deviation (9.8% vs 9.9%) and produced noticeably better-calibrated uncertainty intervals.
Object Detection
The authors applied Quantile Flow Regression to the VOC 2007 dataset using a MobileNet-v2 backbone to predict bounding box uncertainties. Replacing the standard Gaussian loss with a Quantile Flow (CDFR) improved the CRPS from 6.85 to 6.15, demonstrating tighter and more accurate spatial uncertainty.
Generative Modeling and Synthetic Data
The proposed Neural Quantile Flow (NAQF) achieved the best CRPS scores across five high-dimensional UCI generative modeling tasks (BSDS 300, Miniboone, Gas, Power, and Hepmass), outperforming standard Masked Autoregressive Flows. Interestingly, models trained with quantile loss often produced visually superior samples (e.g., on MNIST) compared to those trained with MLE, even when the MLE models had higher log-likelihoods. In 1D synthetic tests with non-Gaussian noise (like Poisson), AQF was the only model that accurately captured the true distribution, while Gaussian baselines were significantly overconfident.
Limitations and Future Work
While AQFs represent a significant step beyond maximum likelihood learning for flows, a few limitations remain:
- Triangular Dependency: The paper moves beyond Jacobian determinants but still relies on an autoregressive structure to handle high-dimensional data. This maintains a triangular Jacobian, which simplifies the math but imposes a specific, sometimes arbitrary, ordering on features.
- Discrete Data: The authors showed a proof-of-concept for classification using CDFs, but a robust extension to purely discrete or categorical data remains an open area for research.
- Computational Sampling: The reliance on Monte Carlo sampling to approximate integrals introduces a new hyperparameter (number of samples) and could potentially increase training time compared to exact methods if not tuned carefully.
Summary updated