GFlowNets and variational inference

Esmeralda S. Whitammer, Salem Lahlou, Tristan Deleu, Xu Ji, Edward Hu +3 more
10/2/2022
cs.LGstat.ML
bayesian

Official code: GFNOrg/GFN_vs_HVI (9 stars, Jupyter Notebook, last commit 2026-08-30).

Abstract

This paper builds bridges between two families of probabilistic algorithms: (hierarchical) variational inference (VI), which is typically used to model distributions over continuous spaces, and generative flow networks (GFlowNets), which have been used for distributions over discrete structures such as graphs. We demonstrate that, in certain cases, VI algorithms are equivalent to special cases of GFlowNets in the sense of equality of expected gradients of their learning objectives.

Show full abstract

We then point out the differences between the two families and show how these differences emerge experimentally. Notably, GFlowNets, which borrow ideas from reinforcement learning, are more amenable than VI to off-policy training without the cost of high gradient variance induced by importance sampling. We argue that this property of GFlowNets can provide advantages for capturing diversity in multimodal target distributions.

View on arXivView PDF

Code Implementations(1)

GFNOrg/GFN_vs_HVIOfficial100%
91Jupyter Notebook, PythonSep 19, 20223 months ago

Similar Papers

Cite this paper

@article{whitammer2022gflownets,
  title  = {GFlowNets and variational inference},
  author = {Esmeralda S. Whitammer and Salem Lahlou and Tristan Deleu and Xu Ji and Edward Hu and Katie Everett and Dinghuai Zhang and Yoshua Bengio},
  year   = {2022},
  eprint = {2210.00580},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.00580}
}

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

Discussion