GFlowNet-EM for learning compositional latent variable models

Edward J. Hu, Nikolay Malkin, Moksh Jain, Katie Everett, Alexandros Graikos +1 more
2/13/2023
cs.LGstat.ML

No official code found. Best implementation: GFNOrg/GFlowNet-EM (42 stars, MIT, last commit 2024-02-09).

Abstract

Latent variable models (LVMs) with discrete compositional latents are an important but challenging setting due to a combinatorially large number of possible configurations of the latents. A key tradeoff in modeling the posteriors over latents is between expressivity and tractable optimization. For algorithms based on expectation-maximization (EM), the E-step is often intractable without restrictive approximations to the posterior. We propose the use of GFlowNets, algorithms for sampling from an unnormalized density by learning a stochastic policy for sequential construction of samples, for this intractable E-step. By training GFlowNets to sample from the posterior over latents, we take advantage of their strengths as amortized variational inference algorithms for complex distributions over discrete structures. Our approach, GFlowNet-EM, enables the training of expressive LVMs with discrete compositional latents, as shown by experiments on non-context-free grammar induction and on images using discrete variational autoencoders (VAEs) without conditional independence enforced in the encoder.

View on arXivView PDF

Code Implementations(1)

GFNOrg/GFlowNet-EMCommunity100%
MIT

Code for GFlowNet-EM, a novel algorithm for fitting latent variable models with compositional latents and an intractable true posterior.

422Python, Jupyter NotebookJan 30, 20232 years agoMIT
expectation-maximizationgflownetgrammarlatent-variable-modelsvae

Similar Papers

Cite this paper

@article{hu2023gflownetem,
  title  = {GFlowNet-EM for learning compositional latent variable models},
  author = {Edward J. Hu and Nikolay Malkin and Moksh Jain and Katie Everett and Alexandros Graikos and Yoshua Bengio},
  year   = {2023},
  eprint = {2302.06576},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.06576v2},
  journal = {ICML 2023 2023}
}

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

Discussion