Papers
Topics
Authors
Recent
Search
2000 character limit reached

CvxCluster: Convex Clustering & Resource Allocation

Updated 5 July 2026
  • CvxCluster is a family of convex clustering methods that use fusion penalties to derive continuous fusion paths and guarantee a unique global minimizer.
  • It employs advanced algorithmic strategies such as ADMM and CARP to efficiently compute regularization paths over large-scale and high-dimensional datasets.
  • A distinct application adapts these convex techniques for cluster resource allocation, achieving significant speed-ups and near-optimal performance in large computing systems.

CvxCluster denotes a family of methods centered on convex clustering: given data points x1,,xnRpx_1,\dots,x_n\in\mathbb R^p, one introduces one centroid uiu_i per observation and estimates all centroids by solving a convex optimization problem that balances fidelity to the data against a fusion penalty on pairwise centroid differences. As the regularization parameter increases from $0$ to \infty, the solution traces a continuous fusion path from nn singleton clusters to one cluster, yielding a hierarchical structure without spurious local minima and with a unique global minimizer (Chi et al., 11 Jul 2025, Weylandt et al., 2019). In the cited literature, the same name is also used for a distinct two-stage convex method for cluster resource allocation in computing systems (Nnorom et al., 2 May 2026).

1. Canonical optimization formulations

The basic convex clustering problem introduces a matrix URn×pU\in\mathbb R^{n\times p} with rows u1,,unu_1,\dots,u_n and solves

minURn×p12i=1nxiui22+γi<jwijuiujq,\min_{U\in\mathbb R^{n\times p}} \frac12\sum_{i=1}^n \|x_i-u_i\|_2^2 +\gamma\sum_{i<j} w_{ij}\,\|u_i-u_j\|_q,

where γ0\gamma\ge 0 is the regularization parameter, wij0w_{ij}\ge 0 are nonnegative fusion weights, and uiu_i0 is typically uiu_i1, though uiu_i2 and uiu_i3 also appear in the literature. The first term is a least-squares fidelity term, and the second is a group-lasso–style fusion penalty that shrinks differences uiu_i4 toward zero (Chi et al., 11 Jul 2025).

This formulation has a simple path interpretation. When uiu_i5, each centroid equals its observation, so the solution consists of uiu_i6 clusters. As uiu_i7, all centroids collapse to the grand mean uiu_i8. Intermediate values produce partial fusions, and the ordered sequence of fusions defines a fusion path that can be viewed as a continuous dendrogram (Chi et al., 11 Jul 2025).

A closely related weighted total-variation formulation replaces the uiu_i9 fusion norm by an $0$0 norm,

$0$1

In Xu et al., the weights are chosen by a Gaussian kernel,

$0$2

and one often sparsifies $0$3 by keeping only the $0$4 nearest neighbors of each point. This weighted-TV model was proposed to revisit total variation based convex clustering and to sharpen exact clustering guarantees for general data (Xu et al., 2018).

Across formulations, the weights $0$5 determine which pairs are encouraged to fuse first. Common choices in the cited literature include uniform weights, inverse-distance weights, Gaussian-kernel weights, $0$6-nearest-neighbor graphs, minimum spanning trees, MST + $0$7-NN graphs, and disjoint MSTs. Sparse graphs with $0$8 both reduce computational cost and often improve clustering quality (Chi et al., 11 Jul 2025).

2. Algorithmic frameworks and path computation

Fast solvers usually begin from the equality-constrained splitting

$0$9

This reformulation isolates the nonsmooth fusion penalty in \infty0, whose proximal map is group soft-thresholding. It underlies ADMM, AMA, semismooth-Newton ALM, warm-started path algorithms, compression schemes, adaptive sieving, and stochastic or incremental methods (Chi et al., 11 Jul 2025).

In ADMM-based solvers, the \infty1-step solves a linear system involving the graph Laplacian, the \infty2-step applies proximal shrinkage edgewise, and the dual step updates multipliers. In AMA, the dual update becomes a projection onto norm balls and can be accelerated to \infty3. SSNAL uses an augmented-Lagrangian method with a semismooth Newton inner solve and empirically achieves superlinear convergence in a few outer steps (Chi et al., 11 Jul 2025).

Weylandt, Nagorski, and Allen introduced Algorithmic Regularization for convex clustering and, from it, the CARP algorithm, “Convex Clustering via Algorithmic Regularization Paths.” The central modification is to replace “iterate ADMM to convergence at each \infty4” by exactly one ADMM update, then increase the regularization parameter by a multiplicative factor \infty5, then take one more update. With \infty6, \infty7, \infty8, and \infty9 the edge-difference operator, CARP repeatedly performs one nn0-update, one proximal nn1-update, one dual nn2-update, and then sets nn3. Back-tracking can be added when more than one fusion event is detected at once, so that fusion ordering is exact or near-exact for dendrogram construction (Weylandt et al., 2019).

