Abstract
Scaling mixture models in Black-Box Variational Inference (BBVI) has traditionally been constrained by a "scaling wall" characterized by linear parameter growth and quadratic computational complexity. We present MISVAE, a novel architecture that amortizes mixture parameters, alongside two new estimators—Some-to-All (S2A) and Some-to-Some (S2S)—that significantly reduce inference time. Our approach enables the use of hundreds of mixture components, achieving state-of-the-art performance on benchmarks like MNIST and complex phylogenetic tasks while maintaining computational efficiency.
1. Introduction
Variational Inference (VI) seeks to approximate complex, intractable posterior distributions with simpler, tractable ones. Mixture models are theoretically "universal approximators," making them highly desirable for capturing the multi-modal nature of complex posteriors. However, in the Black-Box Variational Inference (BBVI) framework, mixture models face two primary bottlenecks: parameter explosion and quadratic evaluation complexity. This paper introduces the Multiple Importance Sampling VAE (MISVAE) and efficient estimators to overcome these barriers, making massive mixture models practical for real-world applications.
2. The Bottlenecks of Mixture Models in BBVI
Standard implementations of mixture models in BBVI suffer from two major limitations:
- Parameter Explosion: Most implementations assign a separate encoder network to each mixture component. For $A$ components, the parameter count grows linearly, which quickly becomes memory-prohibitive as $A$ increases.
- Quadratic Complexity: Evaluating the standard objective function—the Multiple Importance Sampling Evidence Lower Bound (MISELBO)—requires comparing every sampled latent variable against every mixture component. This results in $O(A^2)$ complexity, making large-scale mixtures computationally expensive.
3. Methodology
3.1 MISVAE: Amortized Mixture Parameterization
To address parameter explosion, we propose MISVAE. Instead of separate encoders, MISVAE utilizes a shared architecture. A "Data-to-Hidden" (D2H) network extracts features, which are then passed to an "Amortized Mixture Parameterization" (AMP) network. Crucially, the AMP net takes a one-hot encoding of the component index as a bias signal. This allows the model to scale to hundreds of components with almost zero increase in network parameters, as the network learns a shared representation space while specializing for different modes.
3.2 Efficient Estimators: S2A and S2S
To mitigate the $O(A^2)$ complexity of the MISELBO, we introduce two estimators:
- Some-to-All (S2A): Latent variables are sampled from a small subset $S$ of components ($S < A$) but evaluated against the full mixture of $A$ components. We prove that S2A is an unbiased estimator of the MISELBO, reducing complexity to $O(S \times A)$.
- Some-to-Some (S2S): Latent variables are sampled from and evaluated against the same subset $S$. While biased (acting as a lower bound on the MISELBO), it reduces complexity to $O(S^2)$, functioning effectively as an ensemble of mixtures.
4. Experimental Evaluation
We evaluated MISVAE across diverse domains, including synthetic models, image benchmarks, and Bayesian phylogenetics.
4.1 Image Generation Performance
On the MNIST dataset, MISVAE with the S2A estimator ($A=800, S=1$) achieved a Negative Log-Likelihood (NLL) of 74.07. This result outperforms previous state-of-the-art mixture models and complex hierarchical VAEs. Furthermore, the S2A configuration was nearly twice as fast per epoch as standard approaches while utilizing significantly fewer parameters.
4.2 Bayesian Phylogenetics
In the domain of evolutionary tree inference (DS1-DS8), where likelihood evaluations are notoriously expensive, our estimators matched the accuracy of the previous state-of-the-art (VBPI) but with a fraction of the likelihood evaluations. This makes complex evolutionary inference significantly more accessible.
5. Discussion and Limitations
Our framework demonstrates that increasing the number of mixture components leads to monotonic improvements in NLL. However, several challenges remain:
- Uniform Weights: The current model assumes uniform weights for mixture components to avoid mode collapse. Learning optimal non-uniform weights in a scalable, gradient-based way remains an open challenge.
- Stochastic Entropy: Because mixture entropy cannot be computed in closed form, the authors rely on stochastic estimates. Future work is needed to fully justify convergence rates for these specific estimators when the variational family is not in the location-scale category.
6. Conclusion
MISVAE and the S2A/S2S estimators break the traditional trade-off between expressivity and scalability in mixture models. By amortizing parameters and subsampling components, we enable the practical application of massive mixture models to high-dimensional and computationally demanding tasks, showing that "massive" mixtures are not only theoretically superior but now practically viable.
Summary updated