Flash-GMM: A Memory-Efficient Kernel for Scalable Soft Clustering

Gal Bloch, Ariel Gera, Matan Orbach, Ohad Eytan, Assaf Toledo
6/9/2026
cs.LGcs.DBcs.IR

No official code found. Best implementation: IBM/Flash-GMM (25 stars, Apache-2.0, last commit 2026-06-09).

Abstract

We present \textbf{Flash-GMM}, a fused Triton kernel for efficient computation of Gaussian Mixture Models (GMMs) over large-scale data in a single GPU pass. By eliminating the need to materialize the full responsibility matrix in GPU memory, Flash-GMM achieves a \textbf{20$\times$} speedup over existing implementations and enables training on datasets more than \textbf{100$\times$} larger than previously feasible on one device. To demonstrate its impact, we integrate Flash-GMM into the IVF coarse quantizer for approximate nearest-neighbor (ANN) search. We show that soft GMM clustering is now a viable drop-in replacement for $k$-means, and that GMM responsibilities can be leveraged to assign border vectors to multiple clusters. Our approach reaches fixed recall targets with up to $1.7\times$ fewer distance computations, or equivalently, yields $+2$--$12$ recall@10 at matched computational cost. We release the kernel as an open-source project.

View on arXivView PDF

Code Implementations(1)

IBM/Flash-GMMCommunity71%
Apache-2.0

Flash-GMM, a memory-efficient GPU kernel that unlocks GMM soft clustering at billion-scale

251Jun 9, 20264 months agoApache-2.0

Similar Papers

Cite this paper

@article{bloch2026flashgmm,
  title  = {Flash-GMM: A Memory-Efficient Kernel for Scalable Soft Clustering},
  author = {Gal Bloch and Ariel Gera and Matan Orbach and Ohad Eytan and Assaf Toledo},
  year   = {2026},
  eprint = {2606.10896},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.10896v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.10896.svg)](https://codeofpaper.com/paper/2606.10896)

Discussion