GEM-KMeans:GPU 优化下大规模、高内存效率且精准的聚类算法

arXiv cs.LG 论文

摘要

GEM-KMeans 提出了一种谱归一化、高内存效率的 K-means 聚类非线性回归(NLR)公式,将更新融合进单次矩阵乘法的收尾阶段(epilogue),使 GPU 高带宽存储只需保留一个因子,同时在超大规模数据上保持聚类精度。

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.
查看原文
查看缓存全文

缓存时间: 2026/09/30 09:45

# 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\)

相似文章

Flash-GMM:一种用于可扩展软聚类的内存高效内核

Hugging Face Daily Papers

Flash-GMM 引入了一个用于高斯混合模型的融合Triton内核,实现了20倍加速,并能在单个GPU上训练比之前大100倍的数据集,使软聚类成为近似最近邻搜索中k-means的可行替代方案。