Normalizing flows have become a cornerstone of generative modeling because they offer something rare: the ability to calculate exact likelihoods and perform efficient synthesis. However, for a long time, these models were stuck in a "spatial bottleneck." While the famous Glow model introduced learnable $1 \times 1$ convolutions to mix information across channels, it left spatial mixing to other layers.
In their paper, Emerging Convolutions for Generative Normalizing Flows, Hoogeboom, van den Berg, and Welling break this bottleneck by introducing invertible $d \times d$ convolutions that are both flexible and computationally tractable.
The Spatial Bottleneck in Normalizing Flows
Normalizing flows work by transforming a simple probability distribution (like a Gaussian) into a complex one (like the distribution of natural images) using a series of invertible mappings. For these mappings to be useful, they must satisfy two difficult conditions:
- Tractable Jacobian: We need to easily calculate the "volume change" of the transformation to compute likelihoods.
- Efficient Inverse: We need to be able to run the model backward quickly to generate new samples.
Standard $d \times d$ convolutions are the bread and butter of computer vision, but they are a nightmare for normalizing flows. Inverting a standard convolution is mathematically equivalent to solving a massive system of equations, which is computationally prohibitive ($O(N^3)$ complexity). Consequently, researchers were forced to use $1 \times 1$ convolutions, which mix channels but ignore spatial relationships, leaving the heavy lifting to "coupling layers" that can be limited in flexibility.
Bringing Spatial Flexibility Back
The authors propose three primary innovations to bring spatial flexibility back to flows:
1. Emerging Convolutions
Instead of trying to invert a standard convolution directly, the authors chain together specific autoregressive convolutions. An autoregressive convolution uses a mask so that each pixel only depends on previous pixels (represented mathematically as a triangular matrix).
While one masked convolution has a limited "blind spot," chaining two of them with different masking patterns results in a full $d \times d$ receptive field. Because each component is triangular, the Jacobian is just the product of the diagonal elements, and the inverse can be computed via fast forward substitution.
2. Periodic Convolutions
If you assume that the edges of an image "wrap around" (periodic boundaries), you can move the entire convolution problem into the frequency domain using a Discrete Fourier Transform (DFT). In the frequency domain, a convolution becomes a simple matrix multiplication at each frequency. This decouples the spatial dimensions, turning one giant, impossible inversion problem into many small, easy ones.
3. QR $1 \times 1$ Convolutions
The authors also improve the standard $1 \times 1$ convolution. Previous models used a "PLU decomposition" which can be numerically unstable. The authors propose using QR decomposition (Orthogonal $\times$ Triangular), which is more stable and allows for more flexible learning of the channel-mixing matrix.
Key Insights and Results
The researchers evaluated their methods on several standard generative modeling benchmarks, including Galaxy Images, CIFAR-10, and ImageNet.
- Spatial Mixing is Essential: The jump from $1 \times 1$ to $3 \times 3$ convolutions consistently improves the "bits per dimension" (a measure of how well the model fits the data), especially in smaller, parameter-constrained models.
- Performance: On CIFAR-10, Emerging Convolutions achieved 3.34 bits/dim, outperforming the original Glow (3.36 bits/dim).
- Speed: Compared to Masked Autoregressive Flows (MAFs), which are very flexible but notoriously slow to sample, Emerging Convolutions are roughly 17 times faster to invert (39ms vs 650ms for a batch of 100). This was achieved by implementing an accelerated parallel inversion module in Cython.
Limitations and Future Work
While powerful, these methods have trade-offs. Even with optimization, Emerging Convolutions require a sequential step for inversion, making them slower than pure $1 \times 1$ convolutions (which take ~5ms). Furthermore, periodic convolutions work best when the data is actually periodic or has "empty" borders; for natural images where objects are cut off at the edge, this assumption might introduce artifacts.
Ultimately, Emerging Convolutions proves that you don't need a full convolution to get the effect of a full convolution—you just need to stack simpler, invertible pieces correctly. Future work may explore even more complex chaining patterns or apply these invertible spatial layers to other domains like video or 3D data.
Summary updated