GEM-KMeans:GPU 优化下大规模、高内存效率且精准的聚类算法
摘要
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:一种用于可扩展软聚类的内存高效内核
Flash-GMM 引入了一个用于高斯混合模型的融合Triton内核,实现了20倍加速,并能在单个GPU上训练比之前大100倍的数据集,使软聚类成为近似最近邻搜索中k-means的可行替代方案。
DK-GBMKKM: 动态核空间粒球多核$k$-均值聚类
本文提出DK-GBMKKM,一种动态核空间粒球多核$k$-均值聚类方法,它能够适应融合核几何结构,以在多个数据集上提升性能。
大数据K-means聚类的数据原生全局优化
提出Big-means++,一种简单的算法,通过系统性地整理输入并使用样本诱导的代理景观,实现大数据K-means聚类的全局优化质量。
@_avichawla: 研究人员将KMeans提速200倍。这一新技术也超越了cuML和FAISS等方法。Flash-KMeans是一种…
Flash-KMeans是精确KMeans的一种I/O感知实现,它围绕现代GPU瓶颈重新设计了算法,通过消除冗余的内存读写,相比cuML实现了33倍加速,相比FAISS实现了200倍加速。
@KL_Div:随着生成长度增加,LLM 占用的 GPU 内存持续攀升。能否在几乎不牺牲精度的前提下,让 GPU 内存占用保持恒定?
IceCache 通过“动态连续索引”(DCI)技术,在超长生成任务中将 GPU 内存占用压到恒定,且精度损失极小。