Stochastic Sampling from Deterministic Flow Models
Saurabh Singh, Ian Fischer
TL;DR
The paper addresses the limitations of deterministic transport in Gaussian-flow-based methods by introducing a general theorem that turns an ODE into an infinite family of SDEs sharing the same marginals. This enables stochastic samplers that can be tuned at sampling time to trade determinism for diversity and robustness, without retraining the underlying model. The authors derive specific corollaries for Gaussian flows, provide a practical score-imputation approach, and demonstrate improved performance on toy Gaussian tasks and large-scale ImageNet generation, including better FID scores and increased generation diversity under classifier-free guidance. This framework offers a flexible, post-training mechanism to bolster deterministic transport methods with stochasticity, improving reliability under discretization and enabling conditional sampling from intermediate states.
Abstract
Deterministic flow models, such as rectified flows, offer a general framework for learning a deterministic transport map between two distributions, realized as the vector field for an ordinary differential equation (ODE). However, they are sensitive to model estimation and discretization errors and do not permit different samples conditioned on an intermediate state, limiting their application. We present a general method to turn the underlying ODE of such flow models into a family of stochastic differential equations (SDEs) that have the same marginal distributions. This method permits us to derive families of \emph{stochastic samplers}, for fixed (e.g., previously trained) \emph{deterministic} flow models, that continuously span the spectrum of deterministic and stochastic sampling, given access to the flow field and the score function. Our method provides additional degrees of freedom that help alleviate the issues with the deterministic samplers and empirically outperforms them. We empirically demonstrate advantages of our method on a toy Gaussian setup and on the large scale ImageNet generation task. Further, our family of stochastic samplers provide an additional knob for controlling the diversity of generation, which we qualitatively demonstrate in our experiments.