The computational motivation is explicit. Classical convex clustering path computation requires many inner iterations at each regularization value. CARP trades exactness at any single nn4 for an ultra-fine regularization grid. On genomics and text data sets, CARP was reported to deliver over a 100-fold speed-up over existing methods while attaining a finer approximation grid than standard methods; in the detailed benchmarks, standard ADMM/AMA on 100 nn5-grid points took 6–20 hours, whereas CARP with nn6 finished in under a minute and recovered approximately 95% of fusion events, and CARP with nn7 finished in about 5 minutes and recovered 100% of tree events (Weylandt et al., 2019).

A distinct algorithmic line is the proximal-distance method. There, one introduces auxiliary variables nn8, replaces the hard linear constraint by a distance-to-constraint penalty, majorizes the resulting objective, and alternates explicit centroid updates with shrinkage updates for nn9. The associated software separates parameters, accommodates missing data, supports prior information on relationships, and is implemented in C++ with OpenCL on ATI and NVIDIA GPUs (Chen et al., 2014).

3. Theoretical properties and recovery guarantees

The foundational theoretical properties of convex clustering are consequences of convexity and strong convexity. The objective is free of spurious local minima, the minimizer URn×pU\in\mathbb R^{n\times p}0 is unique, and the solution is jointly continuous in the data URn×pU\in\mathbb R^{n\times p}1, the tuning parameter URn×pU\in\mathbb R^{n\times p}2, and the weights URn×pU\in\mathbb R^{n\times p}3. The survey literature also states a URn×pU\in\mathbb R^{n\times p}4-Lipschitz stability property in the data: URn×pU\in\mathbb R^{n\times p}5 These properties distinguish convex clustering from nonconvex procedures such as URn×pU\in\mathbb R^{n\times p}6-means (Chi et al., 11 Jul 2025).

Perfect recovery results are formulated as separation conditions. For uniform weights, the survey gives

URn×pU\in\mathbb R^{n\times p}7

and states that exact recovery occurs whenever URn×pU\in\mathbb R^{n\times p}8. With adaptive weights, corresponding bounds URn×pU\in\mathbb R^{n\times p}9 can permit recovery even when the uniform-weight interval is empty (Chi et al., 11 Jul 2025).

Xu et al. sharpened this line of analysis for weighted total variation based convex clustering. In the deterministic setting, if two clusters satisfy

u1,,unu_1,\dots,u_n0

then one can choose u1,,unu_1,\dots,u_n1 and u1,,unu_1,\dots,u_n2 sufficiently large so that the unique minimizer exactly recovers cluster membership. For general u1,,unu_1,\dots,u_n3 clusters, if all cluster means are distinct in each coordinate and

u1,,unu_1,\dots,u_n4

then there again exist u1,,unu_1,\dots,u_n5 so that the minimizer exactly recovers all membership. Probabilistic exact-recovery statements are also given for the stochastic-ball model and a Gaussian-mixture model (Xu et al., 2018).

The theoretical literature also records important limitations. Without strong separation, convex clustering can fail; the survey cites the case of two “nearby balls” failing to split correctly. It also states that the method is not outlier-robust under an u1,,unu_1,\dots,u_n6 loss unless the loss is replaced by a resistant alternative such as Huber. These negative results temper overly broad claims about universal recovery (Chi et al., 11 Jul 2025).

For CARP specifically, the main informal result is a pathwise approximation theorem: as the step-size u1,,unu_1,\dots,u_n7 and the initial u1,,unu_1,\dots,u_n8, the CARP path u1,,unu_1,\dots,u_n9 converges in Hausdorff distance to the exact primal and dual solution path, under easily checked non-data-dependent assumptions consisting of strong convexity of the loss, Lipschitz continuity of the solution path, and linear convergence of the underlying ADMM iteration (Weylandt et al., 2019).

4. High-dimensional variants, tuning, and implementation

