Unifying Bayesian Flow Networks and Diffusion Models through Stochastic Differential Equations

Kaiwen Xue, Yuhao Zhou, Shen Nie, Xu Min, Xiaolu Zhang +2 more
4/24/2024
34 citations
cs.LGcs.AI
diffusion-flowbayesian

Official code: ML-GSAI/BFN-Solver (41 stars, Python, last commit 2024-04-23).

Abstract

Bayesian flow networks (BFNs) iteratively refine the parameters, instead of the samples in diffusion models (DMs), of distributions at various noise levels through Bayesian inference. Owing to its differentiable nature, BFNs are promising in modeling both continuous and discrete data, while simultaneously maintaining fast sampling capabilities.

Show full abstract

This paper aims to understand and enhance BFNs by connecting them with DMs through stochastic differential equations (SDEs). We identify the linear SDEs corresponding to the noise-addition processes in BFNs, demonstrate that BFN's regression losses are aligned with denoise score matching, and validate the sampler in BFN as a first-order solver for the respective reverse-time SDE. Based on these findings and existing recipes of fast sampling in DMs, we propose specialized solvers for BFNs that markedly surpass the original BFN sampler in terms of sample quality with a limited number of function evaluations (e.g., 10) on both image and text datasets. Notably, our best sampler achieves an increase in speed of 5~20 times for free. Our code is available at https://github.com/ML-GSAI/BFN-Solver.

View on arXivView PDF

Code Implementations(1)

ML-GSAI/BFN-SolverOfficial100%

Official PyTorch implementation for "Unifying Bayesian Flow Networks and Diffusion Models through Stochastic Differential Equations"

413PythonApr 23, 20242 years ago

Similar Papers

Cite this paper

@article{xue2024unifying,
  title  = {Unifying Bayesian Flow Networks and Diffusion Models through Stochastic Differential Equations},
  author = {Kaiwen Xue and Yuhao Zhou and Shen Nie and Xu Min and Xiaolu Zhang and Jun Zhou and Chongxuan Li},
  year   = {2024},
  eprint = {2404.15766},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.15766v2},
  journal = {ICML 2024 2024}
}

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/2404.15766.svg)](https://codeofpaper.com/paper/2404.15766)

Discussion