Image Classification Model Based on Contrastive Learning With Dynamic Adaptive Loss

As one of the core tasks in vision recognition, image classification is widely used in various scenarios. Most existing mainstream image classification models use the Convolutional Neural Network (CNN), the Transformer, or a combination of both as the backbone. However, the convolutional operation of CNN relies on local receptive fields, which limits its ability to capture global information about the image. The Transformer typically partitions the image into equal-sized and non-overlapping image patches, which may destroy the continuity of the edges of the image patches, leading to the loss of critical information. In addition, if the combination of CNN and Transformer is not done appropriately, it may significantly weaken the model’s ability to express local features. A new image classification model is proposed to solve the above problems. The backbone of the proposed model consists of CNN and Transformer in tandem, taking advantage of CNN’s strengths in local feature extraction and fully utilizing Transformer’s ability to process the global information of the image, thus deepening the model’s understanding of the image’s semantic relationship. Specifically, the proposed model contains two branches: contrastive learning and classification. The contrastive learning branch introduces the contrastive learning strategy to enhance the distinguishability between features of different samples, thus compensating for the model’s reliance solely on classification supervision signals. The classification branch is based on traditional image classification methods. Still, it improves the cross-entropy loss to develop a dynamic adaptive loss, enabling the model to learn indistinguishable features effectively. At the same time, it also reduces the phenomenon where easily classified samples at the beginning become indistinguishable as the model matures. Experimental results on the ImageNet-1k dataset show that the proposed model achieves a Top-1 accuracy of 82.8%, outperforming existing image classification models based on CNNs, Transformers, or their combinations. Notably, the model achieves high classification accuracy while maintaining a relatively low parameter size (23.9MB) and computational complexity (5.7Mflops). These experimental results fully demonstrate the effectiveness and feasibility of the proposed method.

Authors

Institutions

Publication Details

Journal
IEEE Access
Published
2025-01-01
DOI
https://doi.org/10.1109/access.2025.3574335
Primary Topic
Face and Expression Recognition
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Image Classification Model Based on Contrastive Learning With Dynamic Adaptive Loss

Fangrui Zhang, Quandeng Gou, Yuheng Ren, Jingxuan Zhou et al.
IEEE Access
Face and Expression Recognition
article

Image Classification Model Based on Contrastive Learning With Dynamic Adaptive Loss

Fangrui Zhang, Quandeng Gou, Yuheng Ren, Jingxuan Zhou, Zi Li
article en

Abstract

As one of the core tasks in vision recognition, image classification is widely used in various scenarios. Most existing mainstream image classification models use the Convolutional Neural Network (CNN), the Transformer, or a combination of both as the backbone. However, the convolutional operation of CNN relies on local receptive fields, which limits its ability to capture global information about the image. The Transformer typically partitions the image into equal-sized and non-overlapping image patches, which may destroy the continuity of the edges of the image patches, leading to the loss of critical information. In addition, if the combination of CNN and Transformer is not done appropriately, it may significantly weaken the model’s ability to express local features. A new image classification model is proposed to solve the above problems. The backbone of the proposed model consists of CNN and Transformer in tandem, taking advantage of CNN’s strengths in local feature extraction and fully utilizing Transformer’s ability to process the global information of the image, thus deepening the model’s understanding of the image’s semantic relationship. Specifically, the proposed model contains two branches: contrastive learning and classification. The contrastive learning branch introduces the contrastive learning strategy to enhance the distinguishability between features of different samples, thus compensating for the model’s reliance solely on classification supervision signals. The classification branch is based on traditional image classification methods. Still, it improves the cross-entropy loss to develop a dynamic adaptive loss, enabling the model to learn indistinguishable features effectively. At the same time, it also reduces the phenomenon where easily classified samples at the beginning become indistinguishable as the model matures. Experimental results on the ImageNet-1k dataset show that the proposed model achieves a Top-1 accuracy of 82.8%, outperforming existing image classification models based on CNNs, Transformers, or their combinations. Notably, the model achieves high classification accuracy while maintaining a relatively low parameter size (23.9MB) and computational complexity (5.7Mflops). These experimental results fully demonstrate the effectiveness and feasibility of the proposed method.

IEEE AccessVol. 13
Southwest University (CN), University of Canberra (AU), UNSW Sydney (AU), Neijiang Normal University (CN), EU Business School, Geneva (CH)
Climate action
Openalex Percentile: Top 90%
Face and Expression Recognition
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.