Abstract
Online clustering typically focuses on maintaining cluster centers that can move over time. However, many real-world applications require cluster-based consistency, where data points must be irrevocably assigned to a cluster label upon arrival. This paper presents the first competitive analysis for this more restrictive model. By employing a learning-augmented approach with a predicted budget $B$ for the total cost, we develop a deterministic algorithm with a competitive ratio of $O(k^5 \cdot 3^k)$. Notably, this ratio depends only on the number of clusters $k$ and is independent of the total number of points $n$, bypassing previous impossibility results.
Introduction: The Need for Consistency
Clustering is a fundamental task in data science, but performing it "online" as data streams in presents significant challenges. Traditional online $k$-median models often allow for center-based consistency, where the algorithm maintains $k$ centers. While these centers can shift, a point's cluster membership is implicitly defined by its nearest center. If centers move significantly, a point's effective cluster can change, leading to "jitter."
In contrast, cluster-based consistency requires that once a point is assigned to a label (e.g., "Topic A" in a news aggregator), that assignment is permanent. This is crucial for user experience in applications like real-time news grouping or document organization. Previous theoretical work showed that under standard worst-case analysis, no algorithm can achieve a bounded competitive ratio for this problem; the cost could scale with the number of points $n$ or the geometry of the metric space.
Overcoming Impossibility with Learning Augmentation
To address this, we utilize a beyond worst-case analysis framework. We assume the algorithm is provided with a predicted budget $B$, which serves as an upper bound on the optimal offline cost. This budget allows the algorithm to distinguish between minor noise and the emergence of significant new clusters.
Synthetic Challenges
The difficulty of the problem is illustrated by synthetic lower-bound instances. These mathematical constructions show that even with a budget, any deterministic algorithm must face a competitive ratio of at least $\Omega(k)$.
The Pivot-Based Algorithm
Our core contribution is a deterministic algorithm that manages cluster labels through a set of "pivots." When a point arrives, it is immediately labeled based on the nearest existing pivot. The algorithm's internal logic revolves around two main concepts:
- Natural Weight: This is a measure of the "importance" of a region. It is defined as the maximum number of points in a local area that can be clustered for a cost proportional to the budget $B$.
- $\beta$-Well-Separation: The algorithm is "lazy" about creating new labels. It only introduces a new pivot when it identifies a point that is sufficiently far ($\beta$-well-separated) from existing pivots and belongs to a region with high natural weight.
Managing Pivots: Add and Exchange
The algorithm maintains consistency by carefully updating its pivots through two subroutines:
- Add Operation: Triggered when a new, dense region of space is discovered that cannot be efficiently covered by existing clusters.
- Exchange Operation: Triggered when an existing cluster appears to split into two distinct, well-separated groups. The algorithm reorganizes its pivots to better represent the data distribution without changing the labels of previously assigned points.
Key Results and Theoretical Bounds
We establish both upper and lower bounds for the competitive ratio of cluster-consistent online $k$-median clustering:
- Upper Bound: Our deterministic algorithm achieves a competitive ratio of $O(k^5 \cdot 3^k)$. While exponential in $k$, it is the first result to be completely independent of the number of points $n$.
- Lower Bound: We prove that no deterministic algorithm can achieve a competitive ratio better than $\Omega(k)$ relative to the budget $B$.
- Feasibility: We guarantee that the algorithm never exceeds the $k$ available cluster labels.
Conclusion and Future Directions
This work provides a theoretical foundation for consistent online clustering. By leveraging a predicted budget, we move past traditional impossibility results to provide an algorithm suitable for large-scale, real-time applications where $k$ is small relative to $n$.
Future research may focus on closing the gap between the $\Omega(k)$ lower bound and the $O(3^k)$ upper bound. Additionally, exploring randomized algorithms could potentially yield competitive ratios that are polynomial in $k$. Finally, making the algorithm robust to inaccurate budget predictions remains an important open challenge for practical deployment.
Summary updated