Turbo-GMM: FlashAttention-Inspired GPU-Accelerated Gaussian Mixture Model
Momin Abbas, Sadia Asif, Asad Ul Haq, Kaoutar El Maghraoui
Key points
From the paper's conclusion- We establish algebraic equivalence to standard EM in real arithmetic and evaluate sixteen configurations on an NVIDIA A100.
Abstract
Expectation-maximization (EM) for Gaussian mixture models (GMMs) requires scoring $N$ data points against $K$ mixture components. Prior fused GPU implementations, notably Flash-GMM, eliminate materialization of the $N \times K$ responsibility matrix but traverse the component dimension twice to compute normalization terms and accumulate sufficient statistics. We introduce Turbo-GMM, a single-sweep fused EM kernel that completes responsibility normalization and sufficient-statistic accumulation within one traversal of the component dimension. By retaining the complete component axis on chip, Turbo-GMM avoids the second score computation required by the released two-sweep Flash-GMM implementation. Its applicability is limited by register pressure, occupancy, and the component and feature dimensions, making it particularly suitable for large datasets with relatively small numbers of components. For larger configurations, Turbo-GMM employs a two-pass fallback following the established fused design. We establish algebraic equivalence to standard EM in real arithmetic and evaluate sixteen configurations on an NVIDIA A100. Under the reported benchmarking protocol, Turbo-GMM achieves a median $2.15\times$ speedup over the evaluated Flash-GMM implementation and up to $5.3\times$ and $9.9\times$ over PyTorch and \texttt{scikit-learn}, respectively. The results demonstrate the potential of single-sweep component traversal while identifying on-chip resource constraints as the principal limitation of this approach.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- dpGMM: A new R package for efficient and robust Gaussian mixture modeling of 1D and 2D dataJournal of Computational Science · 2026
- Robust Importance Sampling for Rare Events via Constrained Gaussian MixturesarXiv · 2026
- Is $\sqrt{d}$ Separation Necessary for Gradient EM to Learn Gaussian Mixtures in High Dimensions?arXiv · 2026
- GPUMAP: GPU-Accelerated Progressive Uniform Manifold Approximation and ProjectionarXiv · 2026
- OOM: Offload-Optimized Full-Parameter MoE Training via Memory-Execution Co-DesignarXiv · 2026
- gpuGEM: GPU-based linear optimisation of genome-scale metabolic modelsarXiv · 2026