e-means:在十分之一的迭代轮次内超越k-means
e-means: outperforming k-means (in one-tenth the epochs)
AI总结:
本文提出e-means算法,基于指数移动平均优化,仅用1/10迭代轮次就超越k-means,在多数据集上损失更低、速度快10-45倍,可高效处理百亿级嵌入聚类。
摘要:
Lloyd的k-means算法是长期以来用于聚类的标准算法,应用于数据分析、检索、量化和数据整理领域。本文中,我们引入了一种结合小批量更新的k-means指数移动平均优化程序,该程序基于现代深度学习机制和新的研究见解。我们还建立了缩放定律,以研究衰减率和批量大小如何影响最终性能,这为我们提供了适用于多种问题规模和嵌入数据集的公式化规则,无需进行任何超参数搜索。由此产生的聚类算法e-means比Lloyd k-means快得多,且收敛到更低的损失值,经常甚至能超越k-means++。在大量嵌入数据集上,它在1.4至2.6个迭代轮次内达到Lloyd k-means在25个迭代轮次时的损失,与最先进的k-means实现相比,这相当于10至45倍的GPU wall-clock加速。例如,e-means将包含100亿个DINO嵌入的数据集DINO10B划分为1600万个聚类,仅用2.5个迭代轮次,损失就低于Lloyd在25个迭代轮次时的损失。
英文摘要:
Lloyd's k-means algorithm is a long-running standard for clustering, with applications in data analysis, retrieval, quantization and data curation. In this paper, we introduce an exponential moving average optimization procedure for k-means with mini-batch updates, powered by modern deep learning machinery and new insights. We also establish scaling laws on how decay rate and batch size impact final performance. This gives us a formulaic rule to fix them for multiple problem sizes and embedding datasets, without the need for any hyperparameter sweep. The resulting clustering algorithm, coined e-means, is much faster than Lloyd k-means and converges to lower losses, frequently even beating k-means++. On a wide array of embeddings datasets, it beats the loss of Lloyd k-means at 25 epochs in 1.4 to 2.6 epochs, which translates to 10-45x GPU wall-clock speedups compared to state-of-the-art k-means implementations. As an example, e-means partitions DINO10B, a dataset of 10 billion DINO embeddings, into 16 million clusters in only 2.5 epochs, reaching a loss below Lloyd's at 25 epochs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。