PreprintCited by 1,453Generative Adversarial Networks and Image SynthesisAdversarial Robustness in Machine LearningModel Reduction and Neural Networks

Generative Modeling by Estimating Gradients of the Data Distribution

Open access
Song, Yang, Ermon, Stefano·2019·arXiv

Abstract

We introduce a new generative model where samples are produced via Langevin dynamics using gradients of the data distribution estimated with score matching. Because gradients can be ill-defined and hard to estimate when the data resides on low-dimensional manifolds, we perturb the data with different levels of Gaussian noise, and jointly estimate the corresponding scores, i.e., the vector fields of gradients of the perturbed data distribution for all noise levels. For sampling, we propose an annealed Langevin dynamics where we use gradients corresponding to gradually decreasing noise levels as the sampling process gets closer to the data manifold. Our framework allows flexible model architectures, requires no sampling during training or the use of adversarial methods, and provides a learning objective that can be used for principled model comparisons. Our models produce samples comparable to GANs on MNIST, CelebA and CIFAR-10 datasets, achieving a new state-of-the-art inception score of 8.87 on CIFAR-10. Additionally, we demonstrate that our models learn effective representations via image inpainting experiments.

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

DataCite · 10.48550/arxiv.1907.05600

Cites

10 of 10 references verified0 citation errors · 0 not checkable

Statistics

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • Diffusion Policy can express arbitrary normalizable distributions, including multimodal action distributions.

    “By learning the gradient of the action score function [46] and performing Stochastic Langevin Dynamics sampling on this gradient field, Diffusion policy can express arbitrary normalizable distributions [32], which includes multimodal action distributions”

    From Diffusion Policy: Visuomotor Policy Learning via Action Diffusion (2023) · cites this paper as [46]

    Section 2.2 (p. 3) says Langevin dynamics can sample from a probability density using its score, but exact sampling requires limiting step size and runtime and holds only under regularity conditions. Sections 4 and 4.3 (pp. 5–7) address multimodal distributions and demonstrate sampling from a two-mode Gaussian mixture. The paper does not establish the unqualified claim that arbitrary normalizable distributions can be expressed. (LLM, conf=0.84)

    Experimental — accuracy not yet measured
  • Diffusion Policy sidesteps estimating the normalization constant Z by modeling the score function, so neither its inference nor training involves evaluating Z, making training more stable.

    “Diffusion Policy and DDPMs sidestep the issue of estimating Z ( a , θ ) altogether by modeling the score function Song and Ermon (2019) of the same action distribution in Eq 6:”

    From Diffusion policy: Visuomotor policy learning via action diffusion (2025) · cites this paper as Song and Ermon (2019)

    Section 2.1 (p. 2) says a score network can estimate the gradient of the log data distribution without first estimating the distribution itself, supporting the score-modeling rationale for avoiding a normalization constant. Section 4.2 (p. 6) describes score-based training and sampling, but the paper does not assess Diffusion Policy or establish that avoiding Z makes its training more stable. (LLM, conf=0.83)

    Experimental — accuracy not yet measured
  • Diffusion Policy can express multimodal action distributions.

    “Expressing multimodal action distributions. By learning the gradient of the action score function Song and Ermon (2019) and performing Stochastic Langevin Dynamics sampling on this gradient field, Diffusion policy can express arbitrary normalizable distributions Neal et al. (2011), which includes multimodal action distributions, a well-known challenge for policy learning.”

    From Diffusion policy: Visuomotor policy learning via action diffusion (2025) · cites this paper as Song and Ermon (2019)

  • Diffusion Policy can express arbitrary normalizable distributions, which includes multimodal action distributions.

    “By learning the gradient of the action score function Song and Ermon (2019) and performing Stochastic Langevin Dynamics sampling on this gradient field, Diffusion policy can express arbitrary normalizable distributions Neal et al. (2011), which includes multimodal action distributions, a well-known challenge for policy learning.”

    From Diffusion Policy: Visuomotor Policy Learning via Action Diffusion (2023) · cites this paper as Song and Ermon (2019)

  • A certain parameterization of diffusion models reveals an equivalence with denoising score matching over multiple noise levels during training and with annealed Langevin dynamics during sampling.

    “In addition, we show that a certain parameterization of diffusion models reveals an equivalence with denoising score matching over multiple noise levels during training and with annealed Langevin dynamics during sampling (Section 3.2) [55, 61].”

    From Denoising Diffusion Probabilistic Models (2020) · cites this paper as [55]

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Cites