Convex clustering in high dimensions can be distorted by uninformative features. Sparse Convex Clustering addresses this by augmenting the convex clustering objective with an adaptive group-lasso penalty on feature columns: minURn×p12i=1nxiui22+γi<jwijuiujq,\min_{U\in\mathbb R^{n\times p}} \frac12\sum_{i=1}^n \|x_i-u_i\|_2^2 +\gamma\sum_{i<j} w_{ij}\,\|u_i-u_j\|_q,0 When minURn×p12i=1nxiui22+γi<jwijuiujq,\min_{U\in\mathbb R^{n\times p}} \frac12\sum_{i=1}^n \|x_i-u_i\|_2^2 +\gamma\sum_{i<j} w_{ij}\,\|u_i-u_j\|_q,1, one recovers convex clustering; when minURn×p12i=1nxiui22+γi<jwijuiujq,\min_{U\in\mathbb R^{n\times p}} \frac12\sum_{i=1}^n \|x_i-u_i\|_2^2 +\gamma\sum_{i<j} w_{ij}\,\|u_i-u_j\|_q,2, the group penalty enforces global sparsity of entire features. Wang et al. developed both sparse ADMM and sparse AMA solvers, an unbiased estimator of degrees of freedom, and a stability-based tuning criterion over a two-dimensional minURn×p12i=1nxiui22+γi<jwijuiujq,\min_{U\in\mathbb R^{n\times p}} \frac12\sum_{i=1}^n \|x_i-u_i\|_2^2 +\gamma\sum_{i<j} w_{ij}\,\|u_i-u_j\|_q,3 grid (Wang et al., 2016).

The stability-based criterion repeatedly bootstraps the rows of minURn×p12i=1nxiui22+γi<jwijuiujq,\min_{U\in\mathbb R^{n\times p}} \frac12\sum_{i=1}^n \|x_i-u_i\|_2^2 +\gamma\sum_{i<j} w_{ij}\,\|u_i-u_j\|_q,4, fits SCC on paired bootstrap samples, extracts cluster assignments by fusing identical rows, computes a Rand index, and chooses minURn×p12i=1nxiui22+γi<jwijuiujq,\min_{U\in\mathbb R^{n\times p}} \frac12\sum_{i=1}^n \|x_i-u_i\|_2^2 +\gamma\sum_{i<j} w_{ij}\,\|u_i-u_j\|_q,5 to maximize average agreement. Theoretical results in the same work include finite-sample prediction error bounds under sub-Gaussian noise and variable-selection consistency for zero-columns in high-dimensional regimes (Wang et al., 2016).

Practical tuning guidance is consistent across the cited papers. Weight matrices are usually sparsified by minURn×p12i=1nxiui22+γi<jwijuiujq,\min_{U\in\mathbb R^{n\times p}} \frac12\sum_{i=1}^n \|x_i-u_i\|_2^2 +\gamma\sum_{i<j} w_{ij}\,\|u_i-u_j\|_q,6-nearest neighbors; Gaussian-kernel weights or inverse-distance weights are common; warm-starts along a regularization path are standard; and minURn×p12i=1nxiui22+γi<jwijuiujq,\min_{U\in\mathbb R^{n\times p}} \frac12\sum_{i=1}^n \|x_i-u_i\|_2^2 +\gamma\sum_{i<j} w_{ij}\,\|u_i-u_j\|_q,7 may be selected by hold-out validation, stability selection, or information criteria using an unbiased degrees-of-freedom estimate (Chi et al., 11 Jul 2025, Wang et al., 2016).

Implementation ecosystems reflect two complementary emphases. The clustRviz package implements CARP and dynamic visualization; its carp() interface returns minURn×p12i=1nxiui22+γi<jwijuiujq,\min_{U\in\mathbb R^{n\times p}} \frac12\sum_{i=1}^n \|x_i-u_i\|_2^2 +\gamma\sum_{i<j} w_{ij}\,\|u_i-u_j\|_q,8-, minURn×p12i=1nxiui22+γi<jwijuiujq,\min_{U\in\mathbb R^{n\times p}} \frac12\sum_{i=1}^n \|x_i-u_i\|_2^2 +\gamma\sum_{i<j} w_{ij}\,\|u_i-u_j\|_q,9-, and γ0\gamma\ge 00-paths, regularization values, and dendrogram objects, and an analogous cbass() function supports convex bi-clustering with row and column dendrograms and a clustered heatmap (Weylandt et al., 2019). The scvxclustr package implements Sparse Convex Clustering (Wang et al., 2016). Earlier CvxCluster software built around the proximal-distance algorithm additionally accommodates missing data by majorizing unobserved entries with the current iterate and supports composite distances that combine multiple side-information metrics in the weight definition (Chen et al., 2014).

5. Visualization, applications, and empirical behavior

One of the stated impediments to wider adoption of convex clustering was its lack of compelling visualizations. CARP addresses this by producing a fine solution grid that supports a convex clustering-based dendrogram and dynamic path-wise visualization. In the clustRviz framework, one can draw dendrograms with merge heights equal to γ0\gamma\ge 01, animate the projected trajectories of γ0\gamma\ge 02 on the first two or three principal components, and link the evolving dendrogram to a scatter-path display. These dynamic visualizations are implemented using htmlwidgets and D3 (Weylandt et al., 2019).

