English

K-Means as a Radial Basis function Network: a Variational and Gradient-based Equivalence

Machine Learning 2026-03-06 v1 Statistics Theory Machine Learning Statistics Theory

Abstract

This work establishes a rigorous variational and gradient-based equivalence between the classical K-Means algorithm and differentiable Radial Basis Function (RBF) neural networks with smooth responsibilities. By reparameterizing the K-Means objective and embedding its distortion functional into a smooth weighted loss, we prove that the RBF objective Γ\Gamma-converges to the K-Means solution as the temperature parameter σ\sigma vanishes. We further demonstrate that the gradient-based updates of the RBF centers recover the exact K-Means centroid update rule and induce identical training trajectories in the limit. To address the numerical instability of the Softmax transformation in the low-temperature regime, we propose the integration of Entmax-1.5, which ensures stable polynomial convergence while preserving the underlying Voronoi partition structure. These results bridge the conceptual gap between discrete partitioning and continuous optimization, enabling K-Means to be embedded directly into deep learning architectures for the joint optimization of representations and clusters. Empirical validation across diverse synthetic geometries confirms a monotone collapse of soft RBF centroids toward K-Means fixed points, providing a unified framework for end-to-end differentiable clustering.

Cite

@article{arxiv.2603.04625,
  title  = {K-Means as a Radial Basis function Network: a Variational and Gradient-based Equivalence},
  author = {Felipe de Jesus Felix Arredondo and Alejandro Ucan-Puc and Carlos Astengo Noguez},
  journal= {arXiv preprint arXiv:2603.04625},
  year   = {2026}
}

Comments

21 pages, 2 figures, 1 appendix

R2 v1 2026-07-01T11:03:59.929Z