[Paper Review] A balanced k-means algorithm for weighted point sets
This paper proposes a weight-balanced k-means algorithm that extends classical k-means to handle weighted point sets with prescribed lower and upper bounds on cluster sizes. By modeling the assignment phase as a linear program over a weight-balanced partition polytope and leveraging polyhedral theory, the authors prove finite convergence in at most $(40ek^2n)^{(d+1)k-1}$ iterations, ensuring polynomial-time termination for fixed $k$ and $d$. The method supports partial membership clustering and enables kernelization for nonlinear data.
The classical $k$-means algorithm for partitioning $n$ points in $\mathbb{R}^d$ into $k$ clusters is one of the most popular and widely spread clustering methods. The need to respect prescribed lower bounds on the cluster sizes has been observed in many scientific and business applications. In this paper, we present and analyze a generalization of $k$-means that is capable of handling weighted point sets and prescribed lower and upper bounds on the cluster sizes. We call it weight-balanced $k$-means. The key difference to existing models lies in the ability to handle the combination of weighted point sets with prescribed bounds on the cluster sizes. This imposes the need to perform partial membership clustering, and leads to significant differences. For example, while finite termination of all $k$-means variants for unweighted point sets is a simple consequence of the existence of only finitely many partitions of a given set of points, the situation is more involved for weighted point sets, as there are infinitely many partial membership clusterings. Using polyhedral theory, we show that the number of iterations of weight-balanced $k$-means is bounded above by $n^{O(dk)}$, so in particular it is polynomial for fixed $k$ and $d$. This is similar to the known worst-case upper bound for classical $k$-means for unweighted point sets and unrestricted cluster sizes, despite the much more general framework. We conclude with the discussion of some additional favorable properties of our method.
Motivation & Objective
- Address the need for constrained clustering in real-world applications where cluster sizes must be bounded, particularly in data analytics, risk prediction, and agricultural land consolidation.
- Extend classical k-means to handle weighted point sets, where points have individual weights (e.g., repeated or valued data points), requiring partial membership clustering.
- Ensure finite and bounded convergence by incorporating lower and upper bounds on cluster sizes, which prevents empty clusters and enforces balanced partitioning.
- Develop a framework that generalizes power diagrams (generalized Voronoi diagrams) to support feasible, size-constrained clusterings using linear programming.
- Establish theoretical convergence guarantees for the algorithm despite the infinite number of partial membership clusterings in weighted settings.
Proposed method
- Model the weight-balanced least-squares assignment as a linear program over the weight-balanced partition polytope, which encodes feasible clusterings with size constraints.
- Define the feasible region using constraints: (1) cluster weight bounds $\kappa_i^- \leq \sum_j \omega_j y_{ij} \leq \kappa_i^+$, (2) full assignment $\sum_i y_{ij} = 1$, and (3) non-negativity $y_{ij} \geq 0$.
- Use vertex-based refinement: when a solution $y^*$ is a vertex of the polytope, restrict the feasible region to $Q(y^*)$ by fixing integral assignments ($y_{ij} \in \{0,1\}$) and re-solving the reduced linear program.
- Apply polyhedral theory to bound the number of vertices of the restricted polytope $Q(y^*)$, which is at most $\binom{5k-2}{2(k-1)} \leq (5k)^{2k-2}$, due to at most $2(k-1)$ fractional variables.
- Leverage the number of strongly feasible power diagrams—bounded by $\left(\frac{8e(k-1)n}{d}\right)^{(d+1)k-1}$—to upper-bound the total number of distinct cluster assignments.
- Enable kernelization by replacing inner products $x_j^T s_i$ with kernel functions $\Phi(x_j, s_i)$, allowing nonlinear clustering while preserving the algorithm’s structure.
Experimental results
Research questions
- RQ1How can the classical k-means algorithm be generalized to handle weighted point sets with prescribed lower and upper bounds on cluster sizes?
- RQ2What is the theoretical convergence behavior of such a generalized k-means algorithm when partial membership clustering is required due to weight constraints?
- RQ3Can finite termination be guaranteed despite the uncountable infinity of possible partial membership clusterings in weighted settings?
- RQ4What is the maximum number of iterations required for convergence, and can this be bounded polynomially in $n$, $k$, and $d$?
- RQ5How can the algorithm be efficiently implemented and extended to nonlinear data via kernel methods?
Key findings
- The weight-balanced k-means algorithm guarantees finite convergence in at most $(40ek^2n)^{(d+1)k-1}$ iterations, which is polynomial in $n$ for fixed $k$ and $d$.
- The number of distinct strongly feasible power diagrams—corresponding to valid cluster configurations—is bounded by $\left(\frac{8e(k-1)n}{d}\right)^{(d+1)k-1}$, providing a theoretical upper bound on the number of unique cluster assignments.
- The number of vertices in the restricted feasible region $Q(y^*)$ after fixing integral assignments is at most $(5k)^{2k-2}$, ensuring that no vertex is revisited during the algorithm’s execution.
- The algorithm supports warm-starting: since the feasibility region remains unchanged between iterations, the previous optimal assignment $y^*$ remains feasible and can be used as a starting point.
- The method is naturally kernelizable—by replacing standard inner products with kernel functions $\Phi(x_j, s_i)$—without altering the algorithm’s structure, enabling nonlinear clustering.
- The framework generalizes classical k-means and Voronoi diagrams by incorporating weights and size constraints, enabling applications in data mining, predictive maintenance, and land consolidation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.