Flagged first, then by citations

Research works printed but not linked: 54

  1. [2][2] M. Arjovsky, S. Chintala, and L. Bottou. Wasserstein generative adversarial networks. In D. Precup and Y. W. Teh, editors, Proceedings of the 34th International Conference on Machine Learning , volume 70 of Proceedings of Machine Learning Research , pages 214-223, International Convention Centre, Sydney, Australia, 06-11 Aug 2017. PMLR. -
  2. [3][3] M. Belkin and P. Niyogi. Laplacian eigenmaps for dimensionality reduction and data representation. Neural computation , 15(6):1373-1396, 2003. -
  3. [4][4] Y. Bengio, L. Yao, G. Alain, and P. Vincent. Generalized denoising auto-encoders as generative models. In Advances in neural information processing systems , pages 899-907, 2013. -
  4. [5][5] F. Bordes, S. Honari, and P. Vincent. Learning to generate samples from noise through infusion training. arXiv preprint arXiv:1703.06975 , 2017. - · arXiv
  5. [7][7] B. Chandra and R. K. Sharma. Adaptive noise schedule for denoising autoencoder. In International conference on neural information processing , pages 535-542. Springer, 2014. -
  6. [8][8] L.-C. Chen, G. Papandreou, I. Kokkinos, K. Murphy, and A. L. Yuille. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs. IEEE transactions on pattern analysis and machine intelligence , 40(4):834-848, 2017. -
  7. [9][9] T. Chen, E. Fox, and C. Guestrin. Stochastic gradient hamiltonian monte carlo. In International conference on machine learning , pages 1683-1691, 2014. -
  8. [10][10] Z. Dai, Z. Yang, F. Yang, W. W. Cohen, and R. R. Salakhutdinov. Good semi-supervised learning that requires a bad gan. In Advances in neural information processing systems , pages 6510-6520, 2017. -
  9. [11][11] L. Dinh, D. Krueger, and Y. Bengio. Nice: Non-linear independent components estimation. arXiv preprint arXiv:1410.8516 , 2014. - · arXiv
  10. [12][12] Y. Du and I. Mordatch. Implicit generation and generalization in energy-based models. arXiv preprint arXiv:1903.08689 , 2019. - · arXiv
  11. [13][13] V. Dumoulin, J. Shlens, and M. Kudlur. A learned representation for artistic style. In International Conference on Learning Representations 2017 , 2017. -
  12. [14][14] K. J. Geras and C. Sutton. Scheduled denoising autoencoders. arXiv preprint arXiv:1406.3269 , 2014. - · arXiv
  13. [15][15] I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio. Generative adversarial nets. In Advances in neural information processing systems , pages 2672-2680, 2014. -
  14. [16][16] A. G. A. P. Goyal, N. R. Ke, S. Ganguli, and Y. Bengio. Variational walkback: Learning a transition operator as a stochastic recurrent net. In Advances in Neural Information Processing Systems , pages 4392-4402, 2017. -
  15. [17][17] A. Graves. Generating sequences with recurrent neural networks. arXiv preprint arXiv:1308.0850 , 2013. - · arXiv
  16. [18][18] I. Gulrajani, F. Ahmed, M. Arjovsky, V. Dumoulin, and A. C. Courville. Improved training of wasserstein gans. In Advances in Neural Information Processing Systems , pages 5767-5777, 2017. -
  17. [19][19] M. Gutmann and A. Hyvärinen. Noise-contrastive estimation: A new estimation principle for unnormalized statistical models. In Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics , pages 297-304, 2010. -
  18. [23][23] X. Huang and S. Belongie. Arbitrary style transfer in real-time with adaptive instance normalization. In Proceedings of the IEEE International Conference on Computer Vision , pages 1501-1510, 2017. -
  19. [24][24] A. Hyvärinen. Estimation of non-normalized statistical models by score matching. Journal of Machine Learning Research , 6(Apr):695-709, 2005. -
  20. [25][25] T. Karras, T. Aila, S. Laine, and J. Lehtinen. Progressive growing of GANs for improved quality, stability, and variation. In International Conference on Learning Representations , 2018. -
  21. [27][27] D. Kingma and Y. LeCun. Regularized estimation of image statistics by score matching. In Advances in Neural Information Processing Systems 23: 24th Annual Conference on Neural Information Processing Systems 2010, NIPS 2010 , 2010. -
  22. [28][28] D. P. Kingma, S. Mohamed, D. J. Rezende, and M. Welling. Semi-supervised learning with deep generative models. In Advances in neural information processing systems , pages 3581-3589, 2014. -
  23. [29][29] D. P. Kingma and M. Welling. Auto-encoding variational bayes. In ICLR , 2014. -
  24. [30][30] S. Kirkpatrick, C. D. Gelatt, and M. P. Vecchi. Optimization by simulated annealing. SCIENCE , 220(4598):671-680, 1983. -
  25. [33][33] Q. Liu, J. Lee, and M. Jordan. A kernelized stein discrepancy for goodness-of-fit tests. In International Conference on Machine Learning , pages 276-284, 2016. -
  26. [34][34] Z. Liu, P. Luo, X. Wang, and X. Tang. Deep learning face attributes in the wild. In Proceedings of International Conference on Computer Vision (ICCV) , 2015. -
  27. [35][35] K. Miyasawa. An empirical bayes estimator of the mean of a normal population. Bull. Inst. Internat. Statist , 38(181-188):1-2, 1961. -
  28. [36][36] T. Miyato, T. Kataoka, M. Koyama, and Y. Yoshida. Spectral normalization for generative adversarial networks. In International Conference on Learning Representations , 2018. -
  29. [37][37] R. M. Neal. Annealed importance sampling. Statistics and computing , 11(2):125-139, 2001. -
  30. [38][38] R. M. Neal. Mcmc using hamiltonian dynamics. arXiv preprint arXiv:1206.1901 , 2012. - · arXiv
  31. [39][39] E. Nijkamp, M. Hill, T. Han, S.-C. Zhu, and Y. N. Wu. On the anatomy of mcmc-based maximum likelihood learning of energy-based models. arXiv preprint arXiv:1903.12370 , 2019. - · arXiv
  32. [41][41] G. Ostrovski, M. G. Bellemare, A. van den Oord, and R. Munos. Count-based exploration with neural density models. In Proceedings of the 34th International Conference on Machine Learning-Volume 70 , pages 2721-2730. JMLR. org, 2017. -
  33. [42][42] G. Ostrovski, W. Dabney, and R. Munos. Autoregressive quantile networks for generative modeling. In ICML , volume 80 of Proceedings of Machine Learning Research , pages 39333942. PMLR, 2018. -
  34. [43][43] M. Raphan and E. P. Simoncelli. Learning to be bayesian without supervision. In Advances in neural information processing systems , pages 1145-1152, 2007. -
  35. [44][44] M. Raphan and E. P. Simoncelli. Least squares estimation without priors or supervision. Neural computation , 23(2):374-420, 2011. -
  36. [45][45] S. Ravuri, S. Mohamed, M. Rosca, and O. Vinyals. Learning implicit generative models with the method of learned moments. In J. Dy and A. Krause, editors, Proceedings of the 35th International Conference on Machine Learning , volume 80 of Proceedings of Machine Learning Research , pages 4314-4323, Stockholmsmässan, Stockholm Sweden, 10-15 Jul 2018. PMLR. -
  37. [47][47] S. T. Roweis and L. K. Saul. Nonlinear dimensionality reduction by locally linear embedding. science , 290(5500):2323-2326, 2000. -
  38. [48][48] T. Salimans, I. Goodfellow, W. Zaremba, V. Cheung, A. Radford, and X. Chen. Improved techniques for training gans. In Advances in neural information processing systems , pages 2234-2242, 2016. -
  39. [49][49] S. Saremi, A. Mehrjou, B. Schölkopf, and A. Hyvärinen. Deep energy estimator networks. arXiv preprint arXiv:1805.08306 , 2018. - · arXiv
  40. [50][50] J. Sohl-Dickstein, P. Battaglino, and M. R. DeWeese. Minimum probability flow learning. arXiv preprint arXiv:0906.4779 , 2009. - · arXiv
  41. [51][51] J. Sohl-Dickstein, E. Weiss, N. Maheswaranathan, and S. Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In International Conference on Machine Learning , pages 2256-2265, 2015. -
  42. [52][52] J. Song, S. Zhao, and S. Ermon. A-nice-mc: Adversarial training for mcmc. In Advances in Neural Information Processing Systems , pages 5140-5150, 2017. -
  43. [53][53] Y. Song, S. Garg, J. Shi, and S. Ermon. Sliced score matching: A scalable approach to density and score estimation. In Proceedings of the Thirty-Fifth Conference on Uncertainty in Artificial Intelligence, UAI 2019, Tel Aviv, Israel, July 22-25, 2019 , page 204, 2019. -
  44. [54][54] Y. Song, T. Kim, S. Nowozin, S. Ermon, and N. Kushman. Pixeldefend: Leveraging generative models to understand and defend against adversarial examples. In International Conference on Learning Representations , 2018. -
  45. [55][55] B. K. Sriperumbudur, K. Fukumizu, A. Gretton, B. Schölkopf, and G. R. Lanckriet. On integral probability metrics, \ phi-divergences and binary classification. arXiv preprint arXiv:0901.2698 , 2009. - · arXiv
  46. [56][56] C. M. Stein. Estimation of the mean of a multivariate normal distribution. The annals of Statistics , pages 1135-1151, 1981. -
  47. [57][57] D. Ulyanov, A. Vedaldi, and V. Lempitsky. Instance normalization: The missing ingredient for fast stylization. arXiv preprint arXiv:1607.08022 , 2016. - · arXiv
  48. [59][59] A. Van den Oord, N. Kalchbrenner, L. Espeholt, O. Vinyals, A. Graves, et al. Conditional image generation with pixelcnn decoders. In Advances in neural information processing systems , pages 4790-4798, 2016. -
  49. [60][60] A. Van Den Oord, N. Kalchbrenner, and K. Kavukcuoglu. Pixel recurrent neural networks. In Proceedings of the 33rd International Conference on International Conference on Machine Learning - Volume 48 , ICML'16, pages 1747-1756. JMLR.org, 2016. -
  50. [62][62] M. Welling and Y. W. Teh. Bayesian learning via stochastic gradient langevin dynamics. In Proceedings of the 28th international conference on machine learning (ICML-11) , pages 681-688, 2011. -
  51. [63][63] L. Wenliang, D. Sutherland, H. Strathmann, and A. Gretton. Learning deep kernels for exponential family densities. In International Conference on Machine Learning , pages 6737-6746, 2019. -
  52. [64][64] F. Yu and V. Koltun. Multi-scale context aggregation by dilated convolutions. In International Conference on Learning Representations (ICLR) , 2016. -
  53. [65][65] F. Yu, V. Koltun, and T. Funkhouser. Dilated residual networks. In Computer Vision and Pattern Recognition (CVPR) , 2017. -
  54. [66][66] Q. Zhang and L. Zhang. Convolutional adaptive denoising autoencoders for hierarchical feature extraction. Frontiers of Computer Science , 12(6):1140-1148, 2018.

