K-means Cluster Meshes: Mesh-Specific Algorithms
- K-means Cluster Meshes is a class of algorithms that adapt Lloyd’s method to mesh data by incorporating non-rigid transformations, geodesic distances, and graph centrality.
- The approaches replace the standard Euclidean centroid with mesh-specific representatives, such as deformation-invariant means or PageRank-based nodes, to better capture intrinsic data structures.
- Applications include mesh segmentation, balanced partitioning for parallel simulations, and enhanced clustering performance through soft balancing and efficient iterative updates.
K-means clustering on meshes comprises a set of adaptations of Lloyd’s centroid-based procedure to geometric data that are not adequately captured by a plain Euclidean mean. In the sources considered here, three mesh-specific settings are explicit: whole meshes represented by stacked vertex coordinate vectors ; triangulated meshes treated as graphs with shortest-path or geodesic distance ; and large sets of mesh vertices partitioned for parallel numerical simulations. The corresponding methods preserve the intrinsic data space and augment K-means with a similarity measure invariant to non-rigid transformations, replace the Euclidean centroid with a graph-centrality–based representative, or adapt Lloyd’s heuristic with a soft balance mechanism (Cosentino et al., 2022, Hajij et al., 2020, Looz et al., 2018).
1. Problem formulations on mesh data
For clustering entire meshes with fixed vertex correspondence, the data are written as with , where the $3D$ coordinates of vertices are stacked into one long vector. Spatial Transformer K-Means seeks centroids together with per-datum deformation parameters 0 and minimizes
1
with
2
Here 3 is a differentiable 4 spatial-transformer mapping, 5 is an optional regularizer on the deformation, and 6 trades off reconstruction against smoothness (Cosentino et al., 2022).
For mesh segmentation on a triangulation, the mesh is treated as an undirected graph whose vertices and edges come from the triangulation. On a general graph there is no vector mean, so the update step must choose a representative from the discrete set of vertices. In the PageRank-based formulation, one fixes 7, maintains seeds 8, forms the graph-Voronoi partition
9
and updates each seed by centrality on the induced subgraph 0 (Hajij et al., 2020).
For geometric partitioning, the input is a set of mesh vertices, optionally with weights 1, and the objective combines the usual 2-means distortion with an explicit balance condition. The stated problem is to find a partition 3 of 4 that minimizes
5
while enforcing
6
for all 7, or, in the weighted case,
8
Mesh partitioning is described as an indispensable tool for efficient parallel numerical simulations, with the goal of minimizing communication between the processes of a simulation while achieving load balance (Looz et al., 2018).
2. Lloyd-style iterations and mesh-specific representatives
All three approaches retain the alternating structure of Lloyd’s method, but they modify either the assignment rule, the representative, or both. Standard 9-means on a point set 0 alternates between a Voronoi-type assignment and an arithmetic-mean update. The graph formulation keeps the assignment idea but replaces the arithmetic centroid by a node-centrality–based representative, most prominently PageRank. After forming 1, one computes a PageRank vector on the induced subgraph and sets
2
The loop stops when there is no change in seeds or after a fixed iteration cap (Hajij et al., 2020).
Spatial Transformer K-Means follows a generalized Lloyd’s two-step scheme. In the E-step, for each 3 one solves
4
by gradient descent, computes
5
and assigns 6 to the cluster with minimal 7. In the M-step, for each cluster 8 one updates
9
which is stated to be the Fréchet mean in the warped space (Cosentino et al., 2022).
Balanced 0-means extends the assign/move-centers scheme by introducing a per-cluster influence factor 1 that penalizes oversized clusters. Instead of assigning a point 2 to 3, it assigns to the cluster minimizing
4
After each assignment sweep, cluster weights 5 are compared to the target 6, and the influence is adjusted as
7
with each adjustment capped to 8 to avoid oscillation. Hamerly’s bounds are then used to skip distance computations when an assignment cannot change (Looz et al., 2018).
3. Spatial Transformer K-Means for non-rigid mesh clustering
Spatial Transformer K-Means is presented as a centroid-based clustering framework that jointly learns per-sample nonrigid alignments and cluster centroids in the original data space. The stated motivation is to preserve the intrinsic data space and augment K-means with a similarity measure invariant to non-rigid transformations. The method is claimed to enable the reduction of intrinsic nuisances associated with the data, reducing the complexity of the clustering task and increasing performances and producing state-of-the-art results; clustering in the input space of the data, leading to a fully interpretable clustering algorithm; and the benefit of convergence guarantees (Cosentino et al., 2022).
For mesh data, the non-rigid transform is a differentiable 9 spatial-transformer mapping implemented by a thin-plate-spline or radial-basis-function warp driven by 0 landmarks. In the thin-plate-spline construction, one chooses control points 1 on a template or uniform grid in 2. The warp 3 is determined by solving the TPS linear system with kernel 4 for the 5 coefficients. The deformation vector 6 consists of the offsets of the 7 control points, with 8, and 9 is evaluated by applying $3D$0 to every vertex via barycentric or bilinear-like interpolation in $3D$1 (Cosentino et al., 2022).
In the simplest unregularized form $3D$2, the deformation-invariant distance is described as a quasipseudosemimetric: it is nonnegative, satisfies $3D$3 iff $3D$4 lies on the diffeomorphic-orbit of $3D$5, is invariant under the group of $3D$6 TPS-like diffeomorphisms, and is symmetric up to volume-change factors; a symmetrized version is possible if desired. Under the assumption that each inner problem has a unique global minimizer, the overall objective $3D$7 decreases at every iteration of Lloyd’s scheme and terminates at a local optimum in a finite number of steps. The stated justification invokes Banerjee et al. (2005)’s generalization of Bregman-divergence clustering, with $3D$8 treated as a valid Bregman-like divergence in the joint $3D$9 space (Cosentino et al., 2022).
The implementation recipe is explicitly mesh-oriented. Each mesh is represented by its stacked vertex coordinate vector in 0; connectivity remains fixed across the dataset, or one works on point-clouds when connectivity varies. Recommended preprocessing is to align all meshes to a common pose, for example with PCA-based orientation, normalize scale to unit volume, and optionally downsample high-resolution meshes to 1–2 vertices. The per-3 warp fit solves an 4 TPS system, plus 5 warp evaluation and 6 squared-error computation, leading to total per Lloyd iteration
7
The practical ranges stated are 8–9 and 0–1, and GPU-parallelization across 2 can render the runtime nearly linear in 3 (Cosentino et al., 2022).
4. PageRank-based K-means on triangulated meshes
The PageRank formulation generalizes the 4-means update step from an arithmetic mean to a central node of a graph-defined cluster. For each Voronoi cell 5, one induces a subgraph 6 and computes a PageRank vector
7
For undirected graphs, the standard definition recorded in the source is
8
with damping factor 9, where 0 is the degree in 1. The new seed is then
2
Although no explicit single energy function is written down, the algorithm is described as alternately minimizing within-cluster distance in the assignment step and maximizing cluster-center centrality in the update step (Hajij et al., 2020).
The mesh-specific interpretation is direct: triangulated meshes enter as the graph 3 whose vertices are mesh vertices and edges are the mesh edges, possibly weighted by edge length, and 4 is the geodesic distance along the mesh. A naive Voronoi construction computes shortest-path distances from each seed to all vertices in each iteration; if 5 and 6, the stated cost is 7 via Dijkstra. For very large meshes, the “heat method” can be used in 8 per seed to approximate geodesics, and multi-source BFS is available when edges are unweighted. PageRank on each induced subgraph can be computed by power iteration in 9, so that for 00 and sparse meshes, each iteration is roughly 01 (Hajij et al., 2020).
The empirical results reported for meshes are qualitative rather than metric-based. The examples cited are a human head mesh segmented into 02 regions and a mechanical part segmented into 03 logical components. The resulting clusters are described as visually coherent and as respecting mesh geometry more robustly than naïve 04-means on vertex positions. No quantitative “purity” or “IoU” numbers are provided, but convergence is reported to occur in under 05 iterations, and geodesic-based Voronoi plus PageRank update is said to yield sharp, stable boundaries at concavities. The update to a topologically central vertex avoids the “mean–falling-off” problem in which an arithmetic centroid lies outside a cluster’s graph-connected component (Hajij et al., 2020).
5. Balanced K-means for mesh partitioning at scale
Balanced 06-means is introduced in the context of mesh partitioning for parallel numerical simulations. The stated comparison is that established graph-based partitioning tools yield a high solution quality, but their scalability is limited, whereas geometric approaches usually scale better, but their solution quality may be unsatisfactory for non-trivial mesh topologies. The method is the core of the partitioning algorithm Geographer, and bootstrapping of initial centers is performed with space-filling curves, leading to fast convergence of the subsequent balanced 07-means algorithm (Looz et al., 2018).
The key modification is the soft balancing mechanism based on the influence factor 08. Oversized clusters are penalized during assignment, and undersized clusters are relatively favored. The assign-and-balance routine initializes upper and lower bounds, computes local cluster sizes, performs an all-reduce to obtain global sizes, tests whether
09
and otherwise updates each influence by
10
with clamping to 11. The outer loop recomputes new centers by a global weighted average and tests convergence of center motion (Looz et al., 2018).
The implementation is explicitly parallel MPI. Each rank holds a contiguous block of points 12; centers and 13 are globally replicated on each rank; assignment is fully data-parallel on local points; a single all-reduce over 14 values communicates block weights after each assign-and-balance sweep; and another all-reduce communicates per-cluster coordinate sums to form the new 15. Running time per iteration is given as roughly
16
plus the cost of two global reductions of length 17 (Looz et al., 2018).
The reported empirical range is extensive: 2D benchmark meshes from the 10th DIMACS challenge, 2.5D climate meshes, 3D ALEA testcases, and Delaunay triangulations from 18 to 19 vertices. The metrics are edge cut, max and total communication volume, block diameter, measured SpMV communication time, and total partitioning time. The aggregate findings state that on 2D DIMACS meshes, Geographer’s total communication volume is approximately 20 lower than the best Zoltan method; on 2.5D and 3D meshes, it still improves total communication volume by 21–22; SpMV communication time is lowest for Geographer in all classes; edge cut is within 23–24 of the best competitor; and, for a 25 billion-node Delaunay mesh with 26, Geographer takes approximately 27 whereas Zoltan–MJ takes 28 but gives 29–30 worse communication volume. The method is also reported to exhibit near-perfect weak scaling to approximately 31 ranks and graceful degradation up to 32 (Looz et al., 2018).
6. Evaluation protocols, limitations, and extensions
The three approaches are evaluated with markedly different protocols. For non-rigid mesh clustering, the stated experimental blueprint proposes standard 33-mesh benchmarks such as FAUST and TOSCA, evaluation by clustering accuracy after best-permutation matching, normalized mutual information, and adjusted Rand index, comparison against standard K-means on raw vertices, iterative closest point plus K-means, and spectral embedding plus K-means, and qualitative inspection of learned centroids 34 and per-cluster warp fields 35. The same blueprint specifies the expected outcome that ST K-Means separates identity/pose classes more cleanly than rigid-only baselines (Cosentino et al., 2022).
For PageRank-based mesh segmentation, the evidence presented is qualitative: visually coherent regions, sharp boundaries at concavities, and convergence in a small number of iterations, but no quantitative “purity” or “IoU” numbers (Hajij et al., 2020). For balanced geometric partitioning, evaluation is explicitly system-oriented, with communication volume, edge cut, block diameter, SpMV communication time, and partitioning time as the primary metrics (Looz et al., 2018).
The limitations are also method-specific. Spatial Transformer K-Means is stated to have nonconvexity, scalability issues when 36, 37, and 38 are large, and a risk of over-warping when 39 or 40 are mis-set, so that warps may “cheat” and collapse distinct shapes. Its listed extensions are hierarchical ST K-Means, replacing TPS with deformation-graph or neural ODE diffeomorphisms, multi-scale coarse-to-fine landmark grids, and graph-smoothing regularizers in 41 (Cosentino et al., 2022). The PageRank formulation does not provide an explicit single objective function and does not report quantitative mesh-segmentation scores (Hajij et al., 2020). Balanced 42-means notes that the SFC-based global sort and subsequent redistribution can dominate when 43, and that extremely nonuniform point distributions require careful tuning of the influence update rate and erosion (Looz et al., 2018).
A recurrent misconception is that mesh clustering requires an arithmetic centroid in the ambient coordinate space. The graph formulation explicitly rejects that premise because, on a general graph or mesh, there is no vector mean; the non-rigid formulation shows that centroids can instead be defined after alignment in the warped space; and the balanced partitioning formulation treats the centroid as only one component of a constrained partitioning objective. This suggests that “K-means cluster meshes” is best understood not as a single algorithm, but as a class of Lloyd-type procedures whose mesh awareness is introduced through deformation invariance, geodesic structure, graph centrality, or balance constraints.