While the Vision Transformer (VT) architecture is becoming trendy in computer vision, pure VT models perform poorly on tiny datasets. To address this issue, this paper proposes the locality guidance for improving the performance of VTs on tiny datasets. We first analyze that the local information, which is of great importance for understanding images, is hard to be learned with limited data due to the high flexibility and intrinsic globality of the self-attention mechanism in VTs. To facilitate local information, we realize the locality guidance for VTs by imitating the features of an already trained convolutional neural network (CNN), inspired by the built-in local-to-global hierarchy of CNN. Under our dual-task learning paradigm, the locality guidance provided by a lightweight CNN trained on low-resolution images is adequate to accelerate the convergence and improve the performance of VTs to a large extent. Therefore, our locality guidance approach is very simple and efficient, and can serve as a basic performance enhancement method for VTs on tiny datasets. Extensive experiments demonstrate that our method can significantly improve VTs when training from scratch on tiny datasets and is compatible with different kinds of VTs and datasets. For example, our proposed method can boost the performance of various VTs on tiny datasets (e.g., 13.07% for DeiT, 8.98% for T2T and 7.85% for PVT), and enhance even stronger baseline PVTv2 by 1.86% to 79.30%, showing the potential of VTs on tiny datasets. The code is available at https://github.com/lkhl/tiny-transformers.
Learning Where to Focus: Density-Driven Guidance for Detecting Dense Tiny Objects
Key Laboratory of Intelligent Computing & Signal Processing (Anhui University), Ministry of Education(智能计算与信号处理重点实验室(安徽大学)、教育部);Anhui Provincial Key Laboratory of Multimodal Cognitive Computation(安徽省多模态认知计算重点实验室);School of Artificial Intelligence, Anhui University(安徽大学人工智能学院);th Research Institute, China Electronics Technology Group Corporation(中国电子科技集团第三十八研究所);Collaborative Innovation Laboratory for Computer Vision and Pattern Recognition, School of Artificial Intelligence and Big Data, Hefei University(计算机视觉与模式识别协同创新实验室,合肥大学人工智能与大数据学院);School of Computer Science and Technology, Anhui University(安徽大学计算机科学与技术学院)
TinyDrop: Tiny Model Guided Token Dropping for Vision Transformers
School of Electrical and Electronic Engineering, University College Dublin, Ireland(电气与电子工程学院,都柏林大学学院,爱尔兰);College of Electronics and Information Engineering, Shenzhen University, China(电子与信息工程学院,深圳大学,中国)
CNNs, Transformers, Hybrid, and Vision Language Models for Skin Cancer Detection
Department of Computer Science and Software Engineering, Concordia University, Montreal, Canada(计算机科学与软件工程系,康科迪亚大学,加拿大蒙特利尔);Ebovir Biotechnologie Inc., Montreal, Canada(Ebovir生物技术公司,加拿大蒙特利尔)
Balancing Accuracy, Calibration, and Efficiency in Active Learning with Vision Transformers Under Label Noise
Department of Information and Computer Sciences, University of Hawai‘i at Manoa(夏威夷大学马诺亚分校信息与计算机科学系);Department of Computer Science, University of Pretoria(pretoria大学计算机科学系)