NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Gradient Boosted Flows

Robert A. Giaquinto, Arindam BanerjeearXiv 2020

Abstract

Normalizing Flows (NFs) are a powerful class of generative models that enable exact density estimation and efficient sampling. However, increasing model expressivity typically involves stacking many layers, leading to training instabilities and high computational costs. We present Gradient Boosted Normalizing Flows (GBNF), a framework that constructs expressive density estimators by sequentially adding simple flow components. By fitting new components to the residuals of the existing ensemble using a functional gradient boosting approach, GBNF achieves state-of-the-art performance with a "wider" rather than "strictly deeper" architecture. Our results across various density estimation and variational inference tasks demonstrate that GBNF offers a more stable and efficient alternative to excessively deep flows.

Introduction

Normalizing Flows (NFs) have become a cornerstone of modern generative modeling due to their ability to provide exact density evaluation. The standard approach to increasing the flexibility of these models is to compose many simple transformations into a deep architecture. While effective, this "deeper is better" paradigm often results in models that are difficult to train, prone to overfitting, and slow to sample from.

In the context of Variational Autoencoders (VAEs), these limitations manifest as "mode-covering" behavior. Standard posterior approximations often fail to capture the multi-modal nature of latent spaces, instead averaging over clusters. To address these challenges, we propose Gradient Boosted Normalizing Flows (GBNF), which leverages the principles of gradient boosting to build an ensemble of simple flows.

Methodology

The core idea of GBNF is to build a mixture model incrementally. Instead of training a single deep flow, we add simple NF components one at a time, where each new component is trained to minimize a loss function based on the functional gradient of the current model.

Boosting Framework

Each new component in the GBNF focuses on the "residuals" of the distribution—the parts of the data that the current ensemble has not yet accurately captured. This sequential addition allows the model to progressively refine its density estimate.

Multiplicative Boosting

While additive boosting is common for mixture models, GBNF utilizes multiplicative boosting (operating in log-space). This approach is found to be more numerically stable and aligns naturally with the log-likelihood objectives typically used in flow-based modeling.

Variational Inference and Decoder Shock

When integrated into VAEs, GBNF faces a unique challenge termed "decoder shock." Adding a new component to the latent posterior can suddenly change the distribution of inputs to the shared decoder, leading to training instability. We mitigate this by periodically sampling from older components during the training of new ones, ensuring the decoder maintains a consistent representation of the latent space.

GBNF sequentially capturing modes of a distribution.

Experiments and Results

We evaluated GBNF on a diverse set of benchmarks, including toy 2D distributions, UCI density estimation datasets, and generative image modeling tasks.

Density Estimation

On standard UCI datasets such as POWER, GAS, and MINIBOONE, boosted versions of RealNVP and Glow consistently outperformed their non-boosted counterparts. For instance, on the GAS dataset, Boosted RealNVP achieved a log-likelihood of 9.58, a significant improvement over the 8.33 achieved by the standard version.

Variational Inference

In VAE experiments on datasets like MNIST and Freyfaces, GBNF produced results competitive with state-of-the-art methods like Inverse Autoregressive Flows (IAF). On the Freyfaces dataset, GBNF achieved the lowest Negative Log-Likelihood (4.41 nats) among the tested models.

Discussion

Our analysis reveals several key advantages of the GBNF approach:

  • Efficiency of Width: GBNF often outperforms much deeper flows while using fewer total parameters. For example, a GBNF with two components of length 4 can match or exceed the performance of a single flow of length 16.
  • Handling Multi-modality: The boosting objective naturally handles multi-modal data. Once a component captures one mode, subsequent components are forced to focus on the remaining unexplained modes.
  • Parallelism: Since components are independent within the mixture, sampling and prediction can be parallelized, bypassing the sequential bottleneck inherent in deep flows.

Conclusion and Future Work

Gradient Boosted Normalizing Flows provide a robust framework for building expressive density estimators without the drawbacks of extreme depth. While sequential training adds some overhead, the gains in stability and expressivity are substantial. Future work will explore the use of heterogeneous flows within the same ensemble and more advanced techniques to mitigate decoder shock in variational settings.

Summary updated

BibTeX
@misc{giaquinto2020gradient,
  author = {Robert A. Giaquinto and Arindam Banerjee},
  title = {{Gradient Boosted Flows}},
  year = {2020},
  eprint = {2002.11896},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.11896},
}
Figure