WASP: Scalable Bayes via barycenters of subset posteriors

Sanvesh Srivastava, Volkan Cevher, Quoc Tran-Dinh, David B. DunsonAISTATS 2015

Abstract

Scaling Bayesian inference to massive datasets remains a significant challenge due to the computational demands of Markov Chain Monte Carlo (MCMC) methods. We present WASP (Wasserstein Posterior), a "divide-and-conquer" framework that enables scalable Bayes by partitioning data into subsets, performing parallel inference, and merging the resulting subset posteriors using Wasserstein barycenters. By reformulating the barycenter problem as a sparse linear program, WASP achieves significant speedups over traditional methods while maintaining theoretical consistency and avoiding the pitfalls of parametric or kernel-based approximations.

1. Introduction

Bayesian methods provide a robust framework for uncertainty quantification, yet their application to "big data" is often limited by the $O(n)$ complexity of standard MCMC algorithms. When datasets exceed the memory capacity of a single machine, traditional sampling becomes computationally prohibitive. Standard MCMC typically requires a full pass over the entire dataset at every iteration, creating a massive bottleneck.

Existing "divide-and-conquer" approaches attempt to mitigate this by splitting data into $K$ subsets, running parallel samplers, and combining the results. However, these methods often rely on restrictive assumptions. Parametric approaches assume a specific posterior shape (e.g., Gaussian), which fails for multimodal or complex distributions. Kernel-based methods, such as the M-Posterior, require sensitive hyperparameter tuning (e.g., bandwidth selection) that can lead to unreliable results if poorly calibrated. Furthermore, many distributed methods suffer from high communication overhead between machines.

2. The WASP Framework

The Wasserstein Posterior (WASP) framework provides a non-parametric, tuning-free alternative for combining subset posteriors. The approach consists of four primary stages:

  1. Data Partitioning: The full dataset of size $N$ is divided into $K$ disjoint subsets, each of size $n = N/K$.
  2. Parallel Sampling: A standard posterior sampler (such as MCMC or Sequential Monte Carlo) is run on each subset independently. To ensure the combined posterior reflects the full dataset's information density, each subset likelihood is raised to the power of $K$. This "Stochastic Approximation" prevents the subset posteriors from over-estimating uncertainty.
  3. Wasserstein Barycenter Calculation: Instead of a simple arithmetic mean of samples, WASP computes the geometric mean of the subset distributions in the space of probability measures. This is achieved by minimizing the sum of squared Wasserstein distances—a metric from Optimal Transport—between the barycenter and the subset posteriors.
  4. Optimization via Sparse Linear Programming: The core technical contribution is the demonstration that for empirical measures (sets of MCMC samples), the barycenter problem can be framed as a sparse Linear Program (LP). This formulation allows the use of efficient, off-the-shelf solvers like Gurobi to handle problems with millions of variables by exploiting the inherent sparsity of the constraints.

3. Key Advantages

WASP offers several distinct advantages over previous state-of-the-art methods:

  • Geometric Integrity: By operating in the Wasserstein space, WASP preserves the underlying geometry and structural features of the posterior distribution more effectively than Euclidean averaging.
  • Algorithm Agnosticism: The framework is "plug-and-play," meaning it can be used with any existing sampler; WASP only dictates how the final results are merged.
  • Parameter-Free: Unlike kernel-based methods, WASP does not require the selection of kernels or bandwidths, making it more robust for automated pipelines and practitioners.
  • Theoretical Consistency: The authors provide proofs for strong consistency, ensuring that the WASP estimate converges to the true posterior as the total sample size $N$ grows.

4. Experimental Evaluation

The framework was evaluated on both synthetic and real-world datasets to demonstrate its scalability and accuracy.

4.1 Gaussian Process Regression

In Gaussian Process (GP) regression, exact inference requires $O(N^3)$ matrix inversions. For $N=10,000$, this is incredibly slow. WASP was compared against the exact GP (GPML toolbox). Results showed that WASP matched the accuracy of the exact GP while being substantially faster, as it only required inversions of much smaller $n \times n$ subset matrices.

4.2 General Social Survey (GSS)

The authors applied WASP to the 2008–2010 General Social Survey data ($N \approx 4,100$) using a complex probabilistic parafac model to analyze multivariate dependencies in social attitudes (e.g., views on capital punishment vs. marijuana legalization). WASP produced marginal distributions nearly identical to the M-Posterior but without the need for the heuristic hard-thresholding of weights required by the latter.

5. Limitations and Future Directions

While WASP excels in scaling the number of observations, it faces the "curse of dimensionality." As the number of parameters (the dimension of the space) increases, solving the LP becomes computationally intensive. Future work may involve developing specialized primal-dual optimization methods to handle higher-dimensional parameter spaces or extending the framework to non-Euclidean manifolds and shape spaces.

6. Conclusion

WASP represents a significant step forward in scalable Bayesian inference. By leveraging the geometry of Optimal Transport and the efficiency of sparse linear programming, it provides a robust, non-parametric method for combining parallel MCMC chains, offering a practical solution for Bayesian analysis in the era of massive datasets.

Summary updated

BibTeX
@inproceedings{srivastava2015wasp,
  author = {Sanvesh Srivastava and Volkan Cevher and Quoc Tran-Dinh and David B. Dunson},
  title = {{WASP: Scalable Bayes via barycenters of subset posteriors}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2015},
}
Figure