Abstract
In machine learning, the assumption that more data improves model performance is ubiquitous. This paper challenges this "more is better" dogma in the context of K-means clustering. By analyzing learning curves on synthetic and real-world bioinformatics datasets, we demonstrate that increasing the training set size can lead to a significant deterioration in clustering quality as measured by external validation metrics (ARI, NMI, Purity), even while the internal optimization objective (Minimum Sum-of-Squares) improves. This phenomenon highlights a fundamental mismatch between internal optimization goals and external evaluation metrics in unsupervised learning.
Introduction
The "more is better" dogma is deeply rooted in the machine learning community. While researchers have recently identified "bad" learning curves in supervised tasks like classification or regression, the foundational question—"Does clustering become better with more data?"—has remained largely ignored.
The challenge lies in the nature of unsupervised learning. K-means does not "know" the ground truth; it simply minimizes the Minimum Sum-of-Squares (MSS), or the distance of points to their nearest cluster center. This study investigates whether this internal optimization actually aligns with external measures of quality (like how well the clusters match real-world categories) as the dataset grows. We aim to bridge the gap between theoretical empirical risk minimization and the practical reality of how practitioners evaluate their clusters.
Methods
We employ learning curves, a tool common in supervised learning but rarely used in clustering, to plot clustering performance against the size of the training set used to build the model.
Algorithm and Evaluation
We utilize the standard K-means++ algorithm, running it 100 times per trial to ensure the discovery of a high-quality local or global optimum for the MSS objective. To evaluate performance beyond the internal MSS metric, we use three external validation measures that compare results to ground-truth labels:
- Adjusted Rand Index (ARI)
- Normalized Mutual Information (NMI)
- Purity
For biological validation in gene expression data, we use Gene Ontology (GO) enrichment analysis, which determines if the resulting clusters are biologically meaningful by checking for an overrepresentation of specific gene functions.
Datasets
The study utilizes a mix of high-dimensional real-world data and illustrative synthetic sets:
- Cancer Genome Atlas (TCGA): A massive dataset featuring over 54,000 features across 19 cancer classes.
- Yeast Cycle Dataset: A classic bioinformatics dataset describing expression levels of 6,400 genes.
- Synthetic Datasets (twogauss and oneeye): Two-dimensional datasets designed to visualize why K-means fails. Twogauss features elongated clusters where the optimal MSS solution is perpendicular to the actual class division.
Results
The Objective-Metric Mismatch
The most critical insight is that while the MSS (the internal loss) almost always improves with more data, the actual quality of the clustering (ARI, NMI) can plummet. The algorithm gets better at what it is told to do, but what it is told to do is sometimes the wrong thing for the data at hand.
Structural Deterioration and the "Oneeye" Phenomenon
This deterioration is structural, occurring in expectation over many draws of the data. In the oneeye synthetic dataset, we observe a "dipping" learning curve: performance initially improves, then gets worse as more data forces the cluster centers toward a global MSS optimum that doesn't align with the logical clusters.
Real-World Relevance
This behavior is not merely a theoretical curiosity. Non-monotonic behavior was clearly observed in TCGA cancer subtyping and yeast gene clustering. In several TCGA subproblems, ARI and NMI scores decreased significantly as the training set size increased, even when the MSS continued to improve. For the Yeast Cycle data, the most biologically relevant clusters (via GO enrichment) were often obtained with sample sizes considerably smaller than the full dataset.
Discussion and Future Work
We have empirically demonstrated that "bad" learning curves exist in K-means clustering. This suggests that practitioners should not blindly assume that more data will yield better clusters.
Limitations of this work include its primarily empirical nature. While we have proven these behaviors exist, a mathematical framework to predict when a specific dataset will trigger this behavior is still needed. Future directions include investigating if other clustering methods (like Gaussian Mixture Models) suffer from similar non-monotonicity and developing tools for practitioners to identify if they are in a "less is more" data regime.
Summary updated