Abstract
This work presents the first "optimal" algorithm for fully dynamic $k$-centers clustering in general metric spaces. By reducing the problem to maintaining a $k$-bounded Maximal Independent Set (MIS), we achieve a $(2 + \epsilon)$-approximation with an amortized update time of $\tilde{O}(k)$, a significant improvement over the previous $O(k^2)$ state-of-the-art. Furthermore, we demonstrate that this $O(k)$ complexity is a fundamental limit for general metrics and show how to break this barrier using Locally Sensitive Hashing (LSH) for specific spaces such as Euclidean or Hamming metrics.
Introduction
Clustering is a fundamental task in unsupervised learning, with the $k$-centers objective being a classic formulation: given a set of points, select $k$ centers to minimize the maximum distance from any point to its nearest center. While efficient solutions exist for static settings, modern data is increasingly dynamic, characterized by frequent insertions and deletions. Maintaining high-quality clustering "on the fly" without full recomputation is a significant challenge. Previous dynamic algorithms either lacked support for deletions or suffered from a quadratic dependency on $k$ ($O(k^2)$), making them impractical for large-scale applications with many clusters.
Methodology
The proposed approach leverages a reduction to graph theory through the following components:
- Threshold Graphs: The metric space is transformed into a series of "threshold graphs" where edges connect points within a distance $r$.
- $k$-Bounded MIS: A $(2+\epsilon)$-approximation for $k$-centers is shown to be equivalent to maintaining a Maximal Independent Set (MIS) in these graphs. If the MIS size exceeds $k$, the radius $r$ is deemed too small.
- Randomized Ranking (LFMIS): To handle updates efficiently, a Lexicographically First MIS (LFMIS) is maintained based on a random permutation of points. Under this random ranking, the expected number of "leader" changes (points requiring new centers) per update is only $O(\log n)$.
- LSH Integration: For specialized metrics like $\ell_p$ spaces, brute-force distance checks are replaced with Locally Sensitive Hashing (LSH). This allows for neighbor discovery and cluster updates in time sublinear to $k$, bypassing the lower bounds of general metric spaces.
Results and Performance
The algorithm's performance was analyzed across various metric models, including general metric spaces, $\ell_p$ spaces (Euclidean and Manhattan), Hamming, Jaccard, and Earth Mover’s Distance (EMD).
Key results include:
- General Metrics: Achieving a $(2 + \epsilon)$-approximation in $O(k \cdot \text{polylog}(n, \Delta))$ amortized update time, which matches the theoretical limit for polynomial-time algorithms.
- Sublinear Updates: For LSH-friendly spaces like Euclidean metrics, the update time is reduced to $O(n^{1/c} \cdot \text{polylog})$, representing the first constant-factor approximation with sublinear-in-$k$ update time for these spaces.
- Deterministic Variant: A deterministic version provides a $O(\log n)$ approximation in $\tilde{O}(k)$ time for applications requiring guaranteed performance without randomized failure.
Discussion
The transition from $O(k^2)$ to $O(k)$ update time effectively "closes" the complexity gap for general metrics. Lower bound proofs indicate that any algorithm must perform at least $\Omega(nk)$ distance queries to maintain non-trivial clustering, positioning the $\tilde{O}(k)$ amortized time as optimal. The efficiency stems from a "lazy" update strategy where leader mappings only change when necessary. Additionally, the LSH integration provides a general framework to accelerate dynamic clustering as LSH techniques for new metrics evolve.
Limitations and Future Work
Current results are primarily amortized; while the average cost is low, individual updates may still be slow. The randomized algorithm also assumes an "oblivious adversary," where update sequences do not depend on the algorithm's random choices. Future work may address adaptive adversaries and reduce the dependency on the aspect ratio $\Delta$ (the ratio of maximum to minimum distance), which can impact performance in highly stretched datasets.
Summary updated