Embracing the chaos: analysis and diagnosis of numerical instability in variational flows
Zuheng Xu, Trevor Campbell
Abstract
In this paper, we investigate the impact of numerical instability on the reliability of sampling, density evaluation, and evidence lower bound (ELBO) estimation in variational flows. We first empirically demonstrate that common flows can exhibit a catastrophic accumulation of error: the numerical flow map deviates significantly from the exact map -- which affects sampling -- and the numerical inverse flow map does not accurately recover the initial input -- which affects density and ELBO computations. Surprisingly though, we find that results produced by flows are often accurate enough for applications despite the presence of serious numerical instability. In this work, we treat variational flows as dynamical systems, and leverage shadowing theory to elucidate this behavior via theoretical guarantees on the error of sampling, density evaluation, and ELBO estimation. Finally, we develop and empirically test a diagnostic procedure that can be used to validate results produced by numerically unstable flows in practice.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 1006c991-eb06-4f04-8114-fb2a4397bf89Cited by top-tier papers3
- FALCON: Few-step Accurate Likelihoods for Continuous FlowsDanyal Rehman, Tara Akhound-Sadegh, Artem Gazizov, Yoshua Bengio et al.ICLR 2026 · 13 citations
- Efficient Regression-based Training of Normalizing Flows for Boltzmann GeneratorsDanyal Rehman, Oscar Davis, Jiarui Lu, Jian Tang et al.ICLR 2026 · 7 citations
- Asymptotically exact variational flows via involutive MCMC kernelsZuheng Xu, Trevor CampbellNeurIPS 2025 · 2 citations
Builds on9
- Adaptive Checkpoint Adjoint Method for Gradient Estimation in Neural ODEJuntang Zhuang, Nicha C. Dvornek, Xiaoxiao Li, Sekhar Tatikonda et al.ICML 2020 · 125 citations
- Smooth Normalizing FlowsJonas Köhler, Andreas Krämer, Frank NoéNeurIPS 2021 · 73 citations
- MALI: A memory efficient and reverse accurate integrator for Neural ODEsJuntang Zhuang, Nicha C. Dvornek, Sekhar Tatikonda, James S. DuncanICLR 2021 · 61 citations
- Monte Carlo Variational Auto-EncodersAchille Thin, Nikita Kotelevskii, Arnaud Doucet, Alain Durmus et al.ICML 2021 · 51 citations
- Differentiable Annealed Importance Sampling and the Perils of Gradient NoiseGuodong Zhang, Kyle Hsu, Jianing Li, Chelsea Finn et al.NeurIPS 2021 · 46 citations
Related papers
- MixFlows: principled variational inference via mixed flowsZuheng Xu, Naitong Chen, Trevor CampbellICML 2023 · 11 citations
- Composing Normalizing Flows for Inverse ProblemsJay Whang, Erik M. Lindgren, Alex DimakisICML 2021 · 56 citations
- When and how can inexact generative models still sample from the data manifold?Nisha Chandramoorthy, Adriaan de ClercqNeurIPS 2025 · 5 citations
- Identifying through Flows for Recovering Latent RepresentationsShen Li, Bryan Hooi, Gim Hee LeeICLR 2020 · 15 citations
- Advances in Black-Box VI: Normalizing Flows, Importance Weighting, and OptimizationAbhinav Agrawal, Daniel Sheldon, Justin DomkeNeurIPS 2020 · 49 citations
