Unsupervised learning
Evaluating Unsupervised Structure Without Labels
Build an evidence portfolio for clustering and embeddings when no authoritative answer key exists.
By the end you can
- Distinguish internal, external, stability, and task-based evaluation
- Interpret silhouette and related geometric indices within their assumptions
- Design resampling and perturbation checks for unsupervised outputs
- Write a bounded conclusion that separates evidence from interpretation
Key idea
Do not tune on the same human review forever
Revising features and cluster counts until the experts like the result overfits the expert panel. The final interpretation then reproduces the reviewers' expectations instead of revealing robust structure. Separate exploratory review from a later confirmation sample, and record the decisions made after each round, so that evaluation stays an honest process.
Numeric stability has a limit of its own, and it is a proved one. Ben-David and two co-authors showed in 2006 that “for large sample size, stability is fully determined by the behavior of the objective function which the clustering algorithm is aiming to minimize”. The consequence they draw is flat: “If the objective function has a unique global minimizer, the algorithm is stable, otherwise it is unstable”. So a stable answer certifies that your objective has one clear winner on this data. It does not certify that the winner corresponds to real groups. Ties in the objective produce instability whether or not the data contains groups. Stability reports on the objective, not on the data's real groups.
Human judgment can be overfit just like a numeric metric.
The average silhouette of 0.88 that one outlier paid for
An average silhouette of 0.88 sounds like a clean partition. It can also be eight objects, one of them a distant outlier, and nothing else going on. Peter J. Rousseeuw printed that example in 1987, in the paper that introduced the silhouette. The outlier sits alone, where his own convention sets s(i)=0 for a singleton cluster. Every remaining object is so far from that lone point that its silhouette approaches the maximum. The overall average silhouette width lands at 0.88 — in general (n-1)/n. Nothing about the other objects has to form a real group for that number to appear.
“Therefore, one should never merely accept a high overall average silhouette width at its face value, but also look at the graphical output itself to find out what caused it.” — Peter J. Rousseeuw, 1987
The score measured geometry under the chosen distance. It did not measure whether the partition supported a decision, represented stable behavior, or aligned with available interventions. A team that selects the clustering with the highest silhouette has selected for that geometry and for nothing else — including for whichever artifact happened to produce it.
Unsupervised evaluation needs several forms of evidence because no single metric defines usefulness.
Example
Why several verdicts can disagree
Disagreement is diagnostic. Each measure sees a different property, and the published record contains cases where the measures split on the same data and the split was the finding.
- Gut enterotypes: Arumugam and colleagues reported in Nature in 2011 that “We identified three robust clusters (enterotypes hereafter) that are not nation or continent-specific”. The count came from an index that presumes counting is the right operation: “Optimal number of clusters was estimated using Calinski-Harabasz (CH) index. We used the silhouette validation technique for assessing the robustness of clusters.” In 2013 Koren and colleagues re-analysed HMP 16S rRNA data, 16 further studies and HMP/MetaHIT shotgun data, comparing prediction strength, silhouette index and Calinski-Harabasz across five distance metrics. The three scores gave inconsistent answers on the same data. Every silhouette value published in the enterotype paper was 0.25 or lower. Their own conclusion was that “In most body sites, we observed smooth abundance gradients of key genera without discrete clustering of samples”. Their summary of the field is the sentence to keep: “At the present time, there is no community consensus on how to define an enterotype, and two researchers with the same data can easily come to opposite conclusions regarding the presence of enterotypes if they apply different criteria.”
- Document topics: the topic model that scored best on predictive log likelihood scored worst with human readers. Chang and four co-authors fit pLSI, LDA and CTM at K = 50, 100 and 150 on 8,447 New York Times articles from 1987-2007 and 10,000 English Wikipedia articles, then ran word-intrusion and topic-intrusion tasks on Amazon Mechanical Turk. That was 2009. The regression lines between predictive likelihood and both human measures sloped downward. Their abstract puts it in one line: “Surprisingly, topic models which perform better on held-out likelihood may infer less semantically meaningful topics.” Lau and colleagues, reusing that annotation data in 2014, restate it as “Contrary to expectation, they found that perplexity correlates negatively with topic interpretability”.
- Cell populations: stability is not a property of a solution but of each cluster inside it. Christian Hennig's cluster-wise bootstrap, published in 2007, exists because “In the same clustering, some clusters may be very stable and others may be extremely unstable.” A cluster that lines up with a known marker label can be precisely the one that dissolves under batch-balanced resampling while its neighbours survive. That points at technical confounding, not at biology.
- Anomaly regimes: the measure that best recovers the clusters you already know about can be the one that misses the rare cluster you care about. Koren and colleagues report that prediction strength “performs better than SI in recovering known enterotypes in synthetic datasets” while “PS may have difficulty identifying clusters represented by few samples”. A stable rare cluster may equally be a sensor calibration artifact rather than an operational state worth monitoring. Neither the index nor its documented blind spot can tell you which case you are in.
- Image embeddings: what reviewers judge on screen is not the space the model was fitted in. Chari and Pachter measured, across several single-cell datasets, correlations of cell-type neighbour rankings falling to 0.4 or below in two-dimensional t-SNE and UMAP embeddings — at least 33% lower than in the higher-dimensional PCA space, sometimes with reversed sign — while max/min distance ratios inflated 4- to 200-fold. That was 2023. A projection that looks less separated can still support better retrieval, and a projection that looks convincing can be displaying distances that are not in the data.
Visual
An evidence portfolio for unsupervised results
Each layer answers a different question. Each can disagree with the others. Stability is the layer most often described in the vaguest terms, so it is worth seeing what a published pass mark actually looks like. Prediction strength, from Tibshirani and Walther in 2005, validates a clustering by treating it as a supervised classification problem on held-out data. The reference manual for the R package fpc states the rule in one sentence: “The prediction strength is defined according to Tibshirani and Walther (2005), who recommend to choose as optimal number of cluster the largest number of clusters that leads to a prediction strength above 0.8 or 0.9.”
Koren and colleagues adopted it over the silhouette index as their primary absolute measure in the enterotype meta-analysis: “we recommend using at least one absolute measure (specifically, we recommend PS)”. That is what every layer of the portfolio should look like when it is written down. A named method, a number, a published threshold, and a stated blind spot. A layer that cannot be reported in that form is an impression, not evidence.
Geometric fit
Internal indices assess compactness, separation, density, or reconstruction under the fitted representation.
Stability
Resampling, perturbation, and repeated initialization test whether the result survives plausible variation.
External correspondence
Known labels or metadata can reveal alignment without becoming the objective automatically.
Interpretability
Experts inspect exemplars, profiles, boundaries, and contradictions in the proposed structure.
Task utility
Downstream decisions, retrieval, alert yield, or experimentation determine practical value.
A credible conclusion states which evidence layers support it and which remain unresolved.
Steps
Run a multi-evidence validation protocol
An evaluation report should expose tradeoffs rather than hide them behind one ranking. Step 3 is the step that usually stays abstract, so make it a computation with a cut-off. Christian Hennig's cluster-wise bootstrap, published in 2007, scores each individual cluster by the mean Jaccard similarity between it and the most similar cluster found in bootstrap resamples. A value at or below 0.5 marks a dissolved cluster. The thresholds above it are published with the implementation, the clusterboot() function of the R package fpc: “Generally, a valid, stable cluster should yield a mean Jaccard similarity value of 0.75 or more”, and “'Highly stable' clusters should yield average Jaccard similarities of 0.85 and above.”
Most real results land in the band between, and the manual is explicit about what that band means: “Between 0.6 and 0.75, clusters may be considered as indicating patterns in the data, but which points exactly should belong to these clusters is highly doubtful.” Report one number per cluster instead of one number per solution. That is the point of the procedure. It is what lets step 6 bound the claim to the two clusters that survived rather than to the partition as a whole.
1. Define intended use
State what the grouping, embedding, or score will change for a user.
2. Select geometric diagnostics
Choose indices compatible with the algorithm’s structure and distance assumptions.
3. Test stability
Repeat fitting across seeds, samples, feature perturbations, and plausible preprocessing choices.
4. Inspect examples
Review central, boundary, unstable, rare, and contradictory observations.
5. Measure task impact
Evaluate whether the output improves a downstream decision, workflow, or investigation.
6. Bound the claim
Report what remains unknown, including alternative representations and unresolved subgroups.
Analogy
Judging a restaurant with several inspectors
Kitchen hygiene, repeat customer behavior, menu coherence, staff workflow, and profit are five different verdicts on the same restaurant. One score can be excellent while the operation as a whole remains unsuitable.
The analogy breaks in one place, and the break is the important part. Changing a restaurant rating method rarely changes the restaurant itself. Changing a representation can transform the structure being evaluated. Chari and Pachter measured how large that transformation is. Across several single-cell datasets, the average Jaccard distance between each cell's 30 nearest neighbours in a two-dimensional t-SNE or UMAP embedding and its 30 nearest neighbours in ambient space stayed consistently above 0.7. That was 2023. Their abstract states the general case — “extreme dimension reduction, from hundreds or thousands of dimensions to 2, inevitably induces significant distortion of high-dimensional datasets” — and they price the alternative: “The Johnson–Lindenstrauss lemma on the optimality of linear embedding [45–47] shows that preservation of pairwise distances with a margin of error of at most 20% for a modestly sized dataset of 10,000 cells would require at least 1,842 dimensions [48].”
Theory reaches the same barrier from the other side. Snoeck and colleagues at Columbia University open a 2025 paper by asking “To what extent is it possible to visualize high-dimensional data in two- or three-dimensional plots?” Their answer is that for most graphs, preserving neighborhood structure requires dimension growing as Theta(log n). Constant-dimensional plots cannot reliably preserve which points are neighbours as datasets grow. The inspector looking at the scatterplot is inspecting a different kitchen from the one the clustering was fitted in.
Use multiple inspectors because each score has a blind spot.
Comparison
What common clustering scores actually reward
Internal indices are useful diagnostics. But their preferences can favor the wrong structure for a domain, and their definitions carry conditions that are easy to lose in a leaderboard. The silhouette is the clearest case, because its author published the formula and the caveat together. Rousseeuw defined s(i) from the within-cluster dissimilarity a(i) and the nearest-other-cluster dissimilarity b(i) as (b(i)-a(i))/max{a(i),b(i)}. The construction requires more than one cluster, and he set s(i)=0 for a singleton cluster by convention.
Anyone calling the metric today gets the same limits from the scikit-learn reference for silhouette_score: “The Silhouette Coefficient for a sample is (b - a) / max(a, b)”, “The best value is 1 and the worst value is -1”, “Values near 0 indicate overlapping clusters”, and “Note that Silhouette Coefficient is only defined if number of labels is 2 <= n_labels <= n_samples - 1”. Every one of those statements describes the geometry of a distance matrix. None of them describes whether the groups mean anything. That is why the same number can be produced by well-separated populations and by a single distant point, and why the silhouette, Davies–Bouldin, Calinski–Harabasz and external-agreement panels below have to be read as four different questions rather than four attempts at one.
Silhouette coefficient
Compares within-cluster distance with the nearest alternative cluster.
- Ranges from negative values to one
- Assumes the chosen distance is meaningful
- Often favors compact separated groups
- Is undefined for a single cluster
Davies–Bouldin index
Averages similarity between each cluster and its most similar competitor.
- Lower values are preferred
- Uses cluster scatter and separation
- Can reward spherical summaries
- Depends on centroid-like descriptions
Calinski–Harabasz score
Contrasts between-cluster dispersion with within-cluster dispersion.
- Higher values are preferred
- Can increase with certain cluster counts
- Uses variance-style geometry
- Does not validate domain meaning
External agreement
Compares a partition with a reference categorization when one exists.
- Includes ARI and mutual-information variants
- Can reveal correspondence or mismatch
- Does not prove the reference is the right target
- Needs chance correction and class-awareness
Evaluation should preserve uncertainty, not erase it
The absence of labels does not make evaluation impossible. It changes the burden of proof from matching one answer key to assembling convergent evidence. A mature report can conclude that a structure is stable but not useful, useful but unstable, or promising only within a defined population. Those narrower conclusions support better decisions.
Agreement scores need a baseline before they can be read, and the Rand index has none. Vinh and colleagues show that its baseline “can be high and does not take on a constant value”, drifting with the number of clusters. Hubert and Arabie's correction fixes it: “The ARI is bounded above by 1, and equals 0 when the RI equals its expected value”.
That is the shape of an honest unsupervised report. Each measure named, each baseline stated, and the disagreements left visible rather than resolved by choosing a favourite. When Koren and colleagues write that “Together these results indicate that these different clustering methodologies can yield inconsistent results”, they are reporting a property of the data and the measures, not a defect in the write-up.
A portfolio of imperfect evidence is stronger than one overinterpreted score.
Key takeaways
- Unsupervised evaluation should combine geometry, stability, interpretation, and task utility. In the enterotype meta-analysis, prediction strength, silhouette index and Calinski-Harabasz gave inconsistent answers on the same data across five distance metrics.
- Internal indices reward specific shapes and depend on the chosen representation: Rousseeuw's own eight-object example reaches an average silhouette width of 0.88, in general (n-1)/n, on the strength of a single distant outlier.
- External labels can inform evaluation without becoming an unquestioned target, and raw agreement needs chance correction first. The Rand index baseline “can be high and does not take on a constant value”, while the ARI is bounded above by 1 and equals 0 at its expected value.
- Stability is measured per cluster, not per solution: Hennig's cluster-wise bootstrap treats a mean Jaccard similarity at or below 0.5 as dissolved, 0.75 or more as valid and stable, and 0.85 and above as highly stable.
- Human review also needs separation between exploration and confirmation, and human verdicts can invert the metric: in Chang and colleagues' 2009 study, the topic model with the best held-out likelihood scored worst with readers on word- and topic-intrusion tasks.
- A bounded conclusion can acknowledge stable but useless or useful but unstable results, and it cannot rest on a two-dimensional picture: neighbour-set Jaccard distances between embedding and ambient space stayed consistently above 0.7 in Chari and Pachter's measurements.