GEM-KMeans: Memory-Efficient and Accurate Clustering on Massive Scale with GPU Optimization

arXiv cs.LG Papers

Summary

GEM-KMeans introduces a spectrally normalized, memory-efficient NLR formulation for K-means clustering that fuses updates into a single matrix-multiplication epilogue, reducing GPU HBM storage to one factor while maintaining clustering accuracy at massive scale.

arXiv:2609.36074v1 Announce Type: new Abstract: Memory-efficient scaling on clustering problems without sacrificing statistical accuracy is of central interest for large-scale data analysis and machine learning problems. Nonnegative low-rank (NLR) matrix factorization for $K$-means is a scalable clustering method, which connects to semidefinite relaxations with optimal average-case exact recovery guarantees. However, a direct GPU implementation of NLR requires multiple large factor-sized buffers and substantial data movements that are essentially memory-bound. In this paper, we introduce GEM-KMeans, a spectrally normalized yet mathematically equivalent NLR formulation that fuses the gradient update, nonnegative projection, and sufficient statistics for normalization and iterate movement into a matrix-multiplication epilogue. Instead of retaining three massive factor-sized arrays, our IO-aware GPU implementation materializes only one single factor with small tile-reduction arrays as additional storage in the High Bandwidth Memory (HBM). We derive explicit memory costs and spectrally normalized smoothness bounds for optimizing the clustering objective function. Accurate clustering is demonstrated at massive scales on synthetic and real datasets, where performance gains of GEM-KMeans over existing GPU-accelerated Lloyd's algorithms involve data-dependent runtime tradeoffs.
Original Article
View Cached Full Text

Cached at: 09/30/26, 09:45 AM

# GEM-KMeans: Memory-Efficient and Accurate Clustering on Massive Scale with GPU Optimization
Source: [https://arxiv.org/abs/2609.36074](https://arxiv.org/abs/2609.36074)
[View PDF](https://arxiv.org/pdf/2609.36074)

> Abstract:Memory\-efficient scaling on clustering problems without sacrificing statistical accuracy is of central interest for large\-scale data analysis and machine learning problems\. Nonnegative low\-rank \(NLR\) matrix factorization for $K$\-means is a scalable clustering method, which connects to semidefinite relaxations with optimal average\-case exact recovery guarantees\. However, a direct GPU implementation of NLR requires multiple large factor\-sized buffers and substantial data movements that are essentially memory\-bound\. In this paper, we introduce GEM\-KMeans, a spectrally normalized yet mathematically equivalent NLR formulation that fuses the gradient update, nonnegative projection, and sufficient statistics for normalization and iterate movement into a matrix\-multiplication epilogue\. Instead of retaining three massive factor\-sized arrays, our IO\-aware GPU implementation materializes only one single factor with small tile\-reduction arrays as additional storage in the High Bandwidth Memory \(HBM\)\. We derive explicit memory costs and spectrally normalized smoothness bounds for optimizing the clustering objective function\. Accurate clustering is demonstrated at massive scales on synthetic and real datasets, where performance gains of GEM\-KMeans over existing GPU\-accelerated Lloyd's algorithms involve data\-dependent runtime tradeoffs\.

## Submission history

From: Peng Xu \[[view email](https://arxiv.org/show-email/6206f790/2609.36074)\] **\[v1\]**Mon, 28 Sep 2026 18:23:05 UTC \(251 KB\)

Similar Articles

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

Hugging Face Daily Papers

Flash-GMM introduces a fused Triton kernel for Gaussian Mixture Models that achieves 20x speedup and enables training on datasets 100x larger on a single GPU, making soft clustering a viable drop-in replacement for k-means in approximate nearest neighbor search.