Hybrid Bernstein Normalizing Flows for Flexible Multivariate Density Regression with Interpretable Marginals

Marcel Arpogaus, Thomas Kneib, Thomas Nagler, David Rügamer

Introduction

In multivariate density regression, the objective is to estimate the full conditional probability distribution of multiple target variables. This is essential for quantifying uncertainty in complex systems. However, researchers often face a trade-off: use highly flexible but "black-box" Normalizing Flows (NFs), or use interpretable but rigid Multivariate Conditional Transformation Models (MCTMs). NFs excel at capturing non-linear dependencies but obscure the influence of individual features. Conversely, MCTMs offer transparency through structured additive predictors but typically rely on simple Gaussian copulas that fail to model complex interactions.

The Hybrid Architecture: HMAF and HCF

The proposed Hybrid Conditional Masked Autoregressive Bernstein Flows (HMAF) and Hybrid Coupling Flows (HCF) bridge this gap by decomposing the density estimation into two distinct steps.

Step 1: Interpretable Marginal Modeling

The model first processes each target variable independently using a Conditional Transformation Model (CTM). By employing shifted Bernstein polynomials, the model maps each variable's distribution to a standard normal base distribution. This stage utilizes Structured Additive Predictors (SAPs), allowing the effect of input features (such as age or location) to be directly extracted and interpreted, much like a generalized linear model.

The multi-stage transformation process: (a) original data, (b) after marginal normalization, and (c) after transformation to uniform marginals.

Step 2: Flexible Dependency Modeling

Once the marginals are normalized, the model applies an autoregressive normalizing flow (either a Masked Autoregressive Flow or a Coupling Flow). This deep neural network acts as an implicit, highly flexible copula. It "de-correlates" the variables, learning complex, non-linear dependencies that traditional statistical methods cannot represent.

Experimental Evaluation

The authors evaluated their method on simulated 2D data, standard NF benchmarks, and a real-world application concerning childhood malnutrition in India.

Capturing Complex Distributions

On simulated datasets like moons and circles, the hybrid model successfully captured highly non-linear joint distributions where linear baselines failed. The use of rational quadratic splines within the flow layers further enhanced the model's ability to capture fine-grained details.

Comparison of the hybrid model's learned density contours and marginals against the ground truth data distribution.

Performance and Interpretability

On standard benchmarks (e.g., POWER, GAS), HMAF achieved competitive negative log-likelihood (NLL) scores compared to standard, black-box MAFs. In the malnutrition application, HMAF significantly outperformed traditional MCTMs (NLL 0.687 vs 3.470). Crucially, the model allowed researchers to plot "marginal shift terms," revealing that acute malnutrition (stunting) develops more rapidly than chronic malnutrition (wasting) as a child ages—an insight that would be lost in a standard black-box NF.

Conclusion

Hybrid Bernstein Normalizing Flows provide a "best of both worlds" solution for multivariate density regression. By isolating feature effects in an interpretable marginal step and leveraging NFs for dependency modeling, the framework maintains statistical transparency without sacrificing the predictive power of deep learning. Future work may explore more flexible marginal functions, such as splines, to better handle discontinuous distributions or extreme tail behaviors.

Summary updated

BibTeX
@inproceedings{arpogaus2025hybrid,
  author = {Marcel Arpogaus and Thomas Kneib and Thomas Nagler and David Rügamer},
  title = {{Hybrid Bernstein Normalizing Flows for Flexible Multivariate Density Regression with Interpretable Marginals}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=9rcQibkgCg},
}
Figure