BayesNDE: Bayesian Generative Modeling for Neural Density Estimation

Chenglin Li, Qiao Liu
9/30/2026
stat.MLcs.AIcs.LG
bayesian

Official code: liuq-lab/BayesNDE (6 stars, Python, MIT, last commit 2026-09-30).

Abstract

Density estimation is a fundamental problem in statistics and machine learning. In this work, we introduce BayesNDE, a neural density estimator based on Bayesian generative modeling.

Show full abstract

BayesNDE learns a Bayesian generative model and evaluates its density without requiring invertible networks or Jacobian-determinant computation. For each observation, it infers a sample-specific latent posterior to construct an adaptive proposal that focuses computation on regions contributing most to its density. Bridge sampling then combines samples from this proposal with separate posterior samples to estimate the density. Experiments on nonlinear and multimodal synthetic datasets show improved estimation of density values and better recovery of the density structure compared to the state-of-the-art neural density estimators. Applications to real-world datasets further demonstrate improved anomaly detection. Together, these results highlight BayesNDE as a flexible and effective neural density estimator, demonstrating how posterior inference can turn generative models into tools for density estimation. The code and tutorials are available at https://github.com/liuq-lab/BayesNDE.

View on arXivView PDF

Code Implementations(1)

liuq-lab/BayesNDEOfficial100%
MIT

BayesNDE introduces a Bayesian latent-variable framework with bridge sampling for neural density estimation.

60Python, Jupyter NotebookSep 26, 20262 months agoMIT

Similar Papers

Cite this paper

@article{li2026bayesnde,
  title  = {BayesNDE: Bayesian Generative Modeling for Neural Density Estimation},
  author = {Chenglin Li and Qiao Liu},
  year   = {2026},
  eprint = {2609.39843},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.39843v1}
}

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

Discussion