[Paper Review] Firefly Monte Carlo: Exact MCMC with Subsets of Data
Firefly Monte Carlo (FlyMC) is an exact Markov chain Monte Carlo algorithm that enables efficient Bayesian inference on large datasets by using a subset of data at each iteration. It introduces binary auxiliary variables to probabilistically include or exclude data points based on a lower bound of the likelihood, ensuring the true posterior is preserved while achieving speedups of over 10x compared to standard MCMC.
Markov chain Monte Carlo (MCMC) is a popular and successful general-purpose tool for Bayesian inference. However, MCMC cannot be practically applied to large data sets because of the prohibitive cost of evaluating every likelihood term at every iteration. Here we present Firefly Monte Carlo (FlyMC) an auxiliary variable MCMC algorithm that only queries the likelihoods of a potentially small subset of the data at each iteration yet simulates from the exact posterior distribution, in contrast to recent proposals that are approximate even in the asymptotic limit. FlyMC is compatible with a wide variety of modern MCMC algorithms, and only requires a lower bound on the per-datum likelihood factors. In experiments, we find that FlyMC generates samples from the posterior more than an order of magnitude faster than regular MCMC, opening up MCMC methods to larger datasets than were previously considered feasible.
Motivation & Objective
- To address the computational bottleneck of standard MCMC on large datasets, where evaluating all likelihood terms at each iteration is prohibitively expensive.
- To develop an MCMC method that maintains exact posterior inference while using only a subset of data per iteration.
- To enable practical Bayesian inference on large-scale datasets by reducing per-iteration computational cost without introducing asymptotic bias.
- To provide a general framework compatible with various MCMC algorithms, requiring only a lower bound on per-data likelihood terms.
Proposed method
- Introduces binary auxiliary variables $ z_n \in \{0,1\} $ for each data point $ x_n $, where $ z_n = 1 $ indicates the data point is used in the posterior computation.
- Defines the conditional distribution of $ z_n $ as a Bernoulli distribution with success probability $ \frac{L_n(\theta) - B_n(\theta)}{L_n(\theta)} $, where $ B_n(\theta) $ is a strictly positive lower bound on the likelihood $ L_n(\theta) $.
- Constructs an augmented joint posterior $ p(\theta, \{z_n\} \mid \{x_n\}) $ that marginalizes to the true full-data posterior $ p(\theta \mid \{x_n\}) $.
- Uses Metropolis-Hastings or other MCMC samplers to update $ \theta $ and $ \{z_n\} $ jointly, with proposals that depend on the auxiliary variables.
- Employs a data-parallel strategy where only the likelihoods corresponding to $ z_n = 1 $ are evaluated at each iteration, drastically reducing computational cost.
- Leverages the fact that the marginal distribution over $ \theta $ remains exactly the full-data posterior, ensuring asymptotic correctness.
Experimental results
Research questions
- RQ1Can MCMC sampling be made exact while using only a subset of data per iteration?
- RQ2What conditions on the likelihood function allow for efficient subset-based MCMC without asymptotic bias?
- RQ3How can auxiliary variables be designed to preserve the true posterior while enabling data subsampling?
- RQ4Can the computational cost of MCMC be reduced by orders of magnitude without sacrificing posterior accuracy?
- RQ5How does the performance of FlyMC compare to standard MCMC in terms of wall-clock time and convergence speed?
Key findings
- FlyMC achieves posterior sampling more than an order of magnitude faster than standard MCMC on large datasets, with no asymptotic bias.
- The method maintains exact posterior inference by ensuring the marginal distribution over $ \theta $ remains the true full-data posterior.
- In experiments on MNIST, CIFAR-10, and organic photovoltaic data, FlyMC with MAP-tuned lower bounds outperformed regular MCMC in both speed and convergence.
- The use of lower bounds on likelihood terms allows the algorithm to skip evaluating many data points per iteration, reducing average likelihood evaluations per step.
- Tuned FlyMC (using MAP estimates to set bounds) significantly improved performance over untuned variants, demonstrating the importance of bound quality.
- Despite expanding the state space with $ N $ auxiliary variables, FlyMC maintains fast mixing due to the high efficiency of per-transition computation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.