arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.05902cs.LGcs.AIcs.DS
收藏

小批量核$k$-均值(Mini-Batch Kernel $k$-means)

Mini-Batch Kernel $k$-means

University of Edinburgh(爱丁堡大学);Japan Advanced Institute of Science and Technology (JAIST)(日本先进科学技术研究所)

Ben Jourdan, Gregory Schwartzman

AI总结:

该研究提出首个小批量核$k$-均值算法,将单次迭代时间从全批量的$O(n^2)$降至$\widetilde{O}(kb^2)$,实现10-100倍加速且质量损失极小,还给出了早停场景下的理论收敛保证与近似比分析。

摘要:

我们提出了首个小批量核$k$-均值算法,与全批量算法相比,运行时间提升了一个数量级。该算法单次迭代的时间复杂度为$\widetilde{O}(kb^2)$,远快于全批量核$k$-均值所需的$O(n^2)$时间,其中$n$为数据集规模,$b$为批量大小。大量实验表明,该算法可稳定实现10至100倍的加速,且质量损失极小,解决了运行速度慢这一限制核$k$-均值实际应用的问题。我们进一步通过早停条件下的理论分析补充了这些结果,证明当批量大小满足$\widetildeΩ(\max \{γ^{4}, γ^{2}\} \cdot ε^{-2})$时,算法以高概率在$O(γ^2/ε)$次迭代内终止,其中$γ$为特征空间中点的范数上界,$ε$为终止阈值。我们的分析适用于任何合理的中心初始化方式;当使用$k$-means++初始化时,算法的期望近似比为$O(\log k)$。对于高斯核、拉普拉斯核这类归一化核,有$γ=1$。取$ε= O(1)$且$b=Θ(\log n)$时,算法在$O(1)$次迭代内终止,每次迭代的运行时间为$\widetilde{O}(k)$。

英文摘要:

We present the first mini-batch kernel $k$-means algorithm, offering an order of magnitude improvement in running time compared to the full batch algorithm. A single iteration of our algorithm takes $\widetilde{O}(kb^2)$ time, significantly faster than the $O(n^2)$ time required by the full batch kernel $k$-means, where $n$ is the dataset size and $b$ is the batch size. Extensive experiments demonstrate that our algorithm consistently achieves a 10-100x speedup with minimal loss in quality, addressing the slow runtime that has limited kernel $k$-means adoption in practice. We further complement these results with a theoretical analysis under an early stopping condition, proving that with a batch size of $\widetildeΩ(\max \{γ^{4}, γ^{2}\} \cdot ε^{-2})$, the algorithm terminates in $O(γ^2/ε)$ iterations with high probability, where $γ$ bounds the norm of points in feature space and $ε$ is a termination threshold. Our analysis holds for any reasonable center initialization, and when using $k$-means++ initialization, the algorithm achieves an approximation ratio of $O(\log k)$ in expectation. For normalized kernels, such as Gaussian or Laplacian it holds that $γ=1$. Taking $ε= O(1)$ and $b=Θ(\log n)$, the algorithm terminates in $O(1)$ iterations, with each iteration running in $\widetilde{O}(k)$ time.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