Overview
PASS-GLM introduces a novel approach to performing Bayesian inference on massive datasets by approximating Generalized Linear Models (GLMs) with polynomials. This technique creates "approximate sufficient statistics" that allow for extremely fast, single-pass, and distributed computation while maintaining rigorous theoretical guarantees on accuracy.
The Challenge of Scaling Bayesian GLMs
Generalized Linear Models (GLMs)—such as logistic and Poisson regression—are foundational tools in data science. While frequentist versions of these models are relatively easy to scale, Bayesian GLMs are highly desirable because they provide coherent uncertainty estimates and allow for the integration of prior knowledge.
However, Bayesian inference is notoriously difficult to scale. Standard tools like Markov Chain Monte Carlo (MCMC) are often too slow for "big data" applications. Faster approximations, such as Variational Bayes (VB) or Expectation Propagation (EP), frequently lack strong theoretical guarantees. Furthermore, most existing methods struggle with streaming data (where data is observed once and discarded) or distributed architectures (where data is partitioned across different servers) without accumulating compounding errors.
The PASS-GLM Approach
The authors propose PASS-GLM (Polynomial Approximate Sufficient Statistics for GLMs). The core methodology relies on a clever mathematical transformation:
- The Exponential Family Trick: In simple models (like a Gaussian distribution), you do not need to store the entire dataset to perform Bayesian updates; you only need "sufficient statistics" (e.g., the sum and the sum of squares). Standard GLMs do not naturally possess these finite sufficient statistics.
- Polynomial Approximation: The authors approximate the GLM's log-likelihood function using Chebyshev polynomials.
- Creating Statistics: By utilizing a polynomial of degree $M$, they transform the GLM into a form that does have sufficient statistics. These statistics are simply sums of powers of the data ($y_n x_n^k$).
- Single Pass Computation: Because these statistics are strictly additive, the algorithm only needs to process each data point once. These sums can be computed in parallel across thousands of machines or in a continuous stream, and then combined at the end to form the approximate posterior.
Crucially, the authors provide mathematical proofs demonstrating that the error of this approximation decreases exponentially as the polynomial degree $M$ increases, and importantly, this error does not compound as more data is added.
Key Insights and Ideas
- Polynomials as a Bridge: The paper demonstrates that polynomials act as the "missing link" allowing non-exponential family models (like logistic regression) to behave computationally like exponential families.
- No Compounding Error: Unlike "coreset" methods, where errors can accumulate as data subsets are merged, PASS-GLM’s error is strictly bounded by the choice of the polynomial degree $M$.
- The "Quadratic is Enough" Surprise: For many real-world datasets, a simple second-order ($M=2$) approximation is remarkably accurate. This occurs because the "inner products" of the data and parameters often fall within a narrow range where the polynomial fit is nearly perfect.
- Trivial Parallelism: Because the method relies entirely on simple additive sums, it achieves near-linear speedups in distributed computing environments.
Empirical Results
The researchers evaluated PASS-GLM on several real-world benchmarks, ranging from small-to-medium datasets (CHEMREACT, WEBSPAM, COVTYPE, CODRNA) to massive-scale data (a subset of the CRITEO advertising dataset featuring 40 million data points and 20,000 covariates).
- Speed: PASS-LR2 (the $M=2$ version specifically for logistic regression) was one order of magnitude faster than Stochastic Gradient Descent (SGD) and 2–3 orders of magnitude faster than the Laplace approximation.
- Accuracy: On the massive 40-million-point CRITEO dataset, PASS-GLM outperformed SGD in terms of negative test log-likelihood (0.045 vs 0.07). Crucially, it also provided a full covariance matrix for uncertainty estimation—a feature SGD cannot offer.
- Scalability: The method demonstrated near-optimal speedup when distributed across multiple cores (e.g., achieving a speedup of $K/2$ for $K$ cores).
Limitations and Future Directions
While powerful, PASS-GLM has notable limitations:
- The Curse of Dimensionality: The number of required sufficient statistics grows as $O(d^M)$, where $d$ is the number of features. If a high-degree polynomial ($M$) is needed for a dataset with many features ($d$), the memory requirements can quickly become unwieldy.
- Range Sensitivity: The polynomial approximation is defined over a specific interval $[-R, R]$. If the data "escapes" this range (i.e., the inner products become very large), the approximation quality can degrade, a phenomenon observed in the CODRNA dataset results.
For future work, the authors suggest exploring randomization techniques (such as random projections) to handle even higher-dimensional problems, and investigating other GLMs where simple quadratic approximations might not suffice.
Summary updated