Abstract
Deep neural networks (DNNs) offer a means of addressing the challenging task of clustering high-dimensional data. DNNs can extract useful features, and so produce a lower dimensional representation, which is more amenable to clustering techniques. As clustering is typically performed in a purely unsupervised setting, where no training labels are available, the question then arises as to how the DNN feature extractor can be trained. The most accurate existing approaches combine the training of the DNN with the clustering objective, so that information from the clustering process can be used to update the DNN to produce better features for clustering. One problem with this approach is that these “pseudo-labels” produced by the clustering algorithm are noisy, and any errors that they contain will hurt the training of the DNN. In this paper, we propose selective pseudo-label clustering, which uses only the most confident pseudo-labels for training the DNN. We formally prove the performance gains under certain conditions. Applied to the task of image clustering, the new approach achieves a state-of-the-art performance on three popular image datasets.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Abavisani, M., Patel, V.M.: Deep multimodal subspace clustering networks. IEEE J. Sel. Top. Signal Process. 12(6), 1601–1614 (2018)
Bellman, R.: Dynamic programming. Science 153(3731), 34–37 (1966)
Boongoen, T., Iam-On, N.: Cluster ensembles: a survey of approaches with recent extensions and applications. Comput. Sci. Rev. 28, 1–25 (2018)
Breiman, L.: Bagging predictors. Mach. Learn. 24(2), 123–140 (1996)
Brock, A., Donahue, J., Simonyan, K.: Large scale GAN training for high fidelity natural image synthesis. arXiv:1809.11096 (2018)
Caron, M., Bojanowski, P., Joulin, A., Douze, M.: Deep clustering for unsupervised learning of visual features. In: Proceedings of ECCV, pp. 132–149 (2018)
Chang, J., Wang, L., Meng, G., Xiang, S., Pan, C.: Deep adaptive image clustering. In: Proceedings of ICCV, pp. 5879–5887 (2017)
Clemen, R.T.: Combining forecasts: a review and annotated bibliography. Int. J. Forecast. 5(4), 559–583 (1989)
Creswell, A., Bharath, A.A.: Inverting the generator of a generative adversarial network. IEEE Trans. Neural Netw. Learn. Syst. 30(7), 1967–1974 (2018)
Dempster, A.P., Laird, N.M., Rubin, D.B.: Maximum likelihood from incomplete data via the EM algorithm. J. R. Stat. Soc.: Ser. B (Methodol.) 39(1), 1–22 (1977)
Ding, F., Luo, F.: Clustering by directly disentangling latent space. arXiv:1911.05210 (2019)
Elgammal, A., Liu, B., Elhoseiny, M., Mazzone, M.: CAN: Creative adversarial networks, generating art by learning about styles and deviating from style norms. arXiv:1706.07068 (2017)
Gao, B., Yang, Y., Gouk, H., Hospedales, T.M.: Deep clustering with concrete k-means. In: Proceedings of ICASSP, pp. 4252–4256. IEEE (2020)
Ghasedi Dizaji, K., Herandi, A., Deng, C., Cai, W., Huang, H.: Deep clustering via joint convolutional autoencoder embedding and relative entropy minimization. In: Proceedings of ICCV (2017)
Goodfellow, I., et al.: Generative adversarial nets. In: Proceedings of NIPS, pp. 2672–2680 (2014)
Guo, X., Gao, L., Liu, X., Yin, J.: Improved deep embedded clustering with local structure preservation. In: Proceedings of IJCAI, pp. 1753–1759 (2017)
Guo, X., Zhu, E., Liu, X., Yin, J.: Deep embedded clustering with data augmentation. In: Proceedings of Asian Conference on Machine Learning, pp. 550–565 (2018)
Hinton, G.E., Srivastava, N., Krizhevsky, A., Sutskever, I., Salakhutdinov, R.R.: Improving neural networks by preventing co-adaptation of feature detectors. arXiv:1207.0580 (2012)
Huang, P., Huang, Y., Wang, W., Wang, L.: Deep embedding network for clustering. In: Proceedings of ICPR, pp. 1532–1537. IEEE (2014)
Hull, J.J.: A database for handwritten text recognition research. TPAMI 16(5), 550–554 (1994)
Jiang, Z., Zheng, Y., Tan, H., Tang, B., Zhou, H.: Variational deep embedding: an unsupervised and generative approach to clustering. arXiv:1611.05148 (2016)
Karras, T., Laine, S., Aila, T.: A style-based generator architecture for generative adversarial networks. In: Proceedings of CVPR (2019)
Kittler, J., Hatef, M., Duin, R.P., Matas, J.: On combining classifiers. TPAMI 20(3), 226–239 (1998)
Krizhevsky, A., Sutskever, I., Hinton, G.E.: ImageNet classification with deep convolutional neural networks. In: Proceedings of NIPS, pp. 1097–1105 (2012)
Kuhn, H.W.: The Hungarian method for the assignment problem. Naval Res. Logist. Q. 2(1–2), 83–97 (1955)
LeCun, Y., Bottou, L., Bengio, Y., Haffner, P.: Gradient-based learning applied to document recognition. Proc. IEEE 86(11), 2278–2324 (1998)
Liang, J., Yang, J., Lee, H.-Y., Wang, K., Yang, M.-H.: Sub-GAN: an unsupervised generative model via subspaces. In: Ferrari, V., Hebert, M., Sminchisescu, C., Weiss, Y. (eds.) ECCV 2018. LNCS, vol. 11215, pp. 726–743. Springer, Cham (2018). https://doi.org/10.1007/978-3-030-01252-6_43
Lipton, Z.C., Tripathi, S.: Precise recovery of latent vectors from generative adversarial networks. arXiv:1702.04782 (2017)
Lloyd, S.: Least square quantization in PCM. IEEE Trans. Inf. Theory (1957/1982) 18, 129–137 (1957)
McConville, R., Santos-Rodriguez, R., Piechocki, R.J., Craddock, I.: N2D:(not too) deep clustering via clustering the local manifold of an autoencoded embedding. arXiv:1908.05968 (2019)
McInnes, L., Healy, J., Astels, S.: HDBSCAN: hierarchical density based clustering. J. Open Sour. Softw. 2(11), 205 (2017)
McInnes, L., Healy, J., Melville, J.: UMAP: uniform manifold approximation and projection for dimension reduction. arXiv:1802.03426 (2018)
Mrabah, N., Bouguessa, M., Ksantini, R.: Adversarial deep embedded clustering: on a better trade-off between feature randomness and feature drift. arXiv:1909.11832 (2019)
Mrabah, N., Khan, N.M., Ksantini, R., Lachiri, Z.: Deep clustering with a dynamic autoencoder: From reconstruction towards centroids construction. arXiv:1901.07752 (2019)
Mukherjee, S., Asnani, H., Lin, E., Kannan, S.: ClusterGAN: latent space clustering in generative adversarial networks. arXiv:1809.03627 (2019)
Opitz, D.W., Maclin, R.F.: An empirical evaluation of bagging and boosting for artificial neural networks. In: Proceedings of ICNN, vol. 3, pp. 1401–1405. IEEE (1997)
Pearlmutter, B.A., Rosenfeld, R.: Chaitin-Kolmogorov complexity and generalization in neural networks. In: Proceedings of NIPS, pp. 925–931 (1991)
Perrone, M.P.: Improving regression estimation: averaging methods for variance reduction with extensions to general convex measure optimization. Ph.D. thesis (1993)
Ren, Y., Wang, N., Li, M., Xu, Z.: Deep density-based image clustering. Knowl.-Based Syst. 197, 105841 (2020)
Wang, Y., Zhang, L., Nie, F., Li, X., Chen, Z., Wang, F.: WeGAN: deep image hashing with weighted generative adversarial networks. IEEE Trans. Multimed. 22, 1458–1469 (2019)
Witten, I.H., Frank, E.: Data mining: practical machine learning tools and techniques with Java implementations. ACM SIGMOD Rec. 31(1), 76–77 (2002)
Xiao, H., Rasul, K., Vollgraf, R.: Fashion-MNIST: a novel image dataset for benchmarking machine learning algorithms. arXiv:1708.07747 (2017)
Xie, J., Girshick, R., Farhadi, A.: Unsupervised deep embedding for clustering analysis. In: Proceedings of ICML, pp. 478–487 (2016)
Yang, B., Fu, X., Sidiropoulos, N.D., Hong, M.: Towards k-means-friendly spaces: simultaneous deep learning and clustering. In: Proceedings of ICML, vol. 70, pp. 3861–3870. JMLR.org (2017)
Yang, J., Parikh, D., Batra, D.: Joint unsupervised learning of deep representations and image clusters. In: Proceedings of CVPR, pp. 5147–5156 (2016)
Zeiler, M.D., Fergus, R.: Visualizing and understanding convolutional networks. In: Fleet, D., Pajdla, T., Schiele, B., Tuytelaars, T. (eds.) ECCV 2014. LNCS, vol. 8689, pp. 818–833. Springer, Cham (2014). https://doi.org/10.1007/978-3-319-10590-1_53
Zemel, R.S., Hinton, G.E.: Developing population codes by minimizing description length. In: Proceedings of NIPS, pp. 11–18 (1994)
Zhao, H., Gallo, O., Frosio, I., Kautz, J.: Loss functions for neural networks for image processing. arXiv:1511.08861 (2015)
Zhao, W., Wang, S., Xie, Z., Shi, J., Xu, C.: GAN-EM: GAN based EM learning framework. arXiv:1812.00335 (2018)
Zhou, P., Hou, Y., Feng, J.: Deep adversarial subspace clustering. In: Proceedings of CVPR (2018)
Zimek, A., Schubert, E., Kriegel, H.P.: A survey on unsupervised outlier detection in high-dimensional numerical data. Stat. Anal. Data Min.: ASA Data Sci. J. 5(5), 363–387 (2012)
Acknowledgments
This work was supported by the Alan Turing Institute under the UK EPSRC grant EP/N510129/1 and by the AXA Research Fund. We also acknowledge the use of the EPSRC-funded Tier 2 facility JADE (EP/P020275/1) and GPU computing support by Scan Computers International Ltd.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Appendices
A Appendix A: Full Proofs
This appendix contains the full proofs of the results in Sect. 4.
1.1 A.1 More Accurate Pseudo-Labels Supplement
The only part omitted from the argument in the main paper is a proof for the claim about the entropy of the random variable X. This is supplied by the following proposition.
Proposition 1
Given a categorical random variable X of the form
for some \(1/C \le t \le 1\), the entropy H(X) is a strictly decreasing function of t.
Proof
The argument to the \(\log \) is clearly an increasing function of t for \(t>1\). Therefore, for \(1/C \le t < 1\), it is lower-bounded by setting \(t = 1/C\). This gives
The derivative is always strictly negative with respect to t, so, as a function of t, H(X) is always strictly decreasing.
1.2 A.2 Lemma 1 Supplement
The following is a proof for the claim that \(u_{ same } < u_{ diff }\), as stated in Sect. 4.
Decomposing \(u_{ same }\) according to the definition of variance (as the expectation of the square minus the square of the expectation) gives
The expectation term equals 0, as
By symmetry, we can replace covariances involving \(x'\) with the same involving x. The remaining term can then be rearranged to give
Now rewrite \(u_{ diff }\). Decomposing as above gives
and here the expectation term does not equal 0:
The variance term can be expanded to give:
By comparing terms, we can see that this expression is at least as large as \(u_{same}\). First, consider the covariance terms.
Claim. \(\text {Cov}(w^Tx, \eta w'||x - x'||^2) = \text {Cov}(w^Tx,\eta w'||x||^2)\).
So, we see the covariance terms are equal.
Next, compare the second variance terms
Claim. \(\text {Var}(||x - x'||^2) \ge \text {Var}(||x||^2)\).
Assuming that the data are not all identical, this implies that \(u_{ diff }\) is strictly greater than \(u_{same}\).
1.3 A.3 Lemma 2 Supplement
The following is the complete proof of Lemma 2, which was omitted from the main paper.
Proof
\(v_{ diff } - v_{same}\)
1.4 A.4 Lemma 3 Supplement
The following is the complete proof of Lemma 3, which was omitted from the main paper.
Proof
Noting that \(s = 2\mathbb {E}[{{\,\mathrm{Var}\,}}(T|C)]\), and using Eve’s law, we have
1.5 A.5 Theorem 5 Supplement
The following is a more detailed version of the argument given in the main paper.
If \(y(x) = y(x')\), then Lemma 2 means that the expected distance of the encodings of x and \(x'\) to any data point from another cluster is unchanged by whether the update was from points with the same or with different labels. Similarly, the distance between any two other points is unchanged by whether the update was from points with the same or with different labels. This establishes that \(r_T = r_F\). As for the intra-cluster variance, it is smaller after the update with the same labels than with different labels. Lemma 1 shows that the expected distance between the encodings of the two points themselves is smaller if the labels were the same, and the same argument as above shows that all other expected distances within clusters are unchanged.
If \(y(x) \ne y(x')\), then Lemma 2 means that the expected distance of the encodings of x and any data point from the same cluster is unchanged by whether the update was from points with the same or with different labels (and the same for \(x'\)). Similarly, the distance between any two other points is unchanged by whether the update was from points with the same or with different labels. This establishes that \(s_T = s_F\). As for the inter-cluster variance, it is larger after the update with the same labels than with different labels. Lemma 1 shows that the expected distance between the encodings of the two points themselves is larger if the labels were different, and the same argument as above shows that all other expected distances within clusters are unchanged.
B Appendix C: Extended Results
The results in the main paper report the central tendency of five different training runs for each dataset. Tables 4, 5, and 6 show the sizes of the clusters predicted by SPC for one randomly selected run out of these five. On MNIST and USPS, where the accuracy of SPC is \({>}98\%\), the predicted sizes are close to the true sizes. On FashionMNIST, where the accuracy is \({\sim }65\%\), there is a much greater variance. This accounts for the discrepancy in ACC and NMI for FashionMNIST. Most of the errors are put into one large cluster, specifically the cluster that was aligned to ‘coat’ is over three times larger than it should be. This hurts accuracy more than NMI, because the incorrect data points in the ‘coat’ cluster count for zero when calculating the accuracy, but they are not randomly distributed among the other classes, so the conditional entropy of a data point that was mis-clustered as a coat is \(<\log (10)\). Actually, most of the mistakes in the ‘coat’ cluster are pullovers or shirts, and almost none of them are, for examples, boots or tops. Comparing the cluster sizes for SPC-HDBSCAN and SPC-GMM also accounts for the differences across ACC and NMI between these two settings on FashionMNIST: SPC-GMM produces more uniformly-sized clusters, so the difference between ACC and NMI is smaller.
Rights and permissions
Copyright information
© 2021 Springer Nature Switzerland AG
About this paper
Cite this paper
Mahon, L., Lukasiewicz, T. (2021). Selective Pseudo-Label Clustering. In: Edelkamp, S., Möller, R., Rueckert, E. (eds) KI 2021: Advances in Artificial Intelligence. KI 2021. Lecture Notes in Computer Science(), vol 12873. Springer, Cham. https://doi.org/10.1007/978-3-030-87626-5_12
Download citation
DOI: https://doi.org/10.1007/978-3-030-87626-5_12
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-87625-8
Online ISBN: 978-3-030-87626-5
eBook Packages: Computer ScienceComputer Science (R0)