Abstract
Scaling Bayesian inference via Markov Chain Monte Carlo (MCMC) to massive datasets remains a significant challenge due to the computational and communication bottlenecks of traditional parallelization techniques. We present Non-volume-preserving Aggregation Product (NAP), a novel framework for embarrassingly parallel MCMC. By employing deep invertible transformations—specifically Real Non-Volume Preserving (Real NVP) flows—to approximate local subposteriors, NAP enables high-accuracy global posterior estimation. Unlike sample-based methods, NAP communicates only the weights of the neural density estimators, resulting in constant communication costs relative to the number of local samples. Experimental results on complex, multi-modal, and high-dimensional distributions demonstrate that NAP significantly outperforms existing parametric and non-parametric aggregation methods.
Introduction
Markov Chain Monte Carlo (MCMC) is a cornerstone of Bayesian inference, providing a robust way to sample from complex posterior distributions. However, its sequential nature makes it difficult to scale to "big data" settings. A common workaround is "embarrassingly parallel" MCMC: partitioning the dataset into $K$ shards, running independent MCMC chains on each shard to obtain "subposteriors," and then aggregating these subposteriors to approximate the global posterior.
The aggregation step is the primary bottleneck. Existing approaches typically fall into two categories: simple parametric models (e.g., Gaussian approximations), which are efficient but fail on non-linear or multi-modal distributions; and non-parametric methods (e.g., kernel density estimation), which suffer from high communication overhead and poor scaling in high dimensions.
The NAP Framework
The proposed Non-volume-preserving Aggregation Product (NAP) addresses these limitations by leveraging the flexibility of normalizing flows.
Local Estimation with Real NVP
Each worker node performs MCMC on its assigned data shard. Instead of transmitting the resulting samples, the worker trains a Real Non-Volume Preserving (Real NVP) network to learn the subposterior's density. Real NVPs are a class of invertible neural networks that transform a simple base distribution (like a Gaussian) into a complex target distribution through a series of bijective mappings.
Efficient Communication and Aggregation
The communication cost of NAP is restricted to the weights of the trained neural networks, which is independent of the number of MCMC samples drawn locally. This $O(KD)$ scaling (where $K$ is the number of shards and $D$ is the dimensionality) is a major advantage over sample-based methods that scale as $O(SKD)$ for $S$ samples.
The central server aggregates these subposteriors by treating the global posterior as the product of the neural density estimators. Because Real NVPs allow for both exact density evaluation and efficient sampling, the global posterior can be sampled using an importance sampling scheme. The authors provide a theoretical proof that this scheme remains stable with finite variance under mild assumptions, even in high-dimensional spaces.
Experimental Evaluation
The authors evaluated NAP against several baselines, including parametric, semi-parametric, non-parametric, Consensus MCMC, and PART.
Handling Non-Linear Correlations
On the "Warped Gaussian" task—a distribution with a distinct banana shape—NAP demonstrated superior performance. While traditional parametric and consensus methods collapsed to the center of the distribution, NAP's neural representation faithfully captured the non-linear correlation.
High-Dimensional Scaling and Heterogeneity
In Bayesian Logistic Regression experiments with up to 100 dimensions, NAP outperformed competitors by orders of magnitude in terms of KL divergence and Root Mean Squared Error (RMSE). Furthermore, in scenarios with heterogeneous data shards (e.g., rare categorical events), NAP proved more robust than PART and other state-of-the-art methods, maintaining low error rates where others failed to reconcile "disagreeing" subposteriors.
Conclusion
NAP represents a significant step forward for parallel Bayesian inference. By treating neural networks as compressed, functional representations of probability distributions, it bypasses the traditional trade-offs between accuracy and communication cost. While the training of local networks introduces some computational overhead, the gains in scalability and precision make it a powerful tool for modern large-scale Bayesian analysis. Future work may explore even more expressive invertible architectures like Glow or FFJORD to further enhance performance on high-dimensional manifolds.
Summary updated