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

Understanding and Mitigating Exploding Inverses in Invertible Neural Networks

Jens Behrmann, Paul Vicol, Kuan-Chieh Wang, Roger B. Grosse, Jörn-Henrik Jacobsen

Introduction

Invertible Neural Networks (INNs) have emerged as a versatile framework for generative modeling, memory-efficient training, and solving complex inverse problems. By design, these architectures ensure a bijective mapping between the input space $x$ and the latent space $y$, theoretically allowing for lossless bidirectional computation. However, a significant gap exists between this mathematical ideal and practical numerical implementation.

The Numerical Invertibility Gap

While INNs are theoretically reversible, they frequently suffer from "exploding inverses." This phenomenon occurs when the forward pass excessively compresses the data (resulting in near-zero singular values in the Jacobian), forcing the inverse pass to apply massive expansion factors to recover the original input. In the presence of limited floating-point precision, these operations lead to catastrophic numerical instability, manifesting as NaN values or massive reconstruction errors.

Visual manifestation of an exploding inverse, where reconstruction fails due to numerical instability.

This instability often remains hidden during training because standard loss functions typically only evaluate the forward pass. A model may achieve a low training loss while its inverse mapping has already become unusable—a "silent failure" that only becomes apparent during sampling or out-of-distribution (OOD) testing.

Stability Analysis: Affine vs. Additive Coupling

The researchers conducted a Bi-Lipschitz analysis of common INN building blocks. They found that affine coupling blocks, which utilize multiplicative scaling, are inherently less stable than additive coupling blocks. While affine blocks offer greater expressivity, they lack global stability bounds. As the depth of the network increases, the condition number of affine models grows exponentially, leading to a rapid rise in reconstruction error.

Comparison of numerical stability between additive and affine coupling blocks as the number of blocks increases.

Mitigating Instability: FD Regularization

To address these challenges, the paper introduces Bi-Directional Finite Differences (FD) Regularization. This approach provides a computationally efficient alternative to expensive Jacobian-based penalties. By approximating the Jacobian norm using finite differences—$\|F(x) - F(x + \epsilon v)\|_2 / \epsilon$—and applying this constraint to both forward and inverse passes, the network is forced to maintain local numerical stability.

Additionally, the authors suggest practical architectural modifications, such as restricting the range of scaling functions in affine flows (e.g., to $[0.5, 1]$) to prevent near-zero multipliers that trigger inverse explosions.

Key Results and Implications

The impact of these stabilization techniques is most evident in high-stakes scenarios:

  • Memory-Efficient Training: On CIFAR-10, an unregularized affine model exhibited a condition number of $8.6 \times 10^{14}$. Implementing the FD Regularizer reduced this to $1.6 \times 10^2$, enabling stable memory-saving backpropagation without sacrificing classification accuracy.
  • Robustness to OOD Data: Standard models like Glow were found to fail 100% of the time when reconstructing noisy OOD samples. Stabilized models maintain their invertibility even when faced with data far from the training distribution.
  • Efficiency: The FD regularizer is highly practical, adding only approximately 26% overhead to training time, making it a viable default for INN development.

Conclusion

Ensuring true invertibility in neural networks requires moving beyond theoretical bijections to consider numerical stability. By identifying the inherent risks of affine coupling and providing efficient regularization tools, this work paves the way for more robust and reliable invertible models in generative and scientific computing applications.

Summary updated

BibTeX
@inproceedings{behrmann2021understanding,
  author = {Jens Behrmann and Paul Vicol and Kuan-Chieh Wang and Roger B. Grosse and Jörn-Henrik Jacobsen},
  title = {{Understanding and Mitigating Exploding Inverses in Invertible Neural Networks}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2021},
  url = {https://openreview.net/forum?id=Hh4WZiGuUl9},
}
Figure