[Paper Review] Evaluating Lossy Compression Rates of Deep Generative Models
This paper proposes using rate-distortion (RD) curves as a comprehensive evaluation framework for deep generative models, showing that the entire RD curve can be approximated with computational cost comparable to a single log-likelihood estimate using Annealed Importance Sampling (AIS). The key contribution is revealing that VAEs degrade in low-rate lossy compression despite better lossless performance, while GANs maintain strong performance across rates, especially with increased width and depth, offering richer insights than scalar metrics like log-likelihood or FID.
The field of deep generative modeling has succeeded in producing astonishingly realistic-seeming images and audio, but quantitative evaluation remains a challenge. Log-likelihood is an appealing metric due to its grounding in statistics and information theory, but it can be challenging to estimate for implicit generative models, and scalar-valued metrics give an incomplete picture of a model's quality. In this work, we propose to use rate distortion (RD) curves to evaluate and compare deep generative models. While estimating RD curves is seemingly even more computationally demanding than log-likelihood estimation, we show that we can approximate the entire RD curve using nearly the same computations as were previously used to achieve a single log-likelihood estimate. We evaluate lossy compression rates of VAEs, GANs, and adversarial autoencoders (AAEs) on the MNIST and CIFAR10 datasets. Measuring the entire RD curve gives a more complete picture than scalar-valued metrics, and we arrive at a number of insights not obtainable from log-likelihoods alone.
Motivation & Objective
- To address the limitations of scalar metrics like log-likelihood and FID in evaluating generative models, especially for implicit models such as GANs.
- To develop a computationally efficient method for estimating the full rate-distortion (RD) curve of deep generative models.
- To provide a more complete and theoretically grounded evaluation that captures tradeoffs between compression rate and reconstruction fidelity.
- To reveal model behaviors not visible through log-likelihoods alone, such as performance degradation in low-rate regimes.
Proposed method
- Leverages Annealed Importance Sampling (AIS) to estimate normalizing constants of unnormalized posterior distributions over latent variables, which correspond to the distributions needed for rate-distortion analysis.
- Treats the rate-distortion function as a family of posterior distributions under Gaussian observation models with varying variances, enabling estimation via AIS.
- Proves that the AIS estimate of the RD curve is an upper bound, with tightness validated using bidirectional Monte Carlo (BDMC) on simulated data.
- Uses the same AIS computation pipeline used for log-likelihood estimation to simultaneously approximate the entire RD curve, minimizing additional computational cost.
- Employs perceptually motivated distortion metrics such as MSE on deep features and SSIM to assess robustness across different distortion definitions.
- Compares AIS estimates with variational approximations to evaluate the accuracy of different estimation methods, especially for models with multi-modal posteriors like GANs.
Experimental results
Research questions
- RQ1How can rate-distortion curves be efficiently estimated for deep generative models without incurring significant computational overhead?
- RQ2What insights about model behavior are revealed by the full RD curve that are not visible through scalar metrics like log-likelihood or FID?
- RQ3How do VAEs, GANs, and AAEs differ in their rate-distortion tradeoffs across varying code sizes and network depths?
- RQ4Does the choice of distortion metric (e.g., pixelwise MSE vs. deep feature MSE) significantly alter the interpretation of RD curves?
- RQ5How accurate are variational approximations compared to AIS for estimating RD curves, particularly for models with complex posterior structures like GANs?
Key findings
- VAEs with larger code sizes achieve better lossless compression but suffer significant performance degradation in the low-rate regime under lossy compression.
- GANs maintain strong performance across the entire rate-distortion spectrum, with increased width extending the curve leftward and increased depth pushing it downward.
- The RD curve reveals that GANs with higher capacity (especially width) achieve lower distortion at high rates without sacrificing low-rate performance.
- Variational approximations fail to provide reliable bounds for GANs due to highly multi-modal posteriors, while they perform better for VAEs with more tractable posteriors.
- The qualitative shape of RD curves remains consistent across different distortion metrics, such as pixelwise MSE and deep feature MSE, indicating robustness of the analysis.
- AIS provides a tighter and more accurate estimate of the RD curve than variational methods, especially for implicit models like GANs, where variational bounds are misleading.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.