stat.MEOct 10, 2026

An Algebraic Approach to Constrained K-means Clustering

Authors: Hiroki Oohori, Kentaro Fukushima, Michio Yamamoto

Organizations: Graduate School of Human Sciences, The University of Osaka, Osaka, Japan · Graduate School of Education, The University of Tokyo, Tokyo, Japan · Center for Advanced Intelligence Project, RIKEN, Tokyo, Japan · Data Science and AI Innovation Research Promotion Center, Shiga University, Shiga, Japan

Abstract

Clustering is typically performed using only object features, although additional information about relationships between objects may be available and can be incorporated through constraints. Among these, pairwise constraints require two objects to belong to the same cluster or to different clusters. Several extensions of the k-means algorithm accommodate such constraints, but they sometimes fail to find a feasible assignment or incur high computational cost. Motivated by these limitations, we propose an algebraic approach to k-means clustering with pairwise constraints. The algorithm simplifies the constraints using Gröbner bases before optimization, improving the efficiency of cluster assignment. It can also detect whether the constraint set has a feasible assignment before optimization. Comparative experiments with existing algorithms showed that the proposed algorithm achieved comparable or better clustering quality at a lower computational cost, particularly when the numbers of constraints and clusters were small.

Figures & tables

Appendix figures & tables4 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Kempe Swap K-Means: A Scalable Near-Optimal Solution for Semi-Supervised Clustering

    Mar 28, 2026Yuxuan Ren, Shijie DengClusteringSemi-Supervised Learning

  2. Riemannian Difference-of-Convex Optimization for K-Means Clustering

    Sep 28, 2026Meng Xu, Bo Jiang, Hanfu Zhang +2Riemannian OptimizationClustering

  3. A Sub-4 Approximation for Fair kk-Means

    Sep 7, 2026Kangke Cheng, Guanlin Mo, Shihong Song +1ClusteringGroup Fairness