[Paper Review] Understanding and Mitigating Exploding Inverses in Invertible Neural Networks
This paper identifies and addresses the problem of exploding inverses in invertible neural networks (INNs), which cause numerical non-invertibility and undermine key applications like normalizing flows and memory-efficient backpropagation. The authors derive bi-Lipschitz properties of INN building blocks and propose a regularization scheme to stabilize local invertibility and a Lipschitz-constrained architecture for global invertibility, significantly improving stability across generative and discriminative tasks.
Invertible neural networks (INNs) have been used to design generative models, implement memory-saving gradient computation, and solve inverse problems. In this work, we show that commonly-used INN architectures suffer from exploding inverses and are thus prone to becoming numerically non-invertible. Across a wide range of INN use-cases, we reveal failures including the non-applicability of the change-of-variables formula on in- and out-of-distribution (OOD) data, incorrect gradients for memory-saving backprop, and the inability to sample from normalizing flow models. We further derive bi-Lipschitz properties of atomic building blocks of common architectures. These insights into the stability of INNs then provide ways forward to remedy these failures. For tasks where local invertibility is sufficient, like memory-saving backprop, we propose a flexible and efficient regularizer. For problems where global invertibility is necessary, such as applying normalizing flows on OOD data, we show the importance of designing stable INN building blocks.
Motivation & Objective
- To investigate the numerical instability of invertible neural networks (INNs), particularly the phenomenon of exploding inverses that compromise their invertibility in practice.
- To analyze the root causes of exploding inverses by studying the bi-Lipschitz properties of common INN building blocks such as coupling layers.
- To address the instability in applications requiring local invertibility (e.g., memory-efficient backprop) and global invertibility (e.g., normalizing flows on OOD data).
- To develop practical, effective regularization and architectural constraints that ensure stable inverse computation across diverse INN use-cases.
Proposed method
- Derive theoretical bi-Lipschitz bounds for standard INN components, such as affine and additive coupling layers, to understand their stability properties.
- Propose a flexible, differentiable regularizer to enforce local invertibility during training, particularly for memory-efficient backpropagation.
- Introduce Lipschitz-constrained architectures as a solution for global invertibility, ensuring bounded inverse Jacobian singular values.
- Empirically validate the effectiveness of regularization and architectural constraints on CIFAR-10, CelebA, and Flow-GAN benchmarks.
- Use angle-based metrics between standard and memory-saving gradients to quantify inverse stability during training.
- Apply both MLE and GAN objectives to INNs and compare likelihoods (BPD) and sample quality (FID, Inception Score) to evaluate stability and performance.
Experimental results
Research questions
- RQ1Why do commonly used INN architectures fail to maintain numerical invertibility in practice, despite theoretical invertibility?
- RQ2How do bi-Lipschitz properties of INN building blocks influence the stability of inverse mappings?
- RQ3Can regularization effectively stabilize the inverse mapping in tasks requiring only local invertibility, such as memory-efficient backpropagation?
- RQ4What architectural constraints are necessary to ensure global invertibility, especially on out-of-distribution data in normalizing flow models?
- RQ5How does the choice of training objective (e.g., MLE vs. GAN) affect the numerical stability of INN inverses and downstream performance?
Key findings
- Common INN architectures, including affine coupling flows, suffer from exploding inverses, leading to reconstruction errors, NaN values, and failure of the change-of-variables formula on both in- and out-of-distribution data.
- Affine coupling models trained with standard backprop exhibit rapidly increasing angles between standard and memory-saving gradients, becoming numerically non-invertible (angle → NaN), while additive models remain stable.
- Regularization via finite differences or normalizing flow objectives keeps the angle between gradients small, enabling stable memory-efficient training.
- Training INNs with only a GAN objective leads to unstable inverses, with infinite bits per dimension (BPD) observed in practice, even when reconstruction errors are small.
- The Flow-GAN objective—combining MLE and GAN losses—yields stable inverses (BPD ≈ 4.21) and improved sample quality (FID = 420) compared to pure GAN training (FID = 850, BPD = ∞).
- Even with stable condition numbers and no reconstruction errors, models trained with only a GAN objective assign unreasonably high BPDs, indicating instability in likelihood estimation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.