Abstract
Clustering algorithms frequently produce more partitions than naturally exist in data, a phenomenon known as over-clustering. We present a scalable, domain-independent framework for merging these partitions by estimating the Total Variation Distance (TVD) between them. By training a single neural network to solve all pairwise classification tasks in parallel, we efficiently identify statistically indistinguishable clusters. Our key innovation is an architectural optimization that reduces memory requirements from $O(k^2)$ to $O(k)$, allowing the method to scale to tens of thousands of clusters on a single GPU.
Introduction
Unsupervised clustering is a fundamental task in data analysis, yet many algorithms tend to over-partition data, splitting single semantic categories into multiple subgroups. Merging these groups typically requires domain-specific similarity measures or heuristics. This paper proposes a universal principle grounded in statistical discriminability: if a powerful classifier cannot distinguish between two clusters, they likely belong to the same underlying distribution. This approach leverages the Total Variation Distance (TVD) as a robust, domain-agnostic metric for cluster similarity.
Methodology
The core idea leverages the relationship between Bayes accuracy—the theoretical upper bound of classification performance—and TVD. For any two clusters $i$ and $j$, the TVD is directly proportional to the Bayes accuracy of a binary classifier trained to distinguish between them.
Scalable Parallel Estimation
A naive implementation would require training $k(k-1)/2$ separate classifiers for $k$ clusters, which is computationally prohibitive for large datasets. We address this by training a single neural network that outputs a vector of $k$ scores, $\tilde{f}(x)$. The probability that an observation $x$ belongs to cluster $j$ rather than $i$ is modeled as: $$f(x)_{ij} = \sigma(\tilde{f}(x)_j - \tilde{f}(x)_i)$$
This parameterization reduces the output layer's memory requirement from $O(k^2)$ to $O(k)$. As illustrated in Figure 1, depending on the source cluster, an observation acts as a negative or positive label for different output neurons in the score matrix, allowing all pairwise distances to be estimated simultaneously.
Experimental Evaluation
The framework was tested on ImageNet (using artificial splits and unsupervised DeepCluster partitions) and ModelNet40 (3D point clouds). By employing domain-specific architectures like ResNet for images and PointNet++ for 3D data, the distance measure automatically inherits useful inductive biases like translation or permutation invariance.
Merging Performance
The proposed "Discriminability" method was compared against a strong baseline using Euclidean distance on state-of-the-art unsupervised features. As shown in Figure 2, our method consistently achieves a higher number of correct merges throughout the hierarchical merging process compared to both feature-based and random baselines.
Scalability and Robustness
The $O(k)$ optimization enabled the computation of over $10^8$ pairwise distances for 26,000 initial clusters on a single 11GB GPU—a task that would otherwise require massive memory overhead. Furthermore, the method remains effective even with small cluster sizes (e.g., 50 samples) or significant label noise (up to 30%).
Conclusion
We have introduced a scalable method for merging over-clustered data using neural network-based TVD estimation. By transforming a quadratic parameter problem into a linear one, our framework enables high-fidelity cluster merging at a scale previously unattainable. Future work will investigate incremental updates to the network to further optimize the hierarchical merging process.
Summary updated