GEM-KMeans: Memory-Efficient and Accurate Clustering on Massive Scale with GPU Optimization
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 -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.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AR, cs.PF
Related papers
Making Analog Training Scale: Co-Designing Mapping, Optimizer, and Converters
Shared title terminologycs.LGZhaoxian Wu, Tayfun Gokmen, Omobayode Fagbohungbe et al.
TorchTangents: An Accessible Bridge for Architecture-Preconditioned Optimizers
Shared title terminologycs.LGJoshua DeOliveira, Elke Rundensteiner
Valid Inference with AI-Generated Covariates in Clustered Business Panels: Informative Validation, Temporal Contamination and Stabilization
Shared title terminologycs.LGYousef Nejatbakhsh, Malihe Aliasgari, Sina Shokoohyar et al.
LinearSpec: Drafting from the Target's Memory for Long-Context Speculative Decoding in Hybrid Vision-Language Models
Shared title terminologycs.LGHaiyu Wang, Sai Qian Zhang, Steven Li
Optimistic Predicate Logic: Rethinking Multi-Objective Bayesian Optimization
Shared title terminologycs.LGQuoc Phong Nguyen, Sunil Gupta, Bryan Kian Hsiang Low et al.
What Predicts Forgetting in LoRA Fine-Tuning Across Optimizers
Shared title terminologycs.LGZhiyong Jin