Sparse Variational Inference: Bayesian Coresets from Scratch

Trevor Campbell, Boyan Beronov

This NeurIPS 2019 paper by Trevor Campbell and Boyan Beronov introduces a significant leap in Bayesian Coresets—a method for scaling Bayesian inference by replacing a massive dataset with a tiny, weighted subset. By reframing coreset construction as a sparse variational inference problem, the authors provide a fully automated algorithm that achieves state-of-the-art accuracy without the manual "expert tuning" required by previous methods.

TL;DR

The authors introduce Riemannian Coreset Construction, a method that builds a "summary" of a large dataset for fast Bayesian inference. By treating coreset selection as a greedy optimization problem on a statistical manifold, they eliminate the need for a pre-specified "guess" at the posterior and achieve orders-of-magnitude better accuracy than existing techniques.

What Problem Does This Paper Address?

Bayesian inference is powerful but computationally expensive. Standard tools like Markov chain Monte Carlo (MCMC) require scanning the entire dataset at every step, making them prohibitively slow for "Big Data."

Bayesian Coresets solve this by finding a small, weighted subset of the data (the "coreset") that produces a posterior distribution very close to the one generated by the full dataset. However, previous coreset methods had two major flaws:

  1. The "Cold Start" Problem: They required a "coarse" initial approximation of the posterior to function. If this initial guess was bad, the resulting coreset was also poor.
  2. The "Flatness" Problem: They operated in a fixed "tangent space" (a flat approximation of the curved space of probability distributions), which severely limited their accuracy as the coreset grew.

Methods

The authors propose Sparse Variational Inference (SparseVI). Their key innovation is viewing the coreset as a sparse natural parameter within an exponential family of distributions.

  • Greedy Selection: The algorithm builds the coreset one point at a time. It selects the next data point to add by looking for the one whose "direction" (gradient) is most correlated with the current error in the posterior approximation.
  • Weight Optimization: Once a point is added, the algorithm uses stochastic gradient descent (SGD) to optimize the weights of all points currently in the coreset.
  • Riemannian Perspective: Unlike previous methods that used a fixed reference point, SparseVI is "manifold-aware." As the coreset improves, the algorithm updates its internal model of the posterior, effectively moving along the Riemannian manifold toward the true target. This allows it to continually refine the approximation rather than hitting a performance ceiling.
Riemannian Coreset Construction

Datasets

The authors evaluated their method across several regimes to ensure robustness:

  • Synthetic Gaussian: A 200-dimensional problem used to test theoretical consistency.
  • UK Land Registry: A regression task involving 10,000 house sale records using radial basis functions (301 dimensions).
  • Logistic Regression Benchmarks: Synthetic data, Chemical Reactivities, and Phishing Websites.
  • Poisson Regression Benchmarks: Synthetic data, Bike Trips, and Airport Delays.

Key Insights and Ideas

  • Information Geometry is Key: The paper proves that previous state-of-the-art methods (like GIGA) are actually special cases of their framework that get "stuck" in a single tangent space. By allowing the tangent space to move with the current approximation, SparseVI stays "aligned" with the true posterior.
  • Sparsity as a Constraint: By formulating the problem as KL-divergence minimization subject to a sparsity constraint ($||w||_0 \leq M$), they turn a data-compression problem into a standard variational inference problem.
  • Automation: Because the algorithm uses its own current approximation to pick the next data point, it requires no problem-specific inputs other than the model and the data itself.

Key Results

  • Superior Accuracy: In the Gaussian and housing price experiments, SparseVI achieved orders-of-magnitude lower KL divergence to the true posterior compared to uniform sampling and the previous state-of-the-art (GIGA).
  • No Performance Ceiling: While GIGA's error often plateaus after a certain coreset size, SparseVI's error continues to drop as more points are added, demonstrating asymptotic consistency.
  • Robustness: Even when GIGA was given an "Optimal" (but practically impossible) starting approximation, SparseVI eventually outperformed it because of its ability to adapt its perspective during construction.
SparseVI Performance and Posterior Approximation

Limitations and Future Work

  • Computational Overhead: The authors acknowledge that SparseVI is significantly slower than simpler methods like GIGA. This is primarily due to the iterative SGD weight updates and the need to sample from the current coreset posterior at each step.
  • Optimization Complexity: While greedy selection works well, the authors suggest that more sophisticated optimization techniques could further improve the quality of the coresets.
  • Scaling the Gradient: Future work could focus on reducing the cost of the gradient descent step to make the algorithm more competitive for real-time applications.

Summary updated

BibTeX
@inproceedings{campbell2019sparse,
  author = {Trevor Campbell and Boyan Beronov},
  title = {{Sparse Variational Inference: Bayesian Coresets from Scratch}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure