Flexible mean field variational inference using mixtures of non-overlapping exponential families

Jeffrey P. SpenceNeurIPS 2020

Introduction

Standard mean field variational inference (MFVI) often fails to capture sparsity because its independence assumptions break the coupling between "is this variable zero?" and "what is its value?". This paper introduces a "non-overlapping mixtures trick," proving that mixtures of exponential families with disjoint supports (like a point mass at zero and a Gaussian) are themselves exponential families. This allows for fast, analytic, and highly accurate Bayesian inference in sparse models, matching Markov Chain Monte Carlo (MCMC) performance at a fraction of the computational cost.

The Problem with Standard MFVI

In Bayesian modeling, we often want sparse models (like the "spike-and-slab" prior) where most parameters are exactly zero. These models are great for interpretability and regularization, but calculating the exact posterior distribution is usually mathematically intractable.

Practitioners typically turn to MFVI because it is much faster than sampling methods like MCMC. However, MFVI has a major flaw when it comes to sparsity: it assumes all variables are independent. To make the math work, people usually introduce an "auxiliary" indicator variable to choose between the spike (zero) and the slab (the continuous distribution). Because MFVI forces these to be independent, the model cannot represent the logical constraint that "if the indicator says 'spike,' the value must be zero." This leads to pathological behavior where the model either fails to find sparsity or provides poor estimates.

Methods: The Non-Overlapping Trick

The author proposes a theoretical fix that expands the utility of MFVI without needing complex "black box" gradient estimators.

  1. Theorem 1 (The Non-Overlapping Trick): The author proves that while general mixtures are not exponential families, a mixture of distributions with non-overlapping supports is an exponential family. For example, a mixture of a point mass at exactly $\{0\}$ and a Gaussian restricted to $(-\infty, 0) \cup (0, \infty)$ forms a valid exponential family.
  2. Theorem 2 (Maintaining Conjugacy): If the individual components of the mixture are conjugate to a likelihood, the entire mixture remains conjugate.
  3. The Algorithm: By treating the spike-and-slab as a single member of this new exponential family (rather than two independent variables), the author derives closed-form coordinate ascent updates. This maintains the analytic simplicity of traditional MFVI while correctly coupling the probability of being zero with the estimated value.

Experimental Setup

The paper evaluates the method on two primary synthetic setups designed to mimic high-stakes real-world problems:

  • Polygenic Scores (PGS): Simulated genetic data with 1,000 dimensions and extreme sparsity ($p_0 = 0.99$, meaning only ~10 sites have non-zero effects). This mimics Genome-Wide Association Studies (GWAS).
  • Sparse Probabilistic PCA: Simulated high-dimensional data (10,000 dimensions, 500 samples) with four underlying clusters.

Key Insights and Results

  • Disjoint Support is the Key: The mathematical headache of mixture models in VI disappears if the components don't touch. This allows the natural parameters and sufficient statistics to be neatly partitioned.
  • Fixing "Zero-Avoidance": Standard VI tends to be "zero-avoiding" (it hates putting mass where the true posterior is zero). By using the non-overlapping mixture, the optimizer can "jump" into the spike much more effectively.

Accuracy vs. MCMC

In the Polygenic Score experiments, the new VI scheme performed indistinguishably from MCMC (the gold standard for accuracy) in terms of correlation and Mean Squared Error (MSE). While MCMC took approximately 12 hours per run, the new VI scheme finished in less than five seconds. Naive MFVI (using auxiliary variables) failed to find the true signal in high-noise regimes, whereas the new trick remained robust.

Correlation and MSE comparison across methods

Clustering and Sparse PCA

In Sparse PCA, the new method successfully clustered data and identified sparse "loadings" (important features), whereas classical PCA and naive VI produced "dense" results that were harder to interpret.

Sparse PCA clustering and cumulative proportion of loadings

Limitations and Future Work

  • A Priori Domains: The trick requires the supports of the mixture components to be fixed beforehand (e.g., you must decide where the "spike" is). The author suggests these could potentially be treated as hyperparameters to be optimized.
  • Likelihood Constraints: The method isn't a silver bullet. It fails for models like Latent Dirichlet Allocation (LDA) because the sparsity in the prior can lead to variables having zero likelihood, which causes the VI objective to break down.
  • Neural Networks: A promising future direction is applying this to Bayesian Neural Networks with spike-and-slab weights, potentially using the ReLU activation function (which is itself a mixture of a point mass and a continuous distribution) as a starting point.

Summary updated

BibTeX
@inproceedings{spence2020flexible,
  author = {Jeffrey P. Spence},
  title = {{Flexible mean field variational inference using mixtures of non-overlapping exponential families}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
}
Figure