A Multi-Resolution Framework for U-Nets with Applications to Hierarchical VAEs

Fabian Falck, Christopher Williams, Dominic Danks, George Deligiannidis, Christopher Yau, Christopher C. Holmes, Arnaud Doucet, Matthew Willetts

TL;DR

This paper provides a rigorous mathematical foundation for U-Nets by framing them as multi-resolution function approximators. The authors prove that U-Nets using average pooling implicitly learn a Haar wavelet representation of data and demonstrate that Hierarchical VAEs (HVAEs) are actually discretizations of continuous-time diffusion processes. This theoretical grounding allows them to achieve state-of-the-art performance with 50% fewer parameters through clever weight-sharing.

What Problem Does This Paper Address?

Despite their ubiquity in computer vision—from medical image segmentation to the backbone of modern Stable Diffusion models—U-Nets are often treated as "black boxes." We know they work, but we lack a deep theoretical understanding of the regularization they impose or why specific architectural choices (like residual cells) are effective.

In the realm of Hierarchical VAEs (HVAEs), models have become increasingly deep and complex (e.g., VDVAE, NVAE), leading to massive parameter counts and "sampling instabilities" where generated images look like noise. This paper seeks to unify these empirical successes under a single "multi-resolution framework" to explain these phenomena and optimize model design.

Methods

The authors introduce a Multi-Resolution Framework that views images not just as grids of pixels, but as functions in an infinite-dimensional square-integrable space ($L^2$).

  1. Wavelet Connection: They prove that the common operation of average pooling is a conjugate operation to projection in a Haar wavelet basis. This means a U-Net's bottleneck structure naturally forces the network to decompose data into coarse and fine-grained components.
  2. Diffusion Discretization: They identify the residual cells in state-of-the-art HVAEs as a two-step forward Euler discretization of a multi-resolution diffusion process. Essentially, as data moves through the hierarchy, it "flows" along a path defined by a Stochastic Differential Equation (SDE).
The VDVAE cell viewed as a discretization of a continuous-time diffusion process.
  1. Weight-Sharing: By identifying the layers as steps in a continuous-time process, the authors hypothesize that the model can be "time-homogeneous." They implement weight-sharing across layers within the same resolution, significantly reducing the number of parameters without losing expressivity.

Datasets

The framework was evaluated on several standard generative modeling benchmarks:

  • MNIST: 28x28 grayscale handwritten digits.
  • CIFAR-10: 32x32 color images of objects/animals.
  • ImageNet-32: A downsampled version of the massive ImageNet dataset.
  • CelebA-64: 64x64 images of celebrity faces.

Key Insights and Ideas

  • U-Nets are Implicit Wavelet Learners: By using average pooling, U-Nets are mathematically "pushed" to represent data in a Haar wavelet basis. This provides a clear explanation for the inductive bias of the architecture: it prioritizes large-scale features before refining details.
  • HVAEs "Secretly" Represent Time: The authors discovered that HVAEs use the $L_2$-norm of their residual states to track "time" as they generate data. The state norm increases monotonically across layers, acting as a proxy for an internal clock.
  • The Source of Instability: The theory reveals that HVAEs attempt to flow from a "point mass" (a single point in space), which is inherently unstable. This explains why sampling can fail even when the model achieves high likelihood scores.
  • Efficiency through Homogeneity: Because the layers represent steps in a continuous process, you don't need unique weights for every single layer. Sharing weights across "time steps" (layers) allows the model to be much leaner.

Key Results

  • Parameter Efficiency: The proposed WS-VDVAE (Weight-Shared VDVAE) achieved state-of-the-art performance while using roughly half the parameters of existing models. For example, on CIFAR-10, they reached an NLL of 2.83 with 39M parameters, outperforming the original VDVAE which used the same number of parameters but lacked weight-sharing.
NLL performance comparison showing that weight-shared models (WS-VDVAE) converge to better or equal results than their parameter-heavy counterparts.
  • Record Depth: The authors successfully trained HVAEs with a stochastic depth of up to 235, the deepest ever reported for this class of models.
  • State-of-the-Art Likelihood: On ImageNet-32 and CelebA-64, their models matched or exceeded the performance of much larger, non-weight-shared architectures.

Limitations and Future Work

  • Pooling Constraints: The theoretical proof regarding wavelets is currently limited to average pooling. While average pooling is common, many U-Nets use strided convolutions or max pooling, which are not yet covered by this specific Haar wavelet proof.
  • Scope of Application: While the paper focuses heavily on HVAEs, the multi-resolution framework could potentially be applied to other U-Net-based models, such as those used in image segmentation or standard diffusion models (like DDPM).
  • Sampling Instability: While the paper identifies why instabilities happen (the point-mass flow), it doesn't fully "fix" the instability for all datasets, noting that "finding the right hyperparameters helps, but cannot solve this" entirely. Future work may look at better ways to initialize the diffusion flow.

Summary updated

BibTeX
@inproceedings{falck2022multi,
  author = {Fabian Falck and Christopher Williams and Dominic Danks and George Deligiannidis and Christopher Yau and Christopher C. Holmes and Arnaud Doucet and Matthew Willetts},
  title = {{A Multi-Resolution Framework for U-Nets with Applications to Hierarchical VAEs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=PQFr7FbGbO},
}
Figure