Noise Dimension of GAN: An Image Compression Perspective

Ziran Zhu, Tongda Xu, Ling Li, Yan Wang

Abstract

Generative Adversarial Networks (GANs) are traditionally conceptualized as continuous mappings from a latent space to a high-dimensional image manifold. This paper proposes a paradigm shift, re-evaluating GANs as discrete samplers that operate on finite-precision digital signals. By quantifying the discrete entropy of standard float32 Gaussian noise, we establish a theoretical lower bound for the noise dimension required to perfectly represent a target dataset. This bound is shown to be intrinsically linked to the bitrate required for lossless image compression. Our empirical results on CIFAR10 and LSUN-Church demonstrate that insufficient noise dimensions create a physical information bottleneck, leading to predictable and measurable quality degradation.

Introduction

In a theoretical vacuum, a GAN could map a single scalar noise value to a complex image if that noise possessed infinite precision. However, practical implementation on digital hardware uses finite-precision formats like float32. While previous research has noted that low noise dimensions can harm image quality, there has been no rigorous method to determine the minimal necessary noise. This paper addresses this gap by asking: What is the minimal noise dimension required for a GAN to perfectly represent a target distribution?

Methodology: GANs as Decompressors

The authors frame the GAN generator as a learned decompression algorithm. In this model, the noise vector acts as the "compressed bitstream," and the generator serves as the "codec."

1. Quantifying Noise Entropy

Using Monte Carlo methods, the authors determine that one dimension of float32 Gaussian noise carries approximately 26.55 bits of information. This constant serves as the fundamental information capacity limit for GAN researchers using standard hardware.

2. The "Perfect GAN" Bound

For a GAN to achieve zero divergence (perfectly matching the target distribution), the noise dimension $n$ must satisfy: $$n \geq \frac{H(X)}{26.55}$$ where $H(X)$ is the entropy of the source data, which can be approximated by the bits required for lossless compression using modern codecs like JPEG-XL or WebP.

3. Divergence-Entropy Trade-off

When the noise budget is insufficient, a trade-off occurs. The authors introduce a "divergence-entropy function" $d(\epsilon)$, analogous to the rate-distortion function in information theory. This function describes the minimum possible divergence achievable for a given entropy budget and can be solved numerically using Disciplined Convex-Concave Programming (DCCP).

Divergence-entropy trade-off and class quantization.

Empirical Validation

The theory was tested on CIFAR10 and LSUN-Church datasets. Using JPEG-XL to estimate entropy, the calculated minimal noise dimension for CIFAR10 is approximately 475, while for the more complex LSUN-Church dataset, it rises to 18,966.

Quality Metrics and Noise Scaling

Experiments with BigGAN and StyleGAN2-ADA confirmed that as the noise dimension decreases, both Frechet Inception Distance (FID) and Kernel Inception Distance (KID) scores worsen (increase).

FID scores vs. log noise dimension across different models and datasets.

As seen in the figure above, the FID curves typically show a sharp improvement as the noise dimension increases, followed by a plateau. This plateau suggests that once the noise bottleneck is cleared, other factors like network capacity become the limiting performance factors.

Key Insights

  • Information Bottleneck: When the noise dimension is too low, the GAN physically cannot represent the full diversity of the source data. This provides a theoretical explanation for mode collapse; with only 1 dimension of noise, a GAN can only generate a few distinct categories, effectively "quantizing" the output space.
  • Network Capacity Constraints: While noise dimension sets a hard floor, network capacity (parameter count) also limits the FID. Smaller networks may reach their performance peak at lower noise dimensions because they lack the power to utilize additional input entropy.

Conclusion

By bridging the gap between discrete information limits and generative modeling, this work provides a new lens for GAN architecture design. The 26.55-bit constant offers a practical heuristic for determining latent space dimensions. Future research may focus on developing "information-efficient" architectures that maximize the utility of every bit of input noise.

Summary updated

BibTeX
@inproceedings{zhu2024noise,
  author = {Ziran Zhu and Tongda Xu and Ling Li and Yan Wang},
  title = {{Noise Dimension of GAN: An Image Compression Perspective}},
  booktitle = {ICME},
  year = {2024},
  url = {https://openreview.net/forum?id=Fd5OKy2qHL},
}
Figure