Abstract
Importance sampling is a popular technique in Bayesian inference: by reweighting samples drawn from a proposal distribution we are able to obtain samples and moment estimates from a Bayesian posterior over latent variables. Recent work, however, indicates that importance sampling scales poorly --- in order to accurately approximate the true posterior, the required number of importance samples grows is exponential in the number of latent variables [Chatterjee and Diaconis, 2018]. Massively parallel importance sampling works around this issue by drawing K samples for each of the n latent variables and reasoning about all K^n combinations of latent samples. In principle, we can reason efficiently over K^n combinations of samples by exploiting conditional independencies in the generative model. Previous work only detailed how to compute an ELBO/marginal likelihood estimator by summing over all K^n combinations. However, that work did not give an approach for computing other quantities of interest, namely posterior expectations, marginals and samples, as computing these quantities is far more complex. Specifically, these computations involve iterating forward (following the generative process), then iterating backward through the generative model. These backward traversals can be very complex, and require different backward traversals for each operation of interest. Our contribution is to exploit the source term trick from physics to entirely avoid the need to hand-write backward traversals. Instead, we demonstrate how to simply and easily compute all the required quantities --- posterior expectations, marginals and samples --- by differentiating through a slightly modified marginal likelihood estimator.
Original language | English |
---|---|
Title of host publication | Proceedings of the Fortieth Conference on Uncertainty in Artificial Intelligence |
Publisher | Association for Uncertainty in Artificial Intelligence Press |
Pages | 394-417 |
Number of pages | 24 |
Volume | 244 |
Publication status | Published - 1 Nov 2024 |
Event | 40th Conference on Uncertainty in Artificial Intelligence - Barcelona School of Economics, Barcelona, Spain Duration: 15 Jul 2024 → 15 Jul 2024 https://www.auai.org/uai2024/ |
Publication series
Name | Proceedings of Machine Learning Research |
---|---|
ISSN (Electronic) | 2640-3498 |
Conference
Conference | 40th Conference on Uncertainty in Artificial Intelligence |
---|---|
Abbreviated title | UAI2024 |
Country/Territory | Spain |
City | Barcelona |
Period | 15/07/24 → 15/07/24 |
Internet address |
Fingerprint
Dive into the research topics of 'Using Autodiff to Estimate Posterior Moments, Marginals and Samples'. Together they form a unique fingerprint.Equipment
-
HPC (High Performance Computing) and HTC (High Throughput Computing) Facilities
Alam, S. R. (Manager), Williams, D. A. G. (Manager), Eccleston, P. E. (Manager) & Greene, D. (Manager)
Facility/equipment: Facility