[Paper Review] Score-based Generative Modeling in Latent Space
This paper proposes Latent Score-based Generative Modeling (LSGM), a method that trains score-based generative models in a variational autoencoder (VAE) latent space to improve sample quality, reduce sampling complexity, and enable application to non-continuous data. By learning the score function in a lower-dimensional, smoother latent space, LSGM achieves state-of-the-art FID 2.10 on CIFAR-10 and a 100x speedup in sampling time on CelebA-HQ-256 compared to prior SGMs.
Score-based generative models (SGMs) have recently demonstrated impressive results in terms of both sample quality and distribution coverage. However, they are usually applied directly in data space and often require thousands of network evaluations for sampling. Here, we propose the Latent Score-based Generative Model (LSGM), a novel approach that trains SGMs in a latent space, relying on the variational autoencoder framework. Moving from data to latent space allows us to train more expressive generative models, apply SGMs to non-continuous data, and learn smoother SGMs in a smaller space, resulting in fewer network evaluations and faster sampling. To enable training LSGMs end-to-end in a scalable and stable manner, we (i) introduce a new score-matching objective suitable to the LSGM setting, (ii) propose a novel parameterization of the score function that allows SGM to focus on the mismatch of the target distribution with respect to a simple Normal one, and (iii) analytically derive multiple techniques for variance reduction of the training objective. LSGM obtains a state-of-the-art FID score of 2.10 on CIFAR-10, outperforming all existing generative results on this dataset. On CelebA-HQ-256, LSGM is on a par with previous SGMs in sample quality while outperforming them in sampling time by two orders of magnitude. In modeling binary images, LSGM achieves state-of-the-art likelihood on the binarized OMNIGLOT dataset. Our project page and code can be found at https://nvlabs.github.io/LSGM .
Motivation & Objective
- Address the high computational cost of score-based generative models (SGMs), which require thousands of network evaluations for sampling due to complex ODE/SDE integration.
- Overcome the limitation of SGMs being restricted to continuous data by enabling application to non-continuous and discrete data distributions.
- Improve expressivity and training stability by leveraging a VAE framework to learn a more structured and smoother latent space for SGMs.
- Enable end-to-end training of the VAE and SGM prior with a novel score-matching objective and variance reduction techniques.
- Achieve faster sampling and better sample quality by focusing the SGM on modeling only the mismatch between the aggregated posterior and a standard normal prior.
Proposed method
- Train a VAE with a standard normal prior to map data to a lower-dimensional latent space, where the aggregated posterior is close to the prior.
- Introduce a new denoising score matching objective that jointly optimizes the VAE and the latent SGM prior in an end-to-end manner.
- Propose a novel parameterization of the score function as a mixture of a standard normal distribution and a learnable SGM, allowing the model to focus on modeling the residual distribution mismatch.
- Apply analytical variance reduction techniques to the training objective, improving training stability and convergence.
- Use the probability flow ODE or ancestral sampling to generate samples in latent space, then decode to data space via the VAE decoder.
- Enable application to discrete data (e.g., binarized OMNIGLOT) by training the SGM in the continuous latent space, bypassing direct modeling of discrete distributions.
Experimental results
Research questions
- RQ1Can training score-based generative models in a VAE-learned latent space reduce sampling complexity while maintaining or improving sample quality?
- RQ2How does modeling only the distribution mismatch between the aggregated posterior and a standard normal prior affect model expressivity and training efficiency?
- RQ3Can LSGM achieve state-of-the-art performance on benchmark datasets like CIFAR-10 and CelebA-HQ-256 in terms of FID and sampling speed?
- RQ4Does the proposed method enable effective generative modeling of non-continuous data such as binary images?
- RQ5How does the choice of ODE solver tolerance and ancestral sampling affect sample quality and reconstruction fidelity in the latent space?
Key findings
- LSGM achieves a state-of-the-art FID score of 2.10 on CIFAR-10, outperforming all prior generative models on this benchmark.
- On CelebA-HQ-256, LSGM reduces sampling time by two orders of magnitude (from ~39 seconds to ~0.3 seconds) compared to prior SGMs while maintaining comparable sample quality.
- The model achieves state-of-the-art likelihood on the binarized OMNIGLOT dataset, demonstrating effective modeling of discrete data via latent-space SGM.
- Sampling with a higher ODE solver tolerance (10^-2) results in low-frequency artifacts, while lower tolerances (10^-5) improve fine details, indicating sensitivity to numerical precision.
- Ancestral sampling from the prior yields higher visual quality than probability flow ODE sampling, though FID scores are slightly worse, suggesting a trade-off between fidelity and diversity.
- A 32×32 latent space dimension yields faster sampling (2.7 sec) and better FID (7.22) than a 64×64 space (39.9 sec, FID 8.53), indicating that smaller latent spaces can be more efficient without sacrificing quality.
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.