Fine-grained Representation Learning Based on Multi-level Contrast Learning
(Fujian Agriculture and Forestry University, Fuzhou 350002, China)
Received: 2025-02-26
Abstract
In recent years, advances in unsupervised representation learning have often relied on a predetermined number of classes to enhance feature extraction and clustering performance. However, this has sparked a debate regarding two core issues. The first issue is the necessity of predefining the number of classes and the second issue is whether class labels can adequately capture the fine-grained semantic features within the data. In real scenarios, the true number of classes in a dataset is often unknown, and the limitation casts doubt on the effectiveness of class labels in representation learning. To address these issues, this paper proposes a Contrastive Disentangling (CD) framework that learns data representations without relying on category priors. The framework employs a multi-level Contrastive Learning strategy, including an instance-level contrastive loss that distinguishes the representations of different samples, a feature-level contrastive loss that enhances the independence of outputs from different feature extraction heads, and a normalized entropy loss that ensures feature diversity and prevents representation collapse. Extensive experimental results on the CIFAR-10, CIFAR-100, STL-10, and ImageNet-10 datasets demonstrate that CD outperforms existing methods when category information is missing or ambiguous.
Keywords
Representation Disentangling; clustering; Contrastive Learning; Representation Learning; Unsupervised Learning
References
- [1] YE M,ZHANG X,YUEN P C,et al. Unsupervised Embedding Learning via Invariant and Spreading Instance Feature [C]//Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition.Long Beach:IEEE,2019:6210-6219.
- [2] CHEN T,KORNBLITH S,NOROUZI M,et al. A Simple Framework for Contrastive Learning of Visual Representations [C]//International Conference on Machine Learning.[S.I.]:PMLR,2020:1597-1607.
- [3] VAN GANSBEKE W,VANDENHENDE S,GEORGOULIS S,et al. SCAN: Learning to Classify Images Without Labels [C]//European Conference on Computer Vision.Glasgow:Springer,2020:268-285.
- [4] LI Y,HU P,LIU Z,et al. Contrastive Clustering [J].Proceedings of the AAAI Conference on Artificial Intelligence,2021,35(10):8547-8555.
- [5] QIAN Q. Stable Cluster Discrimination for Deep Clustering [C]//Proceedings of the IEEE/CVF International Conference on Computer Vision. Paris:IEEE,2023:16645-16654.
- [6] BENGIO Y,LAMBLIN P,POPOVICI D,et al. Greedy Layer-Wise Training of Deep Networks [C]//Proceedings of the 20th International Conference on Neural Information Processing Systems. Cambridge:MIT Press,2006:153-160.
- [7] KINGMA D. Auto-Encoding Variational Bayes [J/OL].arXiv:1312.6114 [stat.ML].(2013-12-20). https://arxiv.org/abs/1312.6114?context=cs.%20LG.html.
- [8] GOODFELLOW I,POUGET-ABADIE J,MIRZA M,et al. Generative Adversarial Nets [C]//NIPS'14, Proceedings of the 28th International Conference on Neural Information Processing Systems-Volume2,2014:2672-2680.
- [9] NTELEMIS F,JIN Y,THOMAS S A. A Generic Self-Supervised Framework of Learning Invariant Discriminative Features [J].IEEE Transactions on Neural Networks and Learning Systems,2024,35(9):12938-12952.
- [10] HE K,FAN H,WU Y,et al. Momentum Contrast for Unsupervised Visual Representation Learning [C]//Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. Seattle:IEEE,2020:9729-9738.
- [11] GRILL J B,STRUB F,ALTCHÉ F,et al. Bootstrap Your Own Latent: A New Approach to Self-Supervised Learning [J].Advances in Neural Information Processing Systems,2020,33:21271-21284.
- [12] CHEN X,HE K. Exploring Simple Siamese Representation Learning [C]//Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition.Nashville:IEEE,2021:15750-15758.
- [13] NIU C,SHAN H,WANG G. SPICE: Semantic Pseudo-Labeling for Image Clustering [J].IEEE Transactions on Image Processing,2022,31:7264-7278.
- [14] HE K,ZHANG X,REN S,et al. Deep Residual Learning for Image Recognition [C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. Las Vegas:IEEE,2016:770-778.
- [15] IOFFE S. Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift [C]//Proceedings of the 32nd International Conference on International Conference on Machine Learning.Lille:JMLR,2015:448-456.
- [16] KRIZHEVSKY A,HINTON G. Learning Multiple Layers of Features from Tiny Images [R/OL].[2025-01-22].https://doi.org/10.1.1.222.9220.
- [17] COATES A,NG A,LEE H. An Analysis of Single-Layer Networks in Unsupervised Feature Learning [C]//Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics.Fort Lauderdale:JMLR,2011:215-223.
- [18] DENG J,DONG W,SOCHER R,et al. ImageNet: A Large-Scale Hierarchical Image Database [C]//2009 IEEE Conference on Computer Vision and Pattern Recognition.Miami:IEEE,2009:248-255.
- [19] LOSHCHILOV I,HUTTER F. SGDR:Stochastic Gradient Descent with Warm Restarts [J/OL].arXiv:1608.03983 [cs.LG].(2016-08-13).https://arxiv.org/abs/1608.03983v3.
- [20] KINGMA D P. Adam: A Method for Stochastic Optimization [J/OL].arXiv:1412.6980 [cs.LG].(2014-12-22).https://arxiv.org/abs/1412.6980.
- [21] MACQUEEN J. Some Methods for Classification and Analysis of Multivariate Observations [C]//Proceedings of the Fifth Berkeley Symposium on Mathematical Statistics and Probability. Berkeley:University of California Press,1967:281-297.
- [22] ZEILER M D,KRISHNAN D,TAYLOR G W,et al. Deconvolutional Networks [C]//2010 IEEE Computer Society Conference on Computer Vision and Pattern Recognition.San Francisco:IEEE,2010:2528-2535.
- [23] VINCENT P,LAROCHELLE H,LAJOIE I,et al. Stacked Denoising Autoencoders: Learning Useful Representations in a Deep Network with a Local Denoising Criterion [J].Journal of Machine Learning Research,2010,11:3371 - 3408.
- [24] RADFORD A. Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks [J/OL].arXiv:1511.06434 [cs.LG].(2015-11-19).https://arxiv.org/abs/1511.06434?context=cs.
- [25] YANG J,PARIKH D,BATRA D. Joint Unsupervised Learning of Deep Representations and Image Clusters [C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition.Las Vegas:IEEE,2016:5147-5156.
- [26] XIE J,GIRSHICK R,FARHADI A. Unsupervised Deep Embedding for Clustering Analysis [C]//International Conference on Machine Learning.New York:PMLR,2016:478-487.
- [27] CHANG J,WANG L,MENG G,et al. Deep Adaptive Image Clustering [C]//Proceedings of the IEEE International Conference on Computer Vision.Venice:IEEE,2017:5879-5887.
- [28] WU J,LONG K,WANG F,et al. Deep Comprehensive Correlation Mining for Image Clustering [C]//Proceedings of the IEEE/CVF International Conference on Computer Vision.Seoul:IEEE,2019:8150-8159.
- [29] HUANG J,GONG S,ZHU X. Deep Semantic Clustering by Partition Confidence Maximisation [C]//Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition.Seattle:IEEE,2020:8849-8858.
- [30] RIBEIRO M T,SINGH S,GUESTRIN C. "Why Should I Trust You?" Explaining the Predictions of Any Classifier [C]//Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. New York:Association for Computing Machinery,2016:1135-1144.
Funding
Natural Science Foundation of Fujian Province (2021J01129); Foundation Project of Fujian Higher Education Technology Research Association (H2000134A); Fujian Agriculture and Forestry University Horizontal Science and Technology Innovation Fund Project (KHF190015)
About the authors
Jiang Houwang (2000-), male, Han ethnicity, from Chizhou, Anhui Province, is currently pursuing a master's degree in pattern recognition.