NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Mixed-integer programming techniques for the minimum sum-of-squares clustering problem

Jan Pablo Burgard, Carina Moreira Costa, Christopher Hojny, Thomas Kleinert, Martin Schmidt

Introduction

Clustering is a fundamental task in unsupervised machine learning, with the Minimum Sum-of-Squares Clustering (MSSC) problem serving as the mathematical foundation for the ubiquitous $k$-means algorithm. While heuristics like Lloyd’s algorithm are computationally efficient, they are prone to converging on local optima. In critical applications—such as medical diagnostics or socioeconomic modeling—the lack of a global optimality guarantee can lead to significant misinterpretations. This paper presents a suite of tailored mixed-integer programming (MIP) techniques designed to solve the MSSC problem to provable global optimality.

The MSSC Problem

The MSSC problem seeks to partition a set of $n$ points into $k$ clusters such that the sum of squared Euclidean distances from each point to its assigned cluster center is minimized. Mathematically, this is a non-convex Mixed-Integer Nonlinear Programming (MINLP) problem. Finding the global optimum is NP-hard, and general-purpose solvers often struggle with the combinatorial explosion of point assignments and the non-convexity of the objective function.

Methodology: Enhancing SCIP with Geometric Logic

The authors implemented their enhancements within the open-source SCIP optimization suite. The core innovation lies in "injecting" geometric domain knowledge into the solver's abstract numerical framework, allowing it to prune the search space more effectively than general-purpose algorithms.

1. Mathematical Formulations

Two primary models were evaluated to determine the best starting point for optimization:

  • Standard Quadratic Model: A non-convex formulation directly minimizing squared distances.
  • Lifted Epigraph Model: A formulation using convex quadratic constraints and a linear objective. While theoretically "stronger" in terms of its dual bound, the authors found that the quadratic model often processed nodes faster, leading to a hybrid approach using specialized cuts.

2. Geometric Propagators

These components serve as the "secret sauce" for pruning the search tree by identifying impossible configurations early:

  • Barycenter Propagation: Leverages the property that an optimal cluster center must be the mean (barycenter) of its constituent points. This allows the solver to tighten variable bounds significantly as points are assigned.
  • Convexity and Cone Propagation: Based on the principle that optimal clusters are linearly separable (forming Voronoi cells). If a point lies within the convex hull of a cluster, it must belong to that cluster. This logic allows the solver to fix thousands of binary assignment variables instantly.

3. Tailored Branching and Cutting Planes

The authors introduced Entropy Branching (focusing on points with the most uncertain assignments) and Distance Branching (targeting points furthest from centers). Additionally, Cardinality Cuts were used to ensure no cluster is empty, and Outer Approximation Cuts were employed to linearize convex constraints in the epigraph model.

Experimental Evaluation

The methodology was tested on a benchmark of 25 instances frequently cited in clustering literature, including real-world datasets (e.g., Fisher’s Iris, image segmentation) and synthetic sets with up to 7,500 points. To analyze scaling, smaller representative samples (100 to 1,000 points) were extracted using Sobol sequences to maintain the geometric properties of the original data.

Results and Discussion

The integration of geometric techniques yielded a dramatic performance boost. While the "out-of-the-box" SCIP solver could only solve 1 of the 25 instances to optimality for $k=2$, the enhanced version solved 9 instances and drastically reduced optimality gaps for the remainder. For 2D datasets with $n \approx 1000$, the tailored solver found optimal solutions in seconds, whereas standard solvers timed out after an hour.

The study highlights that the main bottleneck in global optimization is the "dual bound"—the mathematical proof that no better solution exists. The geometric propagators, particularly the barycenter rule, were instrumental in raising this lower bound, which is essential for closing the optimality gap in a branch-and-bound framework.

Limitations and Future Directions

Despite these advances, two primary challenges remain:

  1. Dimensionality: The convexity propagators become computationally expensive as the number of dimensions ($d$) increases, as they rely on computing convex hulls.
  2. Number of Clusters ($k$): Complexity grows exponentially with $k$. Solving for $k \ge 3$ remains a significant hurdle for current MINLP approaches.

Future research may focus on hybridizing these geometric MIP techniques with Semi-Definite Programming (SDP) methods to further improve dual bounds for larger and higher-dimensional instances.

Summary updated

BibTeX
@article{burgard2023mixed,
  author = {Jan Pablo Burgard and Carina Moreira Costa and Christopher Hojny and Thomas Kleinert and Martin Schmidt},
  title = {{Mixed-integer programming techniques for the minimum sum-of-squares clustering problem}},
  journal = {J. Glob. Optim.},
  year = {2023},
  doi = {10.1007/s10898-022-01267-4},
}
Figure