LR-GLM: High-Dimensional Bayesian Inference Using Low-Rank Data Approximations

Brian L. Trippe, Jonathan H. Huggins, Raj Agrawal, Tamara Broderick

Overview

LR-GLM is a novel framework designed to accelerate Bayesian inference for high-dimensional Generalized Linear Models (GLMs). By leveraging a low-rank approximation of the underlying data, the method drastically reduces computational time and memory costs. Crucially, it provides a "conservative" posterior—meaning it is mathematically guaranteed never to underestimate uncertainty. This avoids a common and dangerous failure point of other fast approximation methods, which often yield overconfident predictions.

The Challenge of High-Dimensional Inference

In modern data science, practitioners frequently encounter "high-dimensional" problems where the number of features ($D$) is massive, sometimes even exceeding the number of observations ($N$). For scientists using these models—such as biologists studying genetic variations—point predictions are insufficient. They need to understand the relationships between variables and, importantly, the certainty of those relationships.

Bayesian inference is the gold standard for quantifying this uncertainty, but it is computationally brutal. Standard exact methods for GLMs scale cubically with dimension ($O(D^3)$). Even "fast" approximations like the Laplace method or Markov Chain Monte Carlo (MCMC) become prohibitively slow when $D$ reaches the tens of thousands.

To cope, researchers often turn to shortcuts like Mean Field Variational Bayes (VB) or diagonal Laplace approximations. While fast, these methods are notoriously overconfident. They frequently report artificially tiny uncertainties that do not reflect reality, leading to false discoveries.

The LR-GLM Framework

The authors introduce LR-GLM (Low-Rank Generalized Linear Model) to bridge the gap between computational feasibility and reliable uncertainty estimation. The core idea is to perform a Singular Value Decomposition (SVD) on the data matrix $X$ as a pre-processing step.

  1. Low-Rank Approximation: The full data matrix is replaced with a rank-$M$ approximation ($M \ll D$), focusing exclusively on the directions in the feature space that contain the most variance.
  2. LR-Laplace: The standard Laplace approximation (which fits a Gaussian to the posterior) is adapted to work with this low-rank structure. By performing the computationally heavy matrix inversions in the $M$-dimensional subspace, the cost of inverting the Hessian matrix drops from $O(D^3)$ to $O(NDM)$.
  3. LR-MCMC: This same low-rank likelihood can be used to speed up MCMC samplers (like NUTS), making each iteration significantly faster.

A key mathematical innovation of LR-GLM is that while the heavy computation happens in a lower-dimensional space, the resulting inference is still projected back and performed in the original parameter space, yielding a full $D$-dimensional posterior.

Comparison of posterior approximations. LR-Laplace closely matches the Full Laplace posterior, while Diagonal Laplace yields overly confident, spherical estimates.

Key Insights and Theoretical Guarantees

  • The "Conservativeness" Property: This is the paper's most significant theoretical contribution. The authors prove that LR-GLM will never report less uncertainty than the exact posterior. If the low-rank approximation loses information, the model simply reverts toward the prior distribution rather than becoming overconfident. This makes it substantially safer for scientific use than Variational Bayes.
  • Tunability: The rank $M$ acts as a computational "knob." Users can increase $M$ to get closer to the exact Bayesian posterior or decrease it to save time, allowing for a transparent computational-statistical trade-off.
  • SVD over Random Projections: While random projections are a popular dimensionality reduction technique, the authors demonstrate that SVD-based projections are far more effective at capturing the directions that actually inform the posterior, leading to significantly lower error.
  • Rigorous Soundness: The authors provide strict error bounds (using the Wasserstein metric) that mathematically relate the quality of the data approximation to the quality of the resulting posterior.

Results and Performance

The authors evaluated LR-GLM on synthetic data (to compare against "ground truth" MCMC results) and large-scale real-world datasets, including UCI Farm-Ads ($D=54,877$) and Reuters RCV1 ($D=47,236$).

  • Massive Speedups: LR-GLM achieved a speedup factor of roughly $N/M$ or $D/M$ compared to naive implementations. On the large text datasets, it completed inference in minutes—tasks where full Laplace methods would have taken hours or failed entirely due to memory constraints.
  • Superior Calibration: In experiments, LR-GLM's credible intervals were extremely well-calibrated. In stark contrast, Diagonal Laplace and ADVI (a popular VB method) were wildly overconfident, often missing the true parameter values entirely.
  • Out-of-Sample Robustness: When tested on out-of-sample data, LR-GLM's conservative uncertainty estimates led to much better predictive log-likelihoods than competing fast methods.

Limitations and Future Work

While powerful, the framework has a few limitations. First, the posterior mean is not strictly consistent if the data is not truly low-rank; it will be biased toward the prior in the "truncated" directions. Second, while LR-MCMC makes each step faster, it does not necessarily solve the "mixing" problem (how long it takes the sampler to explore the space) in extremely high dimensions with complex priors. Finally, the choice of rank $M$ is currently left to the user, suggesting future work could involve automated methods to select $M$ based on the singular value decay of the data.

Summary updated

BibTeX
@inproceedings{trippe2019lr,
  author = {Brian L. Trippe and Jonathan H. Huggins and Raj Agrawal and Tamara Broderick},
  title = {{LR-GLM: High-Dimensional Bayesian Inference Using Low-Rank Data Approximations}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=BybtHjbuWr},
}
Figure