[Paper Review] Differentiable Deep Clustering with Cluster Size Constraints
This paper proposes a differentiable deep clustering framework using regularized optimal transport to jointly learn a deep embedding and cluster assignments with explicit cluster size constraints. By reformulating k-means as an optimal transport problem with entropic regularization, the method enables end-to-end training via stochastic gradient descent, achieving state-of-the-art unsupervised accuracy on CIFAR-10 and MNIST without pre-training, outperforming soft-k-means with statistical significance.
Clustering is a fundamental unsupervised learning approach. Many clustering algorithms -- such as $k$-means -- rely on the euclidean distance as a similarity measure, which is often not the most relevant metric for high dimensional data such as images. Learning a lower-dimensional embedding that can better reflect the geometry of the dataset is therefore instrumental for performance. We propose a new approach for this task where the embedding is performed by a differentiable model such as a deep neural network. By rewriting the $k$-means clustering algorithm as an optimal transport task, and adding an entropic regularization, we derive a fully differentiable loss function that can be minimized with respect to both the embedding parameters and the cluster parameters via stochastic gradient descent. We show that this new formulation generalizes a recently proposed state-of-the-art method based on soft-$k$-means by adding constraints on the cluster sizes. Empirical evaluations on image classification benchmarks suggest that compared to state-of-the-art methods, our optimal transport-based approach provide better unsupervised accuracy and does not require a pre-training phase.
Motivation & Objective
- To develop a fully differentiable deep clustering method that jointly optimizes the embedding network and cluster assignments.
- To incorporate explicit cluster size constraints into deep clustering, improving performance on balanced datasets.
- To eliminate the need for pre-training by learning a representation tailored to clustering from scratch.
- To generalize recent soft-k-means-based approaches by using optimal transport with entropic regularization.
Proposed method
- Reformulate k-means clustering as a regularized optimal transport problem using entropic regularization to enable differentiability.
- Define a differentiable loss function based on optimal transport that depends on both the embedding parameters θ and cluster parameters (centroids μ_k and weights w_k).
- Use the Sinkhorn algorithm to efficiently compute the optimal transport plan, enabling gradient-based optimization.
- Enforce cluster size constraints by setting the marginal distributions of the transport plan to match desired proportions w_k.
- Jointly optimize the embedding network f_θ and cluster parameters via stochastic gradient descent.
- Initialize cluster centers using k-means, but apply a matching step between cluster indices and class proportions to avoid misalignment.
Experimental results
Research questions
- RQ1Can optimal transport with entropic regularization be used to create a fully differentiable deep clustering framework?
- RQ2Does enforcing cluster size constraints improve unsupervised clustering performance on image benchmarks?
- RQ3Can this method achieve state-of-the-art results without requiring pre-training of the embedding network?
- RQ4How robust is the method to hyperparameter choices such as the entropic regularization parameter ε?
- RQ5How does the method compare to soft-k-means in terms of statistical significance and performance stability?
Key findings
- The proposed optimal transport-based method significantly outperforms soft-k-means on CIFAR-10 (p-value = 10^−12) and MNIST (p-value = 0.0067), demonstrating statistical superiority.
- On CIFAR-10, the method achieves higher unsupervised accuracy than soft-k-means even without pre-training, and pre-training does not significantly improve performance.
- On MNIST, the method remains significantly better than soft-k-means without pre-training, though pre-training improves soft-k-means more than it improves the optimal transport method.
- The method is robust to the choice of the entropic regularization parameter ε, maintaining performance across a range of ε values.
- The performance gain is most pronounced in balanced datasets, where cluster size constraints are most effective.
- Preliminary results suggest that cluster initialization must be aligned with class proportions to avoid enforcing incorrect cluster sizes.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.