Distillation-Based Model Compression Framework for Swin Transformer
Vision Transformers (ViTs) have gained significant attention in computer vision due to their exceptional model capa-bilities. However, most ViT models suffer from high complexity, with a large number of parameters that demand considerable memory and inference time, limiting their applicability on resource-constrained devices. To address this issue, we propose a distillation-based framework for compressing large models for smaller datasets. The framework leverages fine-tuning and knowledge distillation to accelerate the training process of compressed models. To evaluate its effectiveness, two compressed Swin Transformer models, Swin-N and Swin-M, were introduced and tested on the CIFAR-100 dataset. Experimental results demonstrate that when trained using the proposed framework, both Swin-N and Swin-M exhibit significant improvements in accuracy compared to their counterparts trained from scratch, with Swin-N achieving an 18.89% increase and Swin-M showing a 20.10% improvement. Additionally, Swin-M closely approximates the accuracy of the Swin- T teacher model, further validating the effectiveness of the framework.
Authors
- Mohammad Jubran (ORCID: https://orcid.org/0000-0002-7415-9044)
- Aziz Qaroush (ORCID: https://orcid.org/0000-0002-0274-4121)
- Ahmad Khatib
- Mazen Amria
- Alaa Zuhd
Institutions
- Birzeit University (PS)
Publication Details
- Published
- 2024-11-20
- DOI
- https://doi.org/10.1109/fmlds63805.2024.00100
- Primary Topic
- Real-time simulation and control systems
- Type
- article
- Field-Weighted Citation Impact
- 0.00