Marginal Flow: a flexible and efficient framework for density estimation

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Negri, Marcello Massimo, Aellen, Jonathan, Jahn, Manuel, Khorashadizadeh, AmirEhsan, Roth, Volker
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914068126760960
author Negri, Marcello Massimo
Aellen, Jonathan
Jahn, Manuel
Khorashadizadeh, AmirEhsan
Roth, Volker
author_facet Negri, Marcello Massimo
Aellen, Jonathan
Jahn, Manuel
Khorashadizadeh, AmirEhsan
Roth, Volker
contents Current density modeling approaches suffer from at least one of the following shortcomings: expensive training, slow inference, approximate likelihood, mode collapse or architectural constraints like bijective mappings. We propose a simple yet powerful framework that overcomes these limitations altogether. We define our model $q_θ(x)$ through a parametric distribution $q(x|w)$ with latent parameters $w$. Instead of directly optimizing the latent variables $w$, our idea is to marginalize them out by sampling $w$ from a learnable distribution $q_θ(w)$, hence the name Marginal Flow. In order to evaluate the learned density $q_θ(x)$ or to sample from it, we only need to draw samples from $q_θ(w)$, which makes both operations efficient. The proposed model allows for exact density evaluation and is orders of magnitude faster than competing models both at training and inference. Furthermore, Marginal Flow is a flexible framework: it does not impose any restrictions on the neural network architecture, it enables learning distributions on lower-dimensional manifolds (either known or to be learned), it can be trained efficiently with any objective (e.g. forward and reverse KL divergence), and it easily handles multi-modal targets. We evaluate Marginal Flow extensively on various tasks including synthetic datasets, simulation-based inference, distributions on positive definite matrices and manifold learning in latent spaces of images.
format Preprint
id arxiv_https___arxiv_org_abs_2509_26221
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Marginal Flow: a flexible and efficient framework for density estimation
Negri, Marcello Massimo
Aellen, Jonathan
Jahn, Manuel
Khorashadizadeh, AmirEhsan
Roth, Volker
Machine Learning
Current density modeling approaches suffer from at least one of the following shortcomings: expensive training, slow inference, approximate likelihood, mode collapse or architectural constraints like bijective mappings. We propose a simple yet powerful framework that overcomes these limitations altogether. We define our model $q_θ(x)$ through a parametric distribution $q(x|w)$ with latent parameters $w$. Instead of directly optimizing the latent variables $w$, our idea is to marginalize them out by sampling $w$ from a learnable distribution $q_θ(w)$, hence the name Marginal Flow. In order to evaluate the learned density $q_θ(x)$ or to sample from it, we only need to draw samples from $q_θ(w)$, which makes both operations efficient. The proposed model allows for exact density evaluation and is orders of magnitude faster than competing models both at training and inference. Furthermore, Marginal Flow is a flexible framework: it does not impose any restrictions on the neural network architecture, it enables learning distributions on lower-dimensional manifolds (either known or to be learned), it can be trained efficiently with any objective (e.g. forward and reverse KL divergence), and it easily handles multi-modal targets. We evaluate Marginal Flow extensively on various tasks including synthetic datasets, simulation-based inference, distributions on positive definite matrices and manifold learning in latent spaces of images.
title Marginal Flow: a flexible and efficient framework for density estimation
topic Machine Learning
url https://arxiv.org/abs/2509.26221