mlsanityData to 7 Oct 2026

Stable Training of Normalizing Flows for High-dimensional Variational Inference

arXiv 2402.16408 ↗First posted 26 Feb 2024stat.ML cs.LGcited by 5

Not on the map. Why?

Abstract (arXiv)

Variational inference with normalizing flows (NFs) is an increasingly popular alternative to MCMC methods. In particular, NFs based on coupling layers (Real NVPs) are frequently used due to their good empirical performance. In theory, increasing the depth of normalizing flows should lead to more accurate posterior approximations. However, in practice, training deep normalizing flows for approximating high-dimensional posterior distributions is often infeasible due to the high variance of the stochastic gradients. In this work, we show that previous methods for stabilizing the variance of stochastic gradient descent can be insufficient to achieve stable training of Real NVPs. As the source of the problem, we identify that, during training, samples often exhibit unusual high values. As a remedy, we propose a combination of two methods: (1) soft-thresholding of the scale in Real NVPs, and (2) a bijective soft log transformation of the samples. We evaluate these and other previously proposed modification on several challenging target distributions, including a high-dimensional horseshoe logistic regression model. Our experiments show that with our modifications, stable training of Real NVPs for posteriors with several thousand dimensions is possible, allowing for more accurate marginal likelihood estimation via importance sampling. Moreover, we evaluate several common training techniques and architecture choices and provide practical advise for training NFs for high-dimensional variational inference.

Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 26 of its 41 references that are in the map. First posted on arXiv 26 Feb 2024.

Builds on

26 of 41 references.

References · 26

  1. 2015Variational Inference with Normalizing Flowscited by 2,161
  2. 2016Density estimation using Real NVPcited by 2,029
  3. 2016Variational Inference: A Review for Statisticianscited by 1,466
  4. 2019Normalizing Flows for Probabilistic Modeling and Inferencecited by 1,315
  5. 2013Black Box Variational Inferencecited by 317
  6. 2017Advances in Variational Inferencecited by 236
  7. 2019Composable Effects for Flexible and Accelerated Probabilistic Programming in NumPyrocited by 187
  8. 2016Automatic Differentiation Variational Inferencecited by 159
  9. 2019Guided Image Generation with Conditional Invertible Neural Networkscited by 147
  10. 2017Sticking the Landing: Simple, Lower-Variance Gradient Estimators for Variational Inferencecited by 97
  11. 2021Annealed Flow Transport Monte Carlocited by 90
  12. 2020Understanding and Mitigating Exploding Inverses in Invertible Neural Networkscited by 71
14 more
  1. 2020Augmented Normalizing Flows: Bridging the Gap Between Generative Flows and Latent Variable Modelscited by 66
  2. 2022Continual Repeated Annealed Flow Transport Monte Carlocited by 66
  3. 2023normflows: A PyTorch Package for Normalizing Flowscited by 56
  4. 2022Can Push-forward Generative Models Fit Multimodal Distributions?cited by 41
  5. 2021Challenges and Opportunities in High-dimensional Variational Inferencecited by 35
  6. 2020An invitation to sequential Monte Carlo samplerscited by 33
  7. 2020Stabilizing Invertible Neural Networks Using Mixture Modelscited by 30
  8. 2022Universal approximation property of invertible neural networkscited by 30
  9. 2021Variational Refinement for Importance Sampling Using the Forward Kullback-Leibler Divergencecited by 29
  10. 2020Representational aspects of depth and conditioning in normalizing flowscited by 25
  11. 2022Gradients should stay on Path: Better Estimators of the Reverse- and Forward KL Divergence for Normalizing Flowscited by 22
  12. 2020Robust, Accurate Stochastic Optimization for Variational Inferencecited by 21
  13. 2022Fat-Tailed Variational Inference with Anisotropic Tail Adaptive Flowscited by 10
  14. 2023Machine Learning and the Future of Bayesian Computationcited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 2; 2026: 1.

5 papers.