Cited by

Sorted by citations

Authors
Song, Y., & Ermon, S.
Affiliations
Stanford University (US)
Venue
arXiv
Publisher
arXiv
Published
2019
Volume
32
Pages
11895-11907
ISSN
2331-8422 (ISSN-L)
OpenAlex
W2959300817
Cited by
1,453
References
10
Citations by year
2026: 9 · 2025: 346 · 2024: 539 · 2023: 313 · 2022: 73 · 2021: 101 · 2020: 64 · 2019: 6 · 2018: 2
Type
posted content
Language
en
Open access
Locations
  • arXiv (Cornell University) (submittedVersion)
  • arXiv (Cornell University)
Funders
  • National Science Foundation (1651565, 1522054, 1733686)
  • Toyota Research Institute
  • Office of Naval Research (N00014-19, FA9550, N00014-19-1-2145, N00014)
  • Air Force Office of Scientific Research (FA9550-, FA9550-19-1-0024)
Topics
  • Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Generative Adversarial Networks and Image Synthesis
  • Physical Sciences › Computer Science › Artificial Intelligence › Adversarial Robustness in Machine Learning
  • Physical Sciences › Physics and Astronomy › Statistical and Nonlinear Physics › Model Reduction and Neural Networks
Keywords
generative models, score matching, Langevin dynamics, gradient estimation, data manifold, noise perturbation, sampling, image generation, image inpainting, model comparison

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review