Generative Marginalization Models

Sulin Liu, Peter J. Ramadge, R. P. Adams
2/12/2026

Official code: PrincetonLIPS/MaM (23 stars, last commit 2024-08-19).

Abstract

We introduce marginalization models (MAMs), a new family of generative models for high-dimensional discrete data. They offer scalable and flexible generative modeling by explicitly modeling all induced marginal distributions. Marginalization models enable fast approximation of arbitrary marginal probabilities with a single forward pass of the neural network, which overcomes a major limitation of arbitrary marginal inference models, such as any-order autoregressive models. MAMs also address the scalability bottleneck encountered in training any-order generative models for high-dimensional problems under the context of energy-based training, where the goal is to match the learned distribution to a given desired probability (specified by an unnormalized log-probability function such as energy or reward function). We propose scalable methods for learning the marginals, grounded in the concept of"marginalization self-consistency". We demonstrate the effectiveness of the proposed model on a variety of discrete data distributions, including images, text, physical systems, and molecules, for maximum likelihood and energy-based training settings. MAMs achieve orders of magnitude speedup in evaluating the marginal probabilities on both settings. For energy-based training tasks, MAMs enable any-order generative modeling of high-dimensional problems beyond the scale of previous methods. Code is available at https://github.com/PrincetonLIPS/MaM.

View on arXivView PDF

Code Implementations(1)

PrincetonLIPS/MaMOfficial100%

Official code for Generative Marginalization Models [ICML 2024] [SPGIM 2023 Workshop Oral]

230PythonOct 19, 20232 years ago
any-order-autoregressive-modelsgenerative-modelsmarginalization-models

Similar Papers

Cite this paper

@article{liu2026generative,
  title  = {Generative Marginalization Models},
  author = {Sulin Liu and Peter J. Ramadge and R. P. Adams},
  year   = {2026},
  eprint = {2310.12920},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.12920},
  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/2310.12920.svg)](https://codeofpaper.com/paper/2310.12920)

Discussion