English

GFlowNet-EM for learning compositional latent variable models

Machine Learning 2023-06-06 v2 Machine Learning

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.

Keywords

Cite

@article{arxiv.2302.06576,
  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},
  journal= {arXiv preprint arXiv:2302.06576},
  year   = {2023}
}

Comments

ICML 2023; code: https://github.com/GFNOrg/GFlowNet-EM

R2 v1 2026-06-28T08:39:05.430Z