TL;DR
This paper introduces NSB-GAN, a novel two-stage framework for generating high-resolution images that drastically reduces computational cost. By leveraging wavelet transforms to decompose images and then using a separate super-resolution decoder, NSB-GAN achieves competitive image quality with significantly less compute, even outperforming BigGAN on ImageNet at 512x512 resolution while using half the resources.
What Problem Does This Paper Address?
State-of-the-art deep generative models (DGMs) for high-resolution image synthesis, like BigGAN and VQVAE-2, are notoriously computationally expensive to train. This high barrier to entry limits their accessibility for many researchers and has significant environmental implications due to massive energy consumption. While image super-resolution models are efficient, they are typically applied to already generated low-resolution images. The authors aim to bridge this gap by developing a cost-effective DGM that can generate high-fidelity images without requiring massive computational resources.
Methods
NSB-GAN employs a two-step training framework:
- Wavelet-based Sampler: Instead of generating images directly in the high-dimensional pixel space, NSB-GAN first generates images in a lower-dimensional wavelet domain. This is achieved by using a deterministic encoder that applies wavelet transforms to down-sample images, retaining only the low-frequency components (Top-Left patch). A generative model (e.g., BigGAN) is then trained as a "sampler" in this compressed wavelet space. The key advantage here is that wavelet-based down-sampling preserves more structural information than traditional pixel-based methods, leading to better quality in the low-resolution sampler.
- Wavelet Super-Resolution Decoder: A novel decoder network is then trained to super-resolve these wavelet-domain samples back into high-resolution images. This decoder operates directly on the wavelet representation, effectively bypassing the high-dimensional pixel space during the most computationally intensive part of the generation process. The authors propose two types of decoders: ESRGAN-based and UNet-based.
This split allows for parallel training of the sampler and decoder on much smaller dimensional spaces, leading to substantial reductions in training time and computational cost.
Datasets
The primary dataset used for training and evaluation is ImageNet. The authors evaluate their models at resolutions of 256x256 and 512x512. They also mention experiments on the LSUN Church dataset to demonstrate the generalizability of their approach with different samplers.
Key Insights and Ideas
- Wavelet Transform as a Compression Tool: The core insight is that wavelet transforms can effectively compress image information while preserving crucial structural details, making the latent space for generative modeling significantly smaller and easier to learn.
- Decoupling Generation and Super-Resolution: Separating the generation of low-frequency components (sampling) from the reconstruction of high-frequency details (super-resolution) is key to reducing computational burden without sacrificing quality.
- Wavelet-Space Super-Resolution: Developing decoders that operate directly in the wavelet domain, rather than pixel space, is crucial for maintaining the efficiency gains.
- Wavelet vs. Pixel Down-sampling: Wavelet-based down-sampling demonstrably preserves more structural information than pixel-based interpolation, leading to better sampler performance. This is a key reason why NSB-GAN-W outperforms NSB-GAN-P.
- Amortized Decoder Training: The trained decoders can generalize across different samplers and resolutions, further reducing overall training costs.
Key Results
- Compute Efficiency: NSB-GAN achieves comparable image quality to BigGAN but with significantly reduced compute. For example, on ImageNet 512x512, NSB-GAN achieves a FID of 10.59, outperforming BigGAN while using half the compute (256 TPU-v3 cores vs. 512).
- Learned Samplers: NSB-GAN-W with a learned wavelet sampler achieved a FID of 21.82 on ImageNet 256x256 in 7 days using 4 V100 GPUs, while the baseline BigGAN failed to produce meaningful samples in the same timeframe with more resources.
- Pre-trained Samplers: Using pre-trained samplers, NSB-GAN models achieved competitive FID scores with up to 4x less compute than training BigGAN from scratch.
- Generalization: The trained decoders generalized well to different resolutions and even to an unseen dataset (LSUN Church) when paired with a StyleGAN-2 sampler.
Limitations and Future Work
- Learned Sampler Instability: The authors note that training BigGAN-based samplers in the pixel space is highly unstable, with four out of five models diverging. This highlights the benefit of the wavelet-space approach.
- Decoder Performance: While ESRGAN-based decoders outperform UNet-based decoders on FID/IS due to adversarial training, the UNet-W decoder showed better reconstruction error.
- Future Work: The authors suggest that their NSB-GAN framework can be extended to work with different samplers beyond BigGAN and StyleGAN-2, and that the decoder's ability to generalize can be further leveraged. They also implicitly suggest that exploring other wavelet families or more advanced decoder architectures could yield further improvements.
Summary updated