The Effect of Stochasticity in Score-Based Diffusion Sampling: a KL Divergence Analysis

Bernardo P. Schaeffer, Ricardo M. S. Rosa, Glauco Valle
6/13/2025
cs.LG
diffusion-flow

No confident code implementation found for this paper.

Abstract

Sampling in score-based diffusion models can be performed by solving either a reverse-time stochastic differential equation (SDE) parameterized by an arbitrary stochasticity function or a probability flow ODE, corresponding to setting this stochasticity function to zero. In this work, we investigate the effect of this stochasticity on the generation process through the evolution of Kullback-Leibler (KL) divergences, obtaining general KL divergence bounds and a novel analysis of the impact of the time-profile of the score error on model performance.

Show full abstract

For exact score functions, stochasticity has a contractive effect, decreasing KL divergence along the sampling trajectory. For approximate scores, however, a trade-off arises between correcting accumulated errors and amplifying current score errors, meaning stochasticity can either improve or degrade generation performance. Theoretical considerations indicate that the gain from stochasticity depends on the time-localization of the trained model error. We test this in experiments on both toy and benchmark data sets, also comparing the KL divergence evolution with the obtained bounds. We also present a fully analytical example, where all the relevant quantities can be computed, and the optimal stochasticity function can be characterized via an optimal control analysis.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{schaeffer2025effect,
  title  = {The Effect of Stochasticity in Score-Based Diffusion Sampling: a KL Divergence Analysis},
  author = {Bernardo P. Schaeffer and Ricardo M. S. Rosa and Glauco Valle},
  year   = {2025},
  eprint = {2506.11378},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.11378v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.11378.svg)](https://codeofpaper.com/paper/2506.11378)

Discussion