CAKE: Confidence in Assignments via K-partition Ensembles
Authors: Aggelos Semoglou, John Pavlopoulos
Organizations: Department of Informatics, Athens University of Economics and Business, Athens, Greece · Archimedes Research Unit, Athena Research Center, Athens, Greece
Clustering is widely used for unsupervised structure discovery, yet it offers limited insight into how reliable each individual assignment is. Diagnostics, such as convergence behavior or objective values, may reflect global quality, but they do not indicate whether particular instances are assigned confidently, especially for initialization-sensitive algorithms like k-means. This assignment-level instability can undermine both accuracy and robustness. Ensemble approaches improve global consistency by aggregating multiple runs, but they typically lack tools for quantifying pointwise confidence in a way that combines cross-run agreement with geometric support from the learned cluster structure. This work introduces CAKE (Confidence in Assignments via K-partition Ensembles), a framework that evaluates each point using two complementary statistics computed over a clustering ensemble: assignment stability and consistency of local geometric fit. These are combined into a single, interpretable score in [0,1]. The theoretical analysis shows that CAKE remains effective under noise and separates stable from unstable points. Experiments on synthetic and real-world datasets indicate that CAKE effectively highlights ambiguous points and stable core members, providing a confidence ranking over instances that can be used for selection or prioritization in downstream clustering workflows.
Figures & tables
(a) Low → high CAKE scores.
(b) Bottom 1% → top 90% CAKE scores
Dataset
Subset
avg ARI
avg AMI
avg ACC
S1
Full
0.879 [0.8785, 0.8791]
0.833 [0.8331, 0.8338]
0.958 [0.9578, 0.9580]
Random
0.879 [0.8790, 0.8790]
0.834 [0.8339, 0.8339]
0.958 [0.9579, 0.9579]
Consensus
0.884 [0.8842, 0.8842]
0.839 [0.8394, 0.8394]
0.960 [0.9596, 0.9596]
C component
0.884 [0.8842, 0.8842]
0.839 [0.8394, 0.8394]
0.960 [0.9596, 0.9596]
S~ component
0.992 [0.9921, 0.9921]
0.983 [0.9827, 0.9827]
0.997 [0.9971, 0.9971]
CAKE(PR)
0.992 [0.9921, 0.9921]
0.983 [0.9827, 0.9827]
0.997 [0.9971, 0.9971]
Table 2: ARI, AMI, ACC (clustering accuracy) averages and t -95% confidence intervals, computed over multiple independent clustering runs with varying random seeds. Results are reported for the full datasets (Full) and their filtered subsets mentioned in § 5.2 . Highest values in bold .
(b) Real datasets: Ir , Bc , Dg , Ng , Fm , Pd , Lt , Sa .
Dataset
Subset
avg Silhouette
avg NMI
CORR (CAKE ∼ ACC)
S1
Full
0.539 [0.5390, 0.5391]
0.834 [0.8332, 0.8339]
0.881
Random
0.546 [0.5460, 0.5460]
0.834 [0.8340, 0.8340]
Consensus
0.539 [0.5389, 0.5389]
0.839 [0.8395, 0.8395]
C component
0.539 [0.5389, 0.5389]
0.839 [0.8395, 0.8395]
S~ component
0.692 [0.6921, 0.6921]
0.983 [0.9828, 0.9828]
CAKE(PR)
0.692 [0.6921, 0.6921]
0.983 [0.9828, 0.9828]
Appendix
Table 7: Average Silhouette and NMI (Normalized Mutual Information) with t -95% confidence intervals and Spearman’s rank correlation of CAKE percentiles with clustering accuracy percentiles. Results are reported for the full datasets (Full) and their filtered subsets mentioned in § 5.2 . Highest values in bold .
Clustering results on filtered datasets
Data
Subset
avg Silhouette
avg NMI
avg ARI
avg AMI
avg ACC
S1
Full
0.486
0.742
0.732
0.742
0.848
Random
0.546
0.833
0.878
0.833
0.958
Consensus
0.581
0.858
0.889
0.858
0.937
C component
0.590
0.864
0.910
0.864
0.959
S~ component
0.632
0.928
0.928
0.928
0.952
Appendix
Table 11: Average Silhouette, NMI, ARI, AMI, and ACC over multiple independent MiniBatchKMeans runs (different random seeds). Results are reported for the full dataset and for subsets selected by the different filtering strategies (random, consensus-agree, C component, S~ component, CAKE(PR) , CAKE(HM) ). Best performance per dataset and metric is shown in bold .
Clustering results on filtered datasets
Data
Subset
avg Silhouette
avg NMI
avg ARI
avg AMI
avg ACC
S1
Full
0.539
0.834
0.879
0.834
0.958
Random
0.546
0.833
0.878
0.833
0.957
Consensus
0.538
0.836
0.881
0.836
0.959
C component
0.538
0.836
0.881
0.836
0.959
S~ component
0.692
0.983
0.992
0.983
0.997
Appendix
Table 12: Average Silhouette, NMI, ARI, AMI, and ACC over multiple independent GMM runs (different random seeds). Results are reported for the full dataset and for subsets selected by the different filtering strategies (random, consensus-agree, C component, S~ component, CAKE(PR) , CAKE(HM) ). Best performance per dataset and metric is shown in bold .
Dataset
Subset
Retained
ARI
AMI
ACC
Bc
Full
569/569
0.663 [0.6558, 0.6698]
0.543 [0.5343, 0.5518]
0.908 [0.9058, 0.9101]
Random
228/569
0.612 [0.6071, 0.6175]
0.484 [0.4786, 0.4892]
0.893 [0.8909, 0.8942]
Consensus
228/569
0.831 [0.8233, 0.8393]
0.730 [0.7139, 0.7469]
0.957 [0.9553, 0.9596]
C component
228/569
0.831 [0.8233, 0.8393]
0.730 [0.7139, 0.7469]
0.957 [0.9553, 0.9596]
S~ component
228/569
0.924 [0.9239, 0.9239]
0.851 [0.8515, 0.8515]
0.987 [0.9868, 0.9868]
CAKE(PR)
228/569
0.924 [0.9239, 0.9239]
0.851 [0.8515, 0.8515]
0.987 [0.9868, 0.9868]
Appendix
Table 13: Adaptive filtering with coverage selected by maximizing the Silhouette score over a fixed grid of retained fractions. For each dataset, the retained size is chosen from the CAKE(HM) ranking, and all competing filtering criteria are then evaluated at the same matched subset size. ARI, AMI, and ACC are reported as means over multiple independent runs, with 95% Student’s t -confidence intervals shown in brackets. The highest reported value for each metric is shown in bold .