[Paper Review] Stochastic gradient variational Bayes for gamma approximating distributions
This paper introduces stochastic gradient variational Bayes (SGVB) for gamma-distributed latent variables using reparameterization gradients, enabling efficient, scalable Bayesian inference in models with sparsity and non-negativity constraints. It demonstrates superior performance over Gaussian approximations and sampling methods on gamma process models and sparse factor analysis, particularly in low-sample regimes.
While stochastic variational inference is relatively well known for scaling inference in Bayesian probabilistic models, related methods also offer ways to circumnavigate the approximation of analytically intractable expectations. The key challenge in either setting is controlling the variance of gradient estimates: recent work has shown that for continuous latent variables, particularly multivariate Gaussians, this can be achieved by using the gradient of the log posterior. In this paper we apply the same idea to gamma distributed latent variables given gamma variational distributions, enabling straightforward "black box" variational inference in models where sparsity and non-negativity are appropriate. We demonstrate the method on a recently proposed gamma process model for network data, as well as a novel sparse factor analysis. We outperform generic sampling algorithms and the approach of using Gaussian variational distributions on transformed variables.
Motivation & Objective
- To extend stochastic gradient variational Bayes (SGVB) beyond Gaussian latent variables to gamma-distributed ones, enabling efficient inference in models requiring sparsity and non-negativity.
- To address the challenge of high-variance gradient estimates in Monte Carlo variational inference for non-Gaussian continuous latent variables.
- To demonstrate the effectiveness of gamma variational approximations in models where conjugate exponential family priors and likelihoods are used.
- To show that explicitly modeling gamma posteriors improves inference performance compared to transforming variables to Gaussian space.
- To enable scalable, black-box inference in complex models such as gamma process factor analysis and network models using only gradient of the log joint.
Proposed method
- Adapts the SGVB framework to gamma-distributed latent variables by deriving a reparameterization trick using the location-scale family property of the gamma distribution.
- Uses the gradient of the log joint posterior as the key estimator, enabling low-variance stochastic gradient updates via Monte Carlo sampling.
- Employs a recognition model that maps observed data to parameters of the gamma variational posterior, enabling end-to-end training.
- Derives the ELBO and its gradient using the reparameterization trick, allowing backpropagation through stochastic nodes.
- Applies the method to two models: an infinite edge partition model for network data and a novel gamma process factor analysis (GPFA) model.
- Uses adaptive optimization (Adadelta) and efficient vectorized operations to scale to large datasets, with runtime independent of sample size N in GPFA.
Experimental results
Research questions
- RQ1Can the SGVB framework be successfully extended to gamma-distributed latent variables, given their non-conjugate and non-Gaussian nature?
- RQ2Does using a gamma variational posterior outperform Gaussian approximations on transformed variables in terms of inference accuracy and scalability?
- RQ3Can the method handle models with non-conjugate likelihoods and still achieve effective posterior approximation?
- RQ4How does the performance of the gamma SGVB method compare to MCMC sampling and other variational methods in low-data regimes?
- RQ5Can the method be applied effectively to real-world high-dimensional data with sparsity and non-negativity constraints, such as CyTOF data?
Key findings
- GPFA outperforms SPCA and NSFA in reconstructing factor loadings, with significantly lower Amari error on synthetic data, demonstrating the advantage of explicit gamma modeling.
- On CyTOF data with N = 5.3×10⁵ cells and D = 40 proteins, GPFA achieved a perplexity of 12.8 on test data, outperforming empirical covariance and Ledoit-Wolfe shrinkage for N < 2000.
- For small N, GPFA achieves better likelihood estimates than the empirical covariance, which had a perplexity of -10¹² (indicating numerical instability), showing robustness in low-data regimes.
- Runtime for GPFA was ~10 seconds on a standard laptop, with no dependence on N, while SPCA’s runtime scaled linearly with N, making GPFA more efficient at scale.
- The estimated covariance matrix under GPFA effectively regularized off-diagonal components and captured biological structure, with interpretable non-negative factor loadings.
- The method enables black-box, scalable inference without model-specific derivations beyond the log joint gradient, making it applicable to a wide range of gamma-based models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.