journal article·2023-09-20Open access

Patch-Level Consistency Regularization in Self-Supervised Transfer Learning for Fine-Grained Image Recognition

Yejin Lee, Suho Lee, Sangheum Hwang

Applied Sciences· Volume 13· Issue 18

Abstract

Fine-grained image recognition aims to classify fine subcategories belonging to the same parent category, such as vehicle model or bird species classification. This is an inherently challenging task because a classifier must capture subtle interclass differences under large intraclass variances. Most previous approaches are based on supervised learning, which requires a large-scale labeled dataset. However, such large-scale annotated datasets for fine-grained image recognition are difficult to collect because they generally require domain expertise during the labeling process. In this study, we propose a self-supervised transfer learning method based on Vision Transformer (ViT) to learn finer representations without human annotations. Interestingly, it is observed that existing self-supervised learning methods using ViT (e.g., DINO) show poor patch-level semantic consistency, which may be detrimental to learning finer representations. Motivated by this observation, we propose a consistency loss function that encourages patch embeddings of the overlapping area between two augmented views to be similar to each other during self-supervised learning on fine-grained datasets. In addition, we explore effective transfer learning strategies to fully leverage existing self-supervised models trained on large-scale labeled datasets. Contrary to the previous literature, our findings indicate that training only the last block of ViT is effective for self-supervised transfer learning. We demonstrate the effectiveness of our proposed approach through extensive experiments using six fine-grained image classification benchmark datasets, including FGVC Aircraft, CUB-200-2011, Food-101, Oxford 102 Flowers, Stanford Cars, and Stanford Dogs. Under the linear evaluation protocol, our method achieves an average accuracy of 78.5%, outperforming the existing transfer learning method, which yields 77.2%.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Domain Adaptation and Few-Shot Learning · Multimodal Machine Learning Applications · Machine Learning and ELM

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Data Science, Seoul National University of Science and Technology, Seoul 01811, Republic of Korea

Department of Industrial & Information Systems Engineering, Seoul National University of Science and Technology, Seoul 01811, Republic of Korea

Research Center for Electrical and Information Technology, Seoul National University of Science and Technology, Seoul 01811, Republic of Korea

Funding

National Research Foundation of Korea

References (44)

