On Convergence of Epanechnikov Mean Shift

Kejun Huang, Xiao Fu, Nicholas D. Sidiropoulos

Introduction

Mean Shift is a powerful non-parametric clustering technique that operates by seeking modes in a probability density landscape. By iteratively moving data points toward regions of higher density, the algorithm naturally identifies cluster centers. While the Gaussian kernel is frequently used due to its smoothness, the Epanechnikov kernel is theoretically optimal for density estimation. However, its non-smooth nature has historically hindered rigorous convergence proofs. This paper addresses this gap, providing the first formal proof of convergence for Epanechnikov Mean Shift (EMS) and introducing optimizations that significantly enhance its scalability.

The Challenge of Non-Smoothness

The primary difficulty with EMS lies in its "cliff-edge" boundary. Unlike the smooth Gaussian kernel, the Epanechnikov kernel has a finite support, which creates a non-smooth objective function. Previous research could not guarantee that the standard "plain vanilla" EMS would converge to a local maximum. The authors identify a specific "stuck" condition where the algorithm can reach a point on the kernel's boundary where the gradient is zero, but a better descent direction still exists—essentially a "fake" stationary point caused by the kernel's sharp edge.

Methodology: EMS-Redux and Deflation

To resolve these theoretical and practical hurdles, the authors propose two key algorithmic improvements:

  1. EMS-Redux: This modification ensures convergence by checking directional derivatives at non-smooth points. If the algorithm becomes trapped at a boundary point that is not a local maximum, it samples a new point on the boundary to find a valid descent direction. This ensures that the algorithm always terminates at a true local maximum.
  2. EMS Deflation: Standard Mean Shift is computationally expensive because it initiates a search from every single data point. The "deflation" variant leverages high-dimensional geometry. In high-dimensional spaces ($d \gg 1$), points in a spherical Gaussian cluster tend to concentrate within a specific radius. Once a mode is found, the algorithm assigns all points within this radius to the cluster and removes them from the pool, drastically reducing the number of required iterations.
The iterative procedure for Epanechnikov Mean Shift, which forms the basis for the proposed Redux and Deflation variants.

Finite Convergence and Efficiency

A significant theoretical finding is that EMS converges in a finite number of steps. While smooth kernels like the Gaussian kernel only approach a limit asymptotically, the "sharpness" of the Epanechnikov kernel allows the algorithm to reach the exact local maximum quickly. In practice, the authors observed that EMS usually terminates in fewer than 10 iterations.

Experimental Results

The authors benchmarked the proposed methods against standard clustering algorithms, including Lloyd's K-means, EM for Gaussian Mixture Models (GMM), and the Dasgupta & Schulman (2000) EM variant. The tests were conducted on synthetic GMM data with 100 dimensions and 30 clusters.

Performance comparison on synthetic GMM data (d=100). Mean Shift Deflation (blue) achieves zero error while being the fastest algorithm tested.

As shown in the results, both the original EMS and the Deflation variant achieved zero clustering error, outperforming K-means and EM, which struggled with high-dimensional overlaps. More impressively, the Mean Shift Deflation was orders of magnitude faster than the original version and even surpassed K-means in speed, making it highly suitable for large-scale high-dimensional datasets.

Conclusion

This work provides a solid theoretical foundation for the Epanechnikov Mean Shift algorithm. By addressing the non-smoothness of the kernel, the authors not only proved finite convergence but also unlocked a highly efficient "deflation" variant. While the current deflation heuristic assumes spherical clusters, the results demonstrate that EMS is a robust and exceptionally fast alternative to traditional clustering methods in high-dimensional spaces.

Summary updated

BibTeX
@inproceedings{huang2018convergence,
  author = {Kejun Huang and Xiao Fu and Nicholas D. Sidiropoulos},
  title = {{On Convergence of Epanechnikov Mean Shift}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.11657},
}
Figure