Abstract
Sequential clustering presents a significant challenge in data stream processing, particularly under the "no-substitution" and "now-or-never" constraints. This paper introduces MUNSC (Multiscale No-Substitution Clustering), the first algorithm to achieve a constant approximation factor for the $k$-median objective under a random arrival order without requiring structural assumptions about the underlying metric space. By employing a multiscale framework and a novel robust risk-estimation technique, MUNSC selects a set of cluster centers that is quasi-linear in $k$, bridging a long-standing gap in the literature between adversarial and random-order models.
Introduction
In many real-world applications, data points arrive sequentially, and decisions regarding their inclusion in a model must be made immediately and irrevocably. Consider a clinical trial where patients are recruited over time, or a digital marketing campaign where users visit a landing page. In these scenarios, a practitioner may wish to identify $k$ "representative" individuals to serve as focal points for further study or targeted outreach. This problem is governed by two critical constraints:
- No Substitution: Once an individual is selected as a cluster center, they cannot be replaced by a later arrival.
- Now or Never: The decision to select an individual must be made the moment they appear. Once they leave the system, they are no longer available for recruitment.
In the field of computer science, this is formalized as the sequential no-substitution $k$-median clustering problem. The objective is to minimize the total risk, defined as the sum of distances from every point in the stream to its nearest selected center. Historically, achieving a constant approximation factor in this setting has been elusive without imposing strict limitations on the data, such as bounded diameter or specific geometric properties.
As shown in the table above, previous approaches either suffered from approximation factors that grew exponentially with $k$ or required specific data assumptions. MUNSC overcomes these hurdles by leveraging the power of a random arrival order.
Methodology: The MUNSC Algorithm
The core of the MUNSC algorithm is a hierarchical approach that combines local selection procedures with a global multiscale strategy.
1. SelectProc: The Internal Engine
The algorithm's fundamental unit is SelectProc, a procedure that processes the data stream in three distinct phases:
- Phase 1 (Reference): A small initial prefix of the stream is used to run a standard offline clustering algorithm. This produces a set of "reference centers" that provide a rough sketch of the data distribution.
- Phase 2 (Estimation): The subsequent chunk of data is used to estimate the "risk" associated with these reference centers. A key innovation here is the use of robust estimation, which truncates the influence of outliers. This prevents a few distant points from disproportionately inflating the risk estimate, which is crucial in unbounded metric spaces.
- Phase 3 (Selection): During the remainder of the stream, points are selected as centers if they are sufficiently far from existing reference centers or if they are among the first few points associated with a specific reference cluster.
2. The Multiscale Framework
A single instance of SelectProc is sensitive to the length of its initial prefix. If the prefix is too small, it may miss large-scale structures; if it is too large, it may overlook smaller, denser clusters. To mitigate this, MUNSC runs multiple copies of SelectProc in parallel.
Each copy operates at a different scale, with prefix lengths typically doubling between instances. This ensures that at any given point in the stream, at least one instance is correctly "tuned" to the optimal scale for capturing the underlying cluster structure.
3. Linear Bin Divisions
To provide rigorous theoretical guarantees, the authors introduced linear bin divisions. This technique partitions data points into bins based on their distance to centers, where bin sizes grow linearly. This mathematical tool allows the authors to prove that a small random sample can accurately represent the total risk of a dataset, even when distances are potentially infinite—a scenario where traditional sampling bounds often fail.
Key Insights and Theoretical Results
The success of MUNSC rests on several critical insights:
- Outlier Robustness: By ignoring the furthest points during the estimation phase, the algorithm gains stability. This "truncated risk" approach is essential for handling general metric spaces where outliers can otherwise dominate the objective function.
- The Random Order Advantage: While an adversarial arrival order makes a constant approximation impossible, a random order allows the algorithm to treat the beginning of the stream as a statistically representative "preview."
- Quasi-Linear Complexity: One of the most significant results is that the number of centers selected is $O(k \log^2(k/\delta))$, where $\delta$ is the failure probability. Remarkably, this count depends only on $k$ and is independent of the total stream length $n$.
The final result is a constant approximation guarantee: the risk achieved by MUNSC is at most a constant multiple of the optimal offline risk, $R(X, T_{out}) \leq C\beta \cdot R(X, OPT)$, where $\beta$ is the approximation factor of the chosen offline black-box algorithm.
Limitations and Future Directions
While MUNSC represents a major step forward, it has certain limitations. The requirement for a random arrival order is the most significant; the algorithm's guarantees do not hold if an adversary can manipulate the sequence of points. Additionally, the current formulation assumes the total stream length $n$ is known. While a "doubling trick" can theoretically handle unknown $n$, a more seamless integration would be beneficial for real-time streaming applications. Finally, while the approximation factor is theoretically constant, the actual value of this constant $C$ may be large, suggesting room for practical optimization in future iterations.
Summary updated