Show source-provided references
1. Caron, M., Touvron, H., Misra, I., Jégou, H., Mairal, J., Bojanowski, P., and Joulin, A. (2021, January 11–17). Emerging properties in self-supervised vision transformers. Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, QC, Canada.10.1109/ICCV48922.2021.00951 ↗
2. Chen, T., Kornblith, S., Norouzi, M., and Hinton, G. (2020, January 13–18). A simple framework for contrastive learning of visual representations. Proceedings of the International Conference on Machine Learning, PMLR, Virtual.
3. Devlin, J., Chang, M.W., Lee, K., and Toutanova, K. (2018). Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv.
4. Graph self-supervised learning: A survey
5. He, K., Fan, H., Wu, Y., Xie, S., and Girshick, R. (2020, January 13–19). Momentum contrast for unsupervised visual representation learning. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA.10.1109/CVPR42600.2020.00975 ↗
6. Zbontar, J., Jing, L., Misra, I., LeCun, Y., and Deny, S. (2021, January 18–24). Barlow twins: Self-supervised learning via redundancy reduction. Proceedings of the International Conference on Machine Learning, PMLR, Virtual.
7. Zhang, P., Wang, F., and Zheng, Y. (2017, January 18–21). Self supervised deep representation learning for fine-grained body part recognition. Proceedings of the 2017 IEEE 14th International Symposium on Biomedical Imaging (ISBI 2017), IEEE, Melbourne, VIC, Australia.10.1109/ISBI.2017.7950587 ↗
8. Kim, Y., and Ha, J.W. (2021). Contrastive Fine-grained Class Clustering via Generative Adversarial Networks. arXiv.
9. Wu, D., Li, S., Zang, Z., Wang, K., Shang, L., Sun, B., Li, H., and Li, S.Z. (2021). Align yourself: Self-supervised pre-training for fine-grained recognition via saliency alignment. arXiv.
10. Cole, E., Yang, X., Wilber, K., Mac Aodha, O., and Belongie, S. (2022, January 18–24). When does contrastive visual representation learning work?. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA.10.1109/CVPR52688.2022.01434 ↗
11. Zhao, N., Wu, Z., Lau, R.W., and Lin, S. (2021, January 2–9). Distilling localization for self-supervised representation learning. Proceedings of the AAAI Conference on Artificial Intelligence, Virtual.
12. Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., and Gelly, S. (2021, January 4). An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale. Proceedings of the International Conference on Learning Representations, Vienna, Austria.
13. Reed, C.J., Yue, X., Nrusimha, A., Ebrahimi, S., Vijaykumar, V., Mao, R., Li, B., Zhang, S., Guillory, D., and Metzger, S. (2022, January 3–8). Self-supervised pretraining improves self-supervised pretraining. Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, Waikoloa, HI, USA.10.1109/WACV51458.2022.00112 ↗
14. Wah, C., Branson, S., Welinder, P., Perona, P., and Belongie, S. (2011). The Caltech-UCSD Birds-200-2011 Dataset, California Institute of Technology.
15. Krause, J., Stark, M., Deng, J., and Fei-Fei, L. (2013, January 2–8). 3d object representations for fine-grained categorization. Proceedings of the IEEE International Conference on Computer Vision Workshops, Sydney, Australia.10.1109/ICCVW.2013.77 ↗
16. Maji, S., Rahtu, E., Kannala, J., Blaschko, M., and Vedaldi, A. (2013). Fine-grained visual classification of aircraft. arXiv.
17. Chen, X., Fan, H., Girshick, R., and He, K. (2020). Improved baselines with momentum contrastive learning. arXiv.
18. Oord, A.v.d., Li, Y., and Vinyals, O. (2018). Representation learning with contrastive predictive coding. arXiv.
19. Bootstrap your own latent-a new approach to self-supervised learning
20. Chen, X., Xie, S., and He, K. (2021, January 11–17). An empirical study of training self-supervised vision transformers. Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, QC, Canada.10.1109/ICCV48922.2021.00950 ↗
21. Zhou, J., Wei, C., Wang, H., Shen, W., Xie, C., Yuille, A., and Kong, T. (2021). ibot: Image bert pre-training with online tokenizer. arXiv.
22. Chou, P.Y., Kao, Y.Y., and Lin, C.H. (2023). Fine-grained Visual Classification with High-temperature Refinement and Background Suppression. arXiv.
23. Lin, D., Shen, X., Lu, C., and Jia, J. (2015, January 7–12). Deep lac: Deep localization, alignment and classification for fine-grained recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Boston, MA, USA.10.1109/CVPR.2015.7298775 ↗
24. Zhang, H., Xu, T., Elhoseiny, M., Huang, X., Zhang, S., Elgammal, A., and Metaxas, D. (2016, January 27–30). Spda-cnn: Unifying semantic part detection and abstraction for fine-grained recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA.10.1109/CVPR.2016.129 ↗
25. Huang, S., Xu, Z., Tao, D., and Zhang, Y. (2016, January 27–30). Part-stacked CNN for fine-grained visual categorization. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA.10.1109/CVPR.2016.132 ↗
26. Fu, J., Zheng, H., and Mei, T. (2017, January 21–26). Look closer to see better: Recurrent attention convolutional neural network for fine-grained image recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA.10.1109/CVPR.2017.476 ↗
27. Zhang, T., Chang, D., Ma, Z., and Guo, J. (2021, January 5–8). Progressive co-attention network for fine-grained visual classification. Proceedings of the 2021 International Conference on Visual Communications and Image Processing (VCIP), IEEE, Munich, Germany.10.1109/VCIP53242.2021.9675376 ↗
28. Zheng, H., Fu, J., Mei, T., and Luo, J. (2017, January 22–29). Learning multi-attention convolutional neural network for fine-grained image recognition. Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy.10.1109/ICCV.2017.557 ↗
29. He, J., Chen, J.N., Liu, S., Kortylewski, A., Yang, C., Bai, Y., and Wang, C. (2022, January 20–27). Transfg: A transformer architecture for fine-grained recognition. Proceedings of the AAAI Conference on Artificial Intelligence, Vancouver, BC, Canada.10.1609/aaai.v36i1.19967 ↗
30. Sun, H., He, X., and Peng, Y. (2022, January 30). Sim-trans: Structure information modeling transformer for fine-grained visual categorization. Proceedings of the 30th ACM International Conference on Multimedia, Lisbon, Portuga.10.1145/3503161.3548308 ↗
31. Zhang, Y., Cao, J., Zhang, L., Liu, X., Wang, Z., Ling, F., and Chen, W. (2022, January 22–27). A free lunch from vit: Adaptive attention multi-scale fusion transformer for fine-grained visual recognition. Proceedings of the ICASSP 2022-2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), IEEE, Singapore.10.1109/ICASSP43922.2022.9747591 ↗
32. A comprehensive survey on transfer learning10.1109/JPROC.2020.3004555 ↗
33. Ribani, R., and Marengoni, M. (2019, January 28–31). A survey of transfer learning for convolutional neural networks. Proceedings of the 2019 32nd SIBGRAPI Conference on Graphics, Patterns and Images Tutorials (SIBGRAPI-T), IEEE, Rio de Janeiro, Brazil.10.1109/SIBGRAPI-T.2019.00010 ↗
34. Ayoub, S., Gulzar, Y., Reegu, F.A., and Turaev, S. (2022). Generating Image Captions Using Bahdanau Attention Mechanism and Transfer Learning. Symmetry, 14.10.3390/sym14122681 ↗
35. Malpure, D., Litake, O., and Ingle, R. (2021). Investigating Transfer Learning Capabilities of Vision Transformers and CNNs by Fine-Tuning a Single Trainable Block. arXiv.
36. Zhou, H.Y., Lu, C., Yang, S., and Yu, Y. (2021, January 11–17). ConvNets vs. Transformers: Whose visual representations are more transferable?. Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, QC, Canada.10.1109/ICCVW54120.2021.00252 ↗
37. Ioffe, S., and Szegedy, C. (2015, January 6–11). Batch normalization: Accelerating deep network training by reducing internal covariate shift. Proceedings of the International Conference on Machine Learning, PMLR, Lille, France.
38. Do vision transformers see like convolutional neural networks?
39. Nilsback, M.E., and Zisserman, A. (2008, January 16–19). Automated flower classification over a large number of classes. Proceedings of the 2008 Sixth Indian Conference on Computer Vision, Graphics & Image Processing, IEEE, Bhubaneswar, India.10.1109/ICVGIP.2008.47 ↗
40. Bossard, L., Guillaumin, M., and Gool, L.V. (2014, January 6–12). Food-101–mining discriminative components with random forests. Proceedings of the European Conference on Computer Vision, Zurich, Switzerland.10.1007/978-3-319-10599-4_29 ↗
41. Khosla, A., Jayadevaprakash, N., Yao, B., and Li, F.F. (2011, January 25). Novel dataset for fine-grained image categorization: Stanford dogs. Proceedings of the CVPR Workshop on Fine-Grained Visual Categorization (FGVC), Colorado Springs, CO, USA. No. 1.
42. Loshchilov, I., and Hutter, F. (2016). Sgdr: Stochastic gradient descent with warm restarts. arXiv.
43. Wang, X., Zhang, R., Shen, C., Kong, T., and Li, L. (2021, January 20–25). Dense contrastive learning for self-supervised visual pre-training. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA.10.1109/CVPR46437.2021.00304 ↗
44. Xiao, T., Reed, C.J., Wang, X., Keutzer, K., and Darrell, T. (2021, January 11–17). Region similarity representation learning. Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, QC, Canada.10.1109/ICCV48922.2021.01037 ↗