A Bayesian Generative Modeling Approach for Arbitrary Conditional Inference
Qiao Liu, Wing Hung Wong
TL;DR
The paper tackles flexible conditional inference across arbitrary partitions of a high-dimensional vector $X$ by introducing Bayesian Generative Modeling (BGM), a latent-variable framework that learns a joint distribution $P_X(X)$ via a low-dimensional latent $Z$ and an iterative updating scheme. After training, BGM enables any conditional distribution $P(X_B|X_A)$ without retraining, by drawing $Z|X_A$ with HMC and sampling $X_B|Z,X_A$ from the closed-form Gaussian conditionals, yielding calibrated predictive intervals. The authors establish convergence of the stochastic updates, law-level consistency of the learned model, and conditional-risk bounds for arbitrary inference, and demonstrate superior point predictions and interval calibration against conformal baselines in simulations and MNIST imputation tasks. This train-once, infer-anywhere approach offers a scalable, uncertainty-aware engine for modern data analysis, with implications for missing data, multimodal prediction, and risk-sensitive decision making.
Abstract
Modern data analysis increasingly requires flexible conditional inference P(X_B | X_A) where (X_A, X_B) is an arbitrary partition of observed variable X. Existing conditional inference methods lack this flexibility as they are tied to a fixed conditioning structure and cannot perform new conditional inference once trained. To solve this, we propose a Bayesian generative modeling (BGM) approach for arbitrary conditional inference without retraining. BGM learns a generative model of X through an iterative Bayesian updating algorithm where model parameters and latent variables are updated until convergence. Once trained, any conditional distribution can be obtained without retraining. Empirically, BGM achieves superior prediction performance with well calibrated predictive intervals, demonstrating that a single learned model can serve as a universal engine for conditional prediction with uncertainty quantification. We provide theoretical guarantees for the convergence of the stochastic iterative algorithm, statistical consistency and conditional-risk bounds. The proposed BGM framework leverages the power of AI to capture complex relationships among variables while adhering to Bayesian principles, emerging as a promising framework for advancing various applications in modern data science. The code for BGM is freely available at https://github.com/liuq-lab/bayesgm.
