Abstract
Numerous applications of machine learning involve representing probability distributions over high-dimensional data. We propose autoregressive quantile flows, a flexible class of normalizing flow models trained using a novel objective based on proper scoring rules. Our objective does not require calculating computationally expensive determinants of Jacobians during training and supports new types of neural architectures, such as neural autoregressive flows from which it is easy to sample. We leverage these models in quantile flow regression, an approach that parameterizes predictive conditional distributions with flows, resulting in improved probabilistic predictions on tasks such as time series forecasting and object detection. Our novel objective functions and neural flow parameterizations also yield improvements on popular generation and density estimation tasks, and represent a step beyond maximum likelihood learning of flows.
Introduction: The "Jacobian Tax" of Normalizing Flows
Normalizing flows are a powerful class of generative models that transform simple probability distributions into complex ones via invertible mappings. Traditionally, these models are trained using Maximum Likelihood Estimation (MLE). However, MLE imposes a significant "Jacobian tax": it requires calculating the determinant of the Jacobian matrix for every transformation to ensure the resulting density is valid.
This requirement restricts researchers to specific, mathematically tractable architectures, often forcing a trade-off between expressivity and the ease of sampling. Autoregressive Quantile Flows (AQFs) aim to break this trade-off by replacing MLE with a training objective based on proper scoring rules.
Methodology: Training with Quantile Losses
The core innovation of AQFs is moving away from MLE toward the Continuous Ranked Probability Score (CRPS) and the Quantile Loss. By training the flow to minimize the difference between predicted and actual quantiles, the model bypasses the need for Jacobian determinants entirely.
Key Methodological Advantages:
- Jacobian-Free Training: Simplifies implementation and enables the use of flexible "neural autoregressive flows" that were previously computationally prohibitive.
- Dual Training Directions: Models can be trained in the "forward" direction for efficient generation or the "reverse" direction for density estimation without the usual architectural constraints.
- Quantile Flow Regression (QFR): This framework allows neural networks to output entire normalizing flows as predictions, capturing complex, non-Gaussian uncertainties that standard regression models miss.
Experimental Results
Time Series Forecasting
In time series tasks, AQFs provide more realistic uncertainty estimates compared to standard models. On the 2011-2014 Electricity Load dataset, AQFs achieved a lower Normalized Deviation (9.8%) than state-of-the-art baselines like DeepAR (9.9%). As shown in the comparison below, AQFs produce more accurate "confidence ribbons" that better reflect the underlying data distribution.
Object Detection
Standard object detection models often assume Gaussian uncertainty for bounding boxes, which fails to capture the complexity of real-world scenes. By using a Quantile Flow layer, the authors improved the CRPS on the VOC 2007 dataset from 6.85 to 6.15. This approach allows the model to represent skewed or multi-modal uncertainties, such as the blurred boundaries of partially occluded objects.
Regression and Image Generation
- UCI Regression: QFR outperformed Mixture Density Networks and Gaussian regression across multiple benchmarks in terms of Check Score and CRPS.
- Image Generation: When applied to MNIST, Neural Quantile Flows (NAQF) produced sharper and more accurate digit samples than flows trained via traditional MLE, even with identical parameter counts.
Conclusion
Autoregressive Quantile Flows represent a significant step beyond maximum likelihood learning. By leveraging proper scoring rules, AQFs eliminate the computational burden of Jacobian determinants, allowing for faster training, easier sampling, and superior uncertainty estimation across diverse high-dimensional tasks.
Summary updated