Litcius/Paper detail

ECTFormer: An efficient Conv-Transformer model design for image recognition

Jaewon Sa, Junhwan Ryu, Heegon Kim

2024Pattern Recognition12 citationsDOIOpen Access PDF

Abstract

Since the success of Vision Transformers (ViTs), there has been growing interest in combining ConvNets and Transformers in the computer vision community. While the hybrid models have demonstrated state-of-the-art performance, many of these models are too large and complex to be applied to edge devices for real-world applications. To address this challenge, we propose an efficient hybrid network called ECTFormer that leverages the strengths of ConvNets and Transformers while considering both model performance and inference speed. Specifically, our approach involves: (1) optimizing the combination of convolution kernels by dynamically adjusting kernel sizes based on the scale of feature tensors; (2) revisiting existing overlapping patchify to not only reduce the model size but also propagate fine-grained patches for the performance enhancement; and (3) introducing an efficient single-head self-attention mechanism, rather than multi-head self-attention in the base Transformer, to minimize the increase in model size and boost inference speed, overcoming bottlenecks of ViTs. In experimental results on ImageNet-1K, ECTFormer not only demonstrates comparable or higher top-1 accuracy but also faster inference speed on both GPUs and edge devices compared to other efficient networks. • Proposed an efficient network that exploits the strengths of ConvNet and Transformer. • Configured dynamic kernel sizes according to downsampling ratios for feature tensors. • Proposed an efficient and effective patch embedding method. • Proposed a novel efficient attention mechanism with minimized parameter expansion.

Topics & Concepts

Computer scienceTransformerArtificial intelligenceImage (mathematics)Pattern recognition (psychology)Computer visionEngineeringVoltageElectrical engineeringBrain Tumor Detection and ClassificationImage Processing Techniques and ApplicationsCCD and CMOS Imaging Sensors