The Convolution Exponential and Generalized Sylvester Flows

Emiel Hoogeboom, Victor Garcia Satorras, Jakub M. Tomczak, Max Welling

Introduction

Normalizing flows are powerful generative models that transform a simple, tractable probability distribution into a complex one through a sequence of invertible mappings. For these models to be computationally feasible, every layer must satisfy two strict mathematical conditions: it must be strictly invertible, and its Jacobian determinant—which tracks how the transformation expands or contracts space—must be easy to calculate.

Historically, researchers have relied on "triangular" maps or $1 \times 1$ convolutions to meet these requirements. However, $1 \times 1$ convolutions only mix information across channels at a single pixel, completely failing to capture spatial relationships. While autoregressive or "emerging" convolutions can capture spatial context, they are notoriously slow to invert.

To address this gap, this paper introduces the Convolution Exponential, a novel method for building invertible linear layers by taking the exponential of a standard convolutional transformation. This creates a spatially-aware linear flow that is guaranteed to be invertible, boasts a computationally cheap Jacobian, and preserves the equivariance of the underlying convolution.

Methods: The Matrix Exponential for Convolutions

The core innovation of this work is the application of the Matrix Exponential to convolutional layers.

For any square matrix $M$, its exponential $\exp(M)$ is always invertible (the inverse is simply $\exp(-M)$), and its log-determinant is conveniently equal to the trace of $M$. However, storing the full matrix for a spatial convolution is practically impossible, as it grows quadratically with the image size.

To bypass this, the authors demonstrate that the product $\exp(M)x$ can be computed implicitly using a Taylor power series expansion.

Taylor series expansion of the matrix exponential

This means the model only needs to perform a few standard convolutions in a loop to approximate the exponential, rather than materializing massive matrices in memory.

Equivalence between a spatial convolution and a matrix-vector multiplication

By treating a standard spatial convolution as the matrix $M$, they create the Convolution Exponential layer. The log-determinant becomes trivial to compute—it is simply the sum of the center-pixel weights of the convolutional kernel.

Building on this, the authors extend "Sylvester Flows" (a type of residual-like flow) by allowing for more flexible basis changes, combining them with the Convolution Exponential to create Convolutional Sylvester Flows (CSFs). They also adapt the technique for graph-structured data, introducing the Graph Convolution Exponential.

Key Insights

  • Equivariance Preservation: A major theoretical contribution is the proof that if a linear transformation is equivariant (e.g., a convolution is translation-equivariant), its exponential is also equivariant. This ensures the model inherently respects the natural symmetries of the input data.
  • Fast Convergence: Even though the Taylor power series is technically infinite, constraining the weights using spectral normalization allows the series to converge very quickly. In practice, expanding to only about 6 terms is sufficient for high accuracy.
  • The Trace Shortcut: Computing the Jacobian of a massive spatial transformation usually requires complex, expensive math. Because this method uses an exponential, the log-Jacobian is simply the trace of the kernel—a calculation that takes almost zero time.
  • Bridging ODEs and Flows: The matrix exponential is the exact solution to a linear Ordinary Differential Equation (ODE). This work effectively creates a theoretical bridge between Continuous Normalizing Flows (which rely on ODE solvers) and discrete, layer-based flows.

Key Results

The authors evaluated their methods on standard benchmarks, including CIFAR-10 for image density estimation and synthetic graph datasets (Mixtures of Gaussians) for graph modeling.

  • Better Image Modeling: On CIFAR-10, the Convolution Exponential outperformed $1 \times 1$ convolutions and other spatial alternatives like "emerging convolutions" in terms of negative log-likelihood (achieving 3.218 bits/dim compared to 3.266 for $1 \times 1$ convolutions).
  • Superior Residuals: Convolutional Sylvester Flows (CSFs) achieved better performance than standard Residual Flows while being easier to compute exactly.
  • Graph Performance: Adding the Graph Convolution Exponential to existing Graph Normalizing Flows consistently improved performance across all synthetic graph tasks, with the performance gap widening as the number of nodes increased.

Limitations and Future Work

While powerful, the approach has a few limitations. First, the matrix exponential can only represent transformations with a positive determinant. While rarely an issue in practice for flows, it is a mathematical restriction. Second, to ensure the power series converges, the authors must use spectral normalization to constrain the weights. This might limit the expressivity of a single layer, though stacking multiple layers easily compensates for this. Finally, while the Jacobian calculation is essentially "free," the forward pass requires a loop of $T$ convolutions (usually $T=6$). While faster than many ODE-based models, it remains more computationally expensive than a single $1 \times 1$ convolution.

Summary updated

BibTeX
@inproceedings{hoogeboom2020convolution,
  author = {Emiel Hoogeboom and Victor Garcia Satorras and Jakub M. Tomczak and Max Welling},
  title = {{The Convolution Exponential and Generalized Sylvester Flows}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=AWlL1xwJ01},
}
Figure