The broader applications catalog is extensive. The survey literature lists biclustering and tensor clustering, clustered regression or network lasso, sparse convex clustering, integration with PCA, LLE, and CCA, spatial neuroscience, genomics, market segmentation, image segmentation, and network smoothing plus clustering (Chi et al., 11 Jul 2025). In bioinformatics, hierarchical clustering has been visually attractive but prone to false inferences in the presence of outliers and noise; convex clustering was presented as preserving the visual appeal of hierarchical clustering while ameliorating those problems (Chen et al., 2014).

Illustrative biological studies in the proximal-distance CvxCluster software include breast-cancer transcriptome clustering, global human genetic diversity using HGDP, and European population structure using POPRES. In the breast-cancer data, the path recovered two stable cluster centers separating ER-positive and ER-negative tumors, with a few outliers appearing naturally as singleton centroids before coalescing. In the population-genetics examples, composite genetic plus geographic distances yielded continental and intracontinental structures that merged in geographic or migration-consistent order (Chen et al., 2014).

Empirical comparisons in the weighted-TV line show strong performance on synthetic and real datasets. Xu et al. report that CvxCluster slightly beats Lloyd’s and γ0\gamma\ge 03-means++ on Gaussian mixtures and is markedly superior on a non-convex “two-circles” example, where CvxCluster achieves Rand γ0\gamma\ge 04 with zero standard deviation while Lloyd’s and γ0\gamma\ge 05-means++ remain near γ0\gamma\ge 06. On Iris, AR-face, Libras movement, and Leaf, CvxCluster is described as either top-ranked or tied against Lloyd’s γ0\gamma\ge 07-means, γ0\gamma\ge 08-means++, single-linkage, and average-linkage (Xu et al., 2018).

In high-dimensional settings with many irrelevant features, the sparse variant is materially different from ordinary convex clustering. In the reported simulations, standard convex clustering broke down when γ0\gamma\ge 09, whereas SCC maintained Rand approximately wij0w_{ij}\ge 00–wij0w_{ij}\ge 01 with low false-positive and false-negative rates for feature selection; on LIBRAS hand movement, SCC with 13 selected features achieved Rand approximately wij0w_{ij}\ge 02, compared with approximately wij0w_{ij}\ge 03 for convex clustering using all 90 features and approximately wij0w_{ij}\ge 04 for wij0w_{ij}\ge 05-means (Wang et al., 2016).

6. CvxCluster as a two-stage cluster resource allocator

In a separate systems literature, CvxCluster names a method for cluster resource allocation rather than data clustering. The starting point is a mixed-integer placement model with binary decision variables wij0w_{ij}\ge 06 indicating whether task wij0w_{ij}\ge 07 is placed on server wij0w_{ij}\ge 08, together with assignment, capacity, and anti-affinity constraints. Because the binary formulation is NP-hard, the method relaxes wij0w_{ij}\ge 09 to uiu_i00, producing a linear program labeled uiu_i01 (Nnorom et al., 2 May 2026).

The dual variables of this LP have a direct interpretation. Multipliers uiu_i02 are the marginal shadow prices of resource uiu_i03 on server uiu_i04, and uiu_i05 are the prices of using one more anti-affinity slot of group uiu_i06 on server uiu_i07. The algorithm then proceeds in two stages. Stage 1 aggregates servers by shape, solves the convex relaxation, and extracts shape-level prices. Stage 2 computes a net utility

uiu_i08

sorts tasks by best net utility, and greedily attempts feasible placements on servers of the preferred shape, falling back to next-best shapes if necessary (Nnorom et al., 2 May 2026).

The reported performance is large-scale. On Azure traces, CvxCluster scales to 100,480 servers under proportional workload growth and sustains arrival rates up to uiu_i09 the baseline trace. It runs uiu_i10 to uiu_i11 faster than a state-of-the-art MIP solver while remaining within uiu_i12 of the optimal objective, and it supports complex constraints such as job anti-affinity, machine types, and GPU servers (Nnorom et al., 2 May 2026). Detailed experiments also report shape-based speedups of uiu_i13–uiu_i14, a throughput of uiu_i15 tasks/s on a uiu_i16-server cluster replaying a uiu_i17-day Azure trace, a uiu_i18 end-to-end throughput advantage over DCM with OR-Tools CP-SAT on a real uiu_i19-node AWS cluster in KWOK mode, and exact objective matches to MIP on all solvable GPU-aware benchmarks while achieving up to uiu_i20 speedup (Nnorom et al., 2 May 2026).

This systems usage shares with convex clustering the central design principle of replacing a hard discrete search with a convex relaxation and then exploiting the resulting structure. A plausible implication is that the name “CvxCluster” now refers not only to convex clustering in statistics, but also to a broader convex-optimization strategy for large, structured cluster-level decision problems.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to CvxCluster.