Comparative Study of Vision Transformer (ViT), Swin Transformer, and Transformer in Transformer (TNT) on Image Classification
The advent of transformer models in computer vision has revolutionized image classification, significantly improving performance compared to standard convolutional neural networks (CNNs). Among these models, the Vision Transformer (ViT), Swin Transformer, and Transformer in Transformer (TNT) represent three leading architectures that apply self-attention mechanisms to image data. In this paper, we perform a comparative evaluation of these models using the CIFAR-10 dataset, focusing on classification performance, computational complexity, and training efficiency. We assess each model using accuracy, precision, recall, F1-score, AUC, and confusion matrices. ViT provides a simple yet powerful mechanism for leveraging global context in image understanding. Swin Transformer introduces a hierarchical design and shifted windows to improve computational efficiency. TNT enhances the process further by enabling fine-grained local and global attention through inner- patch and patch tokenization. Our findings indicate that while TNT achieves the highest overall accuracy and robustness, Swin Transformer maintains an excellent balance between accuracy and computational efficiency on smaller datasets like CIFAR-10.
Authors
- Divya Meena Sundaram (ORCID: https://orcid.org/0000-0002-5256-5076)
- Sheela Jayachandran
- Yathnesh Kasukurthi
Institutions
- SRM University (IN)
- VIT-AP University
- Vellore Institute of Technology University (IN)
Publication Details
- Published
- 2025-08-04
- DOI
- https://doi.org/10.1109/icscsa66339.2025.11170958
- Citations
- 1
- Primary Topic
- Currency Recognition and Detection
- Type
- article
- Field-Weighted Citation Impact
- 1.28