How Inverse Conditional Flows Can Serve as a Substitute for Distributional Regression

Lucas Kook, Chris Kolb, Philipp Schiele, Daniel Dold, Marcel Arpogaus, Cornelius Fritz, Philipp F. M. Baumann, Philipp Kopper, Tobias Pielok, Emilio Dorigatti, David Rügamer

Introduction

In modern machine learning, the standard objective is often to predict a single point estimate, such as the conditional mean. However, in high-stakes domains like medicine, finance, or climate science, understanding the entire distribution—including uncertainty, variance, and potential outliers—is critical.

Traditionally, statisticians have addressed this through Distributional Regression (e.g., GAMLSS), which models the parameters of a distribution as functions of covariates. While interpretable, these models often rely on rigid parametric assumptions (like normality) that fail when data is bimodal or skewed. Conversely, Deep Learning's Normalizing Flows offer immense flexibility but often operate as "black boxes," sacrificing the ability to see how individual features affect the outcome. This paper introduces DRIFT (Distributional Regression using Inverse Flow Transformations), a framework that bridges this gap by combining the non-parametric flexibility of flows with the interpretability of additive statistical models.

The DRIFT Framework

DRIFT treats the regression problem as a coordinate transformation. It models the outcome $Y$ as a transformation of a simple base variable $\epsilon$ (typically a standard normal distribution): $Y = \phi(\epsilon, X)$.

The transformation $\phi(\epsilon, x)$ maps a base distribution $\epsilon$ to the conditional outcome distribution for different values of $x$.

To ensure the model is mathematically valid and trainable via Maximum Likelihood, the authors focus on the inverse flow $\phi^{-1}$, which maps the complex outcome back to the simple base distribution. The framework utilizes Monotonic Neural Networks with strictly positive weights and monotonic activation functions to guarantee invertibility. A key technical contribution is a novel weight initialization strategy that prevents the "saturation" (vanishing gradients) common in deep monotonic flows, making training stable and efficient.

Interpretability and Automatic Multimodality

A core strength of DRIFT is its use of Neural Basis Functions. By structuring the network so that features enter the model additively, researchers can extract "partial effect" plots. These plots show exactly how a change in a specific variable (e.g., temperature or age) shifts the entire predicted distribution, maintaining the transparency of Generalized Additive Models (GAMs).

Furthermore, DRIFT excels at capturing complex data shapes without manual intervention. Unlike Gaussian Mixture Models, which require a predefined number of "modes," DRIFT’s flow-based approach learns the distribution's topology automatically. This is particularly evident in datasets with shifting behaviors over time.

DRIFT automatically captures the multimodal nature of ATM withdrawal data over time without needing predefined mixture components.

Experimental Results

The authors validated DRIFT across 11 UCI benchmark datasets and several specialized real-world scenarios:

  • Predictive Performance: DRIFT consistently matched or outperformed traditional Distributional Regression (DR) and Transformation Models (TM). In the UCI Wine Quality dataset, DRIFT achieved a log-score of 4.2, significantly higher than statistical competitors (0.5–0.8), due to its superior handling of ordinal data.
  • Time Series Forecasting: On the UCI Electricity dataset, DRIFT dramatically improved the log-score from -4.434 (standard auto.arima) to -0.538.
  • Spatio-temporal Analysis: In analyzing US Covid-19 prevalence, DRIFT produced spatial maps and partial effect curves comparable to expert-tuned spline models but with significantly less manual configuration.

Conclusion

DRIFT demonstrates that the choice between performance and interpretability is a false dichotomy. By formalizing normalizing flows as neural versions of classical transformation models, the framework provides a robust tool for distributional regression. While future work remains in establishing formal statistical inference (such as p-values for neural components), DRIFT stands as a powerful substitute for traditional regression when dealing with complex, multi-modal, or high-dimensional data.

Summary updated

BibTeX
@inproceedings{kook2024how,
  author = {Lucas Kook and Chris Kolb and Philipp Schiele and Daniel Dold and Marcel Arpogaus and Cornelius Fritz and Philipp F. M. Baumann and Philipp Kopper and Tobias Pielok and Emilio Dorigatti and David Rügamer},
  title = {{How Inverse Conditional Flows Can Serve as a Substitute for Distributional Regression}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=bMu0mmCk0I},
}
Figure