BayesNDE: Bayesian Generative Modeling for Neural Density Estimation
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. 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.
Create a lesson
Related papers
Hellinger Decision Trees for Density Ratio Estimation: Finite-Sample Guarantees
Shared title terminology · Ren-Rui Liu, Zheng-Chu Guo
Differentially Private Score Estimation with Applications to Score-Based Generative Models
Shared title terminology · Mengxiao Gao, Elly K. H. Hung, Yuchen Wu et al.
Compressed Simulation-Based Inference: Neural Posterior Estimation for Massive Data via Low-Dimensional Sketches
Shared title terminology · Michael Wieck-Sosa, Cosma Rohilla Shalizi
Broadly Applicable Approximate MCMC for Switching Stochastic Differential Equations Using Uniformization and Time-Conditioned Factorized Neural Likelihood Estimation
Shared title terminology · Shion Hosoda, Michiaki Hamada
The Impact of Likelihood Tempering on the Limiting Predictive Moments of Variational Bayesian Linear Neural Networks
Shared title terminology · Ian Zhang, Thibault Randrianarisoa
HyperNSDE: Personalized Neural SDEs for Joint Static-Longitudinal Clinical Data Generation
Shared title terminology · Perrine Chassat, Agathe Guilloux