Abstract
Latent Diffusion Models (LDMs) have revolutionized high-resolution image generation but are often constrained by the computational overhead of their Variational Autoencoder (VAE) components. We present LiteVAE, a novel VAE architecture that leverages the 2D discrete wavelet transform (DWT) to significantly reduce complexity. By replacing heavy convolutional layers with a multi-level wavelet decomposition, LiteVAE achieves a six-fold reduction in encoder parameters and nearly doubles throughput while matching or exceeding the reconstruction quality of industry-standard models like the Stable Diffusion VAE.
Introduction
Latent Diffusion Models operate in a two-stage pipeline: a VAE compresses pixels into a latent space, and a diffusion model generates data within that space. While much optimization has targeted the diffusion process, the VAE remains a massive computational bottleneck. In models like Stable Diffusion 2.1, the encoder can require more GFLOPS than the diffusion UNet itself. This inefficiency forces researchers to precompute latents, hindering on-the-fly data augmentation and making video or 3D model training prohibitively expensive. LiteVAE addresses this by redesigning the VAE for maximum efficiency.
Architecture and Methodology
The core innovation of LiteVAE is the transition from a purely convolutional encoder to a wavelet-based design.
Wavelet-Based Feature Extraction
Instead of processing raw pixels through deep convolutional stacks, LiteVAE uses a multi-level Discrete Wavelet Transform (DWT) with the Haar basis. This decomposes the input image into low-frequency and high-frequency sub-bands across multiple scales. Lightweight UNet-style modules then extract features from these sub-bands, which are merged via a feature-aggregation module to form the final latent code.
Self-Modulated Convolution (SMC)
To improve the decoder, the authors introduced Self-Modulated Convolution (SMC). Standard Group Normalization can destroy magnitude information, leading to imbalanced feature maps. SMC allows the network to learn its own scaling factors for each feature map, enhancing training stability and making the model more robust to changes in input resolution.
Efficient Training
The authors utilize a progressive training recipe, starting at a lower resolution (128x128) before fine-tuning at 256x256. This approach significantly reduces total training time without sacrificing the final reconstruction fidelity.
Key Results
LiteVAE was evaluated on standard benchmarks including FFHQ, ImageNet, and CelebA-HQ. The results demonstrate a superior balance of efficiency and quality:
- Efficiency: The LiteVAE-B variant features only 6.75M encoder parameters, a 6x reduction compared to the 34.16M parameters in the standard Stable Diffusion VAE.
- Throughput: On a Quadro RTX 6000, LiteVAE-B achieved 129 images/sec, nearly doubling the 68 images/sec of the standard VAE while using only one-third of the GPU memory.
- Quality: The larger LiteVAE-L variant outperformed standard VAEs across metrics such as rFID (reconstruction Fréchet Inception Distance), LPIPS, PSNR, and SSIM.
Furthermore, LiteVAE's latent space was found to be statistically closer to a standard Gaussian distribution than traditional VAEs, making it a more "friendly" environment for subsequent diffusion models to learn.
Conclusion
LiteVAE demonstrates that frequency-domain techniques like wavelets can drastically simplify the task of image compression for generative models. By breaking the VAE bottleneck, LiteVAE enables more efficient training and inference, paving the way for high-resolution generative modeling in resource-constrained environments and complex domains like video synthesis.
Summary updated