Wavelets to the Rescue: Improving Sample Quality of Latent Variable Deep Generative Models

Prashnna K. Gyawali, Rudra Saha, Linwei Wang, V. S. R. Veeravasarapu, Maneesh SingharXiv 2019

Abstract

Variational Autoencoders (VAE) are probabilistic deep generative models underpinned by elegant theory, stable training processes, and meaningful manifold representations. However, they produce blurry images due to a lack of explicit emphasis over high-frequency textural details of the images, and the difficulty to directly model the complex joint probability distribution over the high-dimensional image space. In this work, we approach these two challenges with a novel wavelet space VAE that uses the decoder to model the images in the wavelet coefficient space. This enables the VAE to emphasize over high-frequency components within an image obtained via wavelet decomposition. Additionally, by decomposing the complex function of generating high-dimensional images into inverse wavelet transformation and generation of wavelet coefficients, the latter becomes simpler to model by the VAE. We empirically validate that deep generative models operating in the wavelet space can generate images of higher quality than the image (RGB) space counterparts. Quantitatively, on benchmark natural image datasets, we achieve consistently better FID scores than VAE based architectures and competitive FID scores with a variety of GAN models for the same architectural and experimental setup. Furthermore, the proposed wavelet-based generative model retains desirable attributes like disentangled and informative latent representation without losing the quality in the generated samples.

Introduction

Variational Autoencoders (VAEs) are a staple of deep generative modeling, beloved for their stable training and elegant latent manifolds. However, they have a notorious "blurriness" problem. While Generative Adversarial Networks (GANs) produce crisp, high-fidelity images, VAE samples often look like they were viewed through a foggy lens. This paper identifies two primary culprits behind VAE blurriness: the loss function and the complexity of the image space.

VAEs typically use a pixel-wise Mean Squared Error (MSE) loss. MSE assumes a Gaussian distribution of pixels, which encourages the model to "play it safe" by averaging out high-frequency details, resulting in overly smooth images. Furthermore, modeling the joint probability distribution of high-dimensional RGB pixels is incredibly difficult. The authors argue that this complexity can be "relaxed" by moving to a transform domain where the data structure is simpler and more amenable to modeling.

Methodology

The core innovation presented is the Wavelet-VAE. Instead of the decoder outputting an RGB image directly, it is trained to predict the coefficients of a Discrete Wavelet Transform (DWT). This approach decomposes the image into low-frequency approximation coefficients and high-frequency detail coefficients.

Comparison of standard VAE and Wavelet Encoder-Decoder architectures.

The authors recognize that high-frequency coefficients in natural images follow a heavy-tailed distribution. Consequently, they employ a Laplacian assumption (leading to an L1-norm loss) for high-frequency details and a standard Gaussian assumption (MSE loss) for low-frequency components. In the multi-resolution (MR) version of the model, the decoder predicts coefficients at multiple scales of decomposition. The final image is generated by passing the predicted coefficients through an Inverse Wavelet Transform (IWT), which is a lossless, linear operation. By modeling wavelet coefficients directly, the VAE is explicitly tasked with generating the building blocks of image structure, such as local edges and textures.

Results and Discussion

The model was evaluated on three standard benchmark datasets: CIFAR-10, CelebA, and Flickr-Face (FFHQ). The Wavelet-VAE consistently outperformed standard VAEs across all metrics. On CelebA, the Wavelet-VAE-MR achieved an FID of 47.92, a significant improvement over the vanilla VAE's 57.19. On CIFAR-10, it improved the FID from 130.62 to 101.86.

To quantify the relationship between frequency content and image quality, the authors introduced an "Image Quality Measure" (IQM) based on Fourier transforms. Their analysis demonstrates a strong correlation: models that capture more high-frequency information consistently achieve better Fréchet Inception Distance (FID) scores.

Correlation between Image Quality Measure (IQM) and Fréchet Inception Distance (FID).

Beyond quantitative gains, visual comparisons show that wavelet-based models produce much clearer facial features (eyes, teeth, hair texture) compared to the "ghostly" appearance of standard VAE outputs. Importantly, the Wavelet-VAE retains the "disentangled" nature of the latent space, allowing for smooth attribute traversals.

Conclusion

By shifting the generative process from raw pixel space to the wavelet coefficient domain, the authors significantly improve the sharpness and textural detail of VAE samples. The Wavelet-VAE achieves state-of-the-art FID scores for VAE-based models and remains competitive with GANs while preserving the desirable latent space properties of standard VAEs. Future research directions include the exploration of hierarchical priors to better match multi-scale wavelet transforms and scaling the approach to high-resolution image generation.

Summary updated

BibTeX
@misc{gyawali2019wavelets,
  author = {Prashnna K. Gyawali and Rudra Saha and Linwei Wang and V. S. R. Veeravasarapu and Maneesh Singh},
  title = {{Wavelets to the Rescue: Improving Sample Quality of Latent Variable Deep Generative Models}},
  year = {2019},
  eprint = {1911.05627},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.05627},
}
Figure