Abstract
Standard Bayesian inference algorithms are computationally expensive, making their direct application to large datasets difficult or infeasible. Recent work on scaling Bayesian inference has focused on modifying the underlying algorithms to use random data subsamples. We leverage the insight that data is often redundant to instead obtain a weighted subset of the data (a coreset) that is much smaller than the original dataset. We develop an efficient coreset construction algorithm for Bayesian logistic regression models with theoretical guarantees on size and approximation quality. Crucially, the proposed approach permits efficient construction in both streaming and parallel settings. We demonstrate that the size of the coreset is often independent of the original dataset size and that construction time is negligible compared to subsequent inference.
Introduction
As datasets grow to millions of observations, standard Bayesian methods like Markov Chain Monte Carlo (MCMC) or Variational Bayes become computationally prohibitive because they typically require multiple passes over the entire dataset. While previous scaling attempts have focused on algorithmic modifications—such as stochastic gradients—these can often miss rare but highly influential data points, leading to poor posterior approximations. This paper proposes a data-centric alternative: creating a small, representative "coreset" that preserves the statistical properties of the full set, allowing for the use of any off-the-shelf inference tool.
Methodology
The core of our approach is sensitivity sampling, a technique borrowed from computational geometry. The goal is to find a weighted subset $\tilde{\mathcal{D}}$ such that the log-likelihood of the coreset approximates the full log-likelihood within a multiplicative error $\epsilon$.
Sensitivity Sampling and Clustering
Calculating exact sensitivity—the measure of an individual point's influence on the total log-likelihood—is computationally intractable. To address this, we use $k$-clustering to compute tight upper bounds on sensitivity. Points that are far from cluster centers or belong to smaller clusters are assigned higher sensitivity, ensuring that "needles in the haystack" are preserved.
Theoretical Constraints
For logistic regression, we prove that a nontrivial coreset (one significantly smaller than the original dataset) is possible when the parameter space is bounded, typically within a Euclidean ball of radius $R$. Furthermore, the construction is designed to be "composable," supporting streaming and parallel processing via a merge-and-reduce binary tree structure.
Results and Discussion
We evaluated the method on synthetic datasets (Binary5, Binary10, Mixture) and real-world benchmarks (ChemReact, Webspam, CovType).
Efficiency and Scalability
As shown in Figure 1(A), the time spent clustering and sampling to build the coreset is a tiny fraction of the total computation time—often less than 1% for larger subset sizes. This confirms that the overhead of coreset construction is negligible compared to the time saved during MCMC runs.
Furthermore, empirical results in Figure 1(B) and 1(C) demonstrate that the mean sensitivity (which dictates the required coreset size) grows very slowly or remains flat as the total number of observations $N$ increases. This supports the theoretical finding that coreset size $M$ can be independent of the original dataset size $N$, allowing for massive data compression without loss of posterior accuracy.
Accuracy and Robustness
In terms of Maximum Mean Discrepancy (MMD), coreset-based posteriors were consistently 1 to 2 orders of magnitude more accurate than random subsampling. The method proved robust across various dimensions and data distributions, though performance on specific datasets like Webspam highlighted the inherent variance challenges in importance sampling for extremely small subsets.
Conclusion
By focusing on data redundancy rather than algorithm modification, coresets provide a powerful framework for scaling Bayesian logistic regression. The approach offers significant improvements in accuracy over uniform sampling while maintaining negligible computational overhead. Future work will focus on extending these sensitivity bounds to more complex models, such as deep neural networks and hierarchical structures.
Summary updated