Clustering with Label Consistency

Diptarka Chakraborty, Hendrik Fichtenberger, Bernhard Haeupler, Silvio Lattanzi, Ashkan Norouzi-Fard, Ola SvenssonarXiv 2025 · DOI

Abstract

In dynamic data environments, standard clustering algorithms often fail to maintain stable point assignments as new data arrives. This paper introduces the "label consistency" framework, which prioritizes minimizing the "switching cost"—the number of points reassigned to different clusters—alongside traditional clustering objectives. We present the first efficient approximation algorithms for label-consistent $k$-center and $k$-median problems, providing rigorous mathematical guarantees for both clustering quality and label stability.

Introduction

Clustering is a cornerstone of unsupervised learning, used to group similar data points across various domains. However, in real-world applications, data is rarely static. When new data points arrive incrementally, re-running standard clustering algorithms can lead to "label instability," where existing points are reassigned to different clusters even if their local neighborhood remains relatively unchanged. Such instability is detrimental to downstream systems like fraud detection pipelines or taxonomy management, where consistent identity is crucial.

The Problem: Beyond Center Consistency

Previous attempts to stabilize clustering focused on center consistency, aiming to keep the physical coordinates of cluster centers stable over time. The authors demonstrate that this is insufficient. A minor shift in a center's location can trigger a "cascade" of reassignments for points near cluster boundaries.

Comparison of Center Consistency vs. Label Consistency. While centers might remain stable, label consistency specifically prevents mass reassignment of points (e.g., the green cluster remaining green despite new data).

The Label Consistent Clustering Problem addresses this by explicitly limiting the switching cost. The goal is to find a clustering for a new dataset $X'$ that minimizes a standard objective (like $k$-center or $k$-median) while ensuring that at most a budget $S$ of points from the original dataset $X$ change their labels.

Algorithmic Approaches

The paper develops distinct strategies for two primary clustering objectives.

Label-Consistent $k$-Center

For the $k$-center problem, which minimizes the maximum distance between any point and its assigned center, the authors propose a two-phase greedy algorithm.

The two-phase greedy approach for label-consistent k-center clustering. (a) Initial state. (b) Phase 1: Growing cluster boundaries and opening new centers. (c) Phase 2: Pruning centers to meet the k-limit while preserving heavy clusters.
  1. Phase 1 (Expansion): The algorithm expands the radius of existing clusters and opens new centers to cover newly arrived points.
  2. Phase 2 (Pruning): To respect the constraint of having exactly $k$ centers, the algorithm selectively closes centers. It prioritizes keeping "heavy" clusters (those with many points) to minimize the number of reassignments.

Label-Consistent $k$-Median

The $k$-median problem, which minimizes the sum of distances, is more complex. The authors provide two solutions:

  • Tree-Based DP: By embedding the data into a probabilistic tree structure, the spatial problem is reduced to a tree-based optimization solved via Dynamic Programming.
  • LP Rounding with Resource Augmentation: The authors formulate the problem as a Linear Program (LP). They identify a significant "integrality gap," meaning standard LP solutions cannot perfectly satisfy both the $k$-center limit and the switching budget. To overcome this, they employ resource augmentation, allowing the algorithm to either open $k+1$ centers or slightly exceed the switching budget to achieve a constant-factor approximation.

Theoretical Results

The paper's primary contribution lies in its rigorous approximation guarantees:

  • $k$-center: Achieves a 6-approximation in $O(n^2 + kn \log n)$ time.
  • $k$-median (Tree+DP): Provides an $O(\log k)$-approximation in near-linear time.
  • $k$-median (LP Rounding): Delivers a 10-approximation using resource augmentation (either $k+1$ centers or $1+\epsilon$ switching cost).

Conclusion and Future Work

This work establishes a formal foundation for stable clustering in evolving datasets. By shifting the focus from center stability to label stability, the authors provide tools for more reliable machine learning pipelines. Future research directions include extending these guarantees to the $k$-means objective and exploring "abstract labeling," where the algorithm minimizes ID changes regardless of physical center movement.

Summary updated

BibTeX
@misc{chakraborty2025clustering,
  author = {Diptarka Chakraborty and Hendrik Fichtenberger and Bernhard Haeupler and Silvio Lattanzi and Ashkan Norouzi-Fard and Ola Svensson},
  title = {{Clustering with Label Consistency}},
  year = {2025},
  eprint = {2512.19654},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.19654},
}
Figure