Abstract
Convolutional Neural Networks (CNNs) and Transformers have achieved remarkable success in computer vision tasks. However, their deep architectures often lead to high computational redundancy, making them less suitable for resource-constrained environments, such as edge devices. This paper introduces ParFormer, a novel vision transformer that addresses this challenge by incorporating a Parallel Mixer and a Sparse Channel Attention Patch Embedding (SCAPE). By combining convolutional and attention mechanisms, ParFormer improves feature extraction. This makes spatial feature extraction more efficient and cuts down on unnecessary computation. The SCAPE module further reduces computational redundancy while preserving essential feature information during down-sampling. Experimental results on the ImageNet-1K dataset show that ParFormer-T achieves 78.9% Top-1 accuracy with a high throughput on a GPU that outperforms other small models with 2.56x higher throughput than MobileViT-S, 0.24% faster than FasterNet-T2, and 1.79x higher than EdgeNeXt-S. For edge device deployment, ParFormer-T excels with a throughput of 278.1 images/sec, which is 1.38x higher than EdgeNeXt-S and 2.36x higher than MobileViT-S, making it highly suitable for real-time applications in resource-constrained settings. The larger variant, ParFormer-L, reaches 83.5% Top-1 accuracy, offering a balanced trade-off between accuracy and efficiency, surpassing many state-of-the-art models. In COCO object detection, ParFormer-M achieves 40.7 AP for object detection and 37.6 AP for instance segmentation, surpassing models like ResNet-50, PVT-S and PoolFormer-S24 with significantly higher efficiency. These results validate ParFormer as a highly efficient and scalable model for both high-performance and resource-constrained scenarios, making it an ideal solution for edge-based AI applications.
Introduction
While Convolutional Neural Networks (CNNs) and Transformers have revolutionized computer vision, they are notoriously "heavy." As these models get deeper, they often generate highly redundant features—meaning many parts of the network are doing repetitive work. This redundancy leads to high computational costs and slow inference speeds, making it difficult to deploy high-performing models on resource-constrained "edge" hardware (like mobile phones or IoT devices) where memory and battery life are limited. The authors of ParFormer set out to design a model that minimizes this computational waste while maintaining the high accuracy typically associated with much larger Transformers.
Architectural Innovations
The researchers introduced two primary architectural innovations to the standard MetaFormer/ViT framework: the Parallel Mixer and the Sparse Channel Attention Patch Embedding (SCAPE).
The Parallel Mixer
Most hybrid models apply convolution and attention in a serial fashion. ParFormer applies them in parallel. It splits the input channels: one portion is handled by Single-Head Attention (SHA) to capture global context, while the other is handled by Depth-Wise Convolution (DWConv) to extract local details. This approach reduces the heavy computational load of multi-head attention while ensuring the model doesn't lose track of fine-grained spatial information.
Sparse Channel Attention Patch Embedding (SCAPE)
Standard "patchify" layers can lose important information during downsampling. SCAPE incorporates a Sparse Channel Attention Module (SCAM)—inspired by Squeeze-and-Excitation blocks—to re-calibrate feature maps. It uses a single linear operator to keep the module lightweight, ensuring that the most "useful" channels are prioritized during the downsampling process.
The overall architecture follows a 4-stage pyramid structure, gradually decreasing spatial resolution while increasing channel depth, which is a proven strategy for efficient vision backbones.
Experimental Results
The authors evaluated ParFormer on two industry-standard benchmarks: ImageNet-1K for classification and MS COCO for object detection and instance segmentation.
Classification Performance
ParFormer comes in four sizes: Tiny (T), Small (S), Medium (M), and Large (L). ParFormer-T achieved 78.9% Top-1 accuracy on ImageNet-1K. On a GPU, it reached a throughput of 4,961 images/sec, which is significantly faster than Fasternet-T2 and MobileViT-S. The largest variant, ParFormer-L, reaches 83.5% Top-1 accuracy, showing that the architecture scales well for high-performance needs.
Edge Device Deployment
A standout insight is the model's performance on the NVIDIA Jetson Orin Nano. While many models look fast on a high-end RTX 3090, ParFormer maintains its lead on actual edge hardware using the ONNX format. On the Jetson Orin Nano, ParFormer-T hit 278.1 images/sec, outperforming EdgeNeXt-S by 1.38x and MobileViT-S by 2.36x.
Downstream Tasks
In COCO object detection, ParFormer-M achieved 40.7 AP (Average Precision) and 37.6 AP for instance segmentation, surpassing models like ResNet-50, PVT-S, and PoolFormer-S24 while remaining significantly more efficient.
Conclusion
ParFormer demonstrates that addressing feature redundancy through parallel processing and sparse attention can lead to significant efficiency gains without sacrificing accuracy. By optimizing for both high-end GPUs and resource-constrained edge devices, it provides a versatile baseline for future vision transformer research. Future work may explore dynamic pruning techniques and expanding the architecture to video and NLP tasks.
Summary updated