arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2403.15004cs.CVcs.LG
收藏

ParFormer:一种具有并行混合器和稀疏通道注意力 Patch Embedding 的视觉 Transformer

ParFormer: A Vision Transformer with Parallel Mixer and Sparse Channel Attention Patch Embedding

National Formosa University(国立虎尾科技大学);National Taipei University(国立台北大学);National Yang Ming Chiao Tung University(国立阳明交通大学);National Taiwan University of Science and Technology(台湾科技大学);University of Muhammadiyah Malang(玛琅穆罕默德大学)

Novendra Setyawan, Ghufron Wahyu Kurniawan, Chi-Chia Sun, Jun-Wei Hsieh, Jing-Ming Guo, Wen-Kai Kuo

AI总结:

本文提出 ParFormer 视觉 Transformer,利用 Parallel Mixer 与 SCAPE 降低计算冗余,在 ImageNet-1K、COCO 及边缘设备上实现高准确率、高吞吐和可扩展部署。

摘要:

卷积神经网络(CNNs)和 Transformers 已在计算机视觉任务中取得显著成功。然而,它们的深度架构通常会导致较高的计算冗余,使其不太适合边缘设备等资源受限环境。本文介绍 ParFormer,这是一种新颖的视觉 Transformer,通过引入并行混合器(Parallel Mixer)和稀疏通道注意力 Patch Embedding(Sparse Channel Attention Patch Embedding,SCAPE)来应对这一挑战。通过结合卷积机制与注意力机制,ParFormer 改进了特征提取。这使空间特征提取更加高效,并减少了不必要的计算。SCAPE 模块进一步降低了计算冗余,同时在下采样过程中保留关键特征信息。在 ImageNet-1K 数据集上的实验结果表明,ParFormer-T 达到 78.9% 的 Top-1 准确率,并在 GPU 上具有高吞吐量,优于其他小型模型:其吞吐量比 MobileViT-S 高 2.56 倍,比 FasterNet-T2 快 0.24%,并比 EdgeNeXt-S 高 1.79 倍。对于边缘设备部署,ParFormer-T 表现出色,吞吐量达到 278.1 images/sec,比 EdgeNeXt-S 高 1.38 倍,比 MobileViT-S 高 2.36 倍,因此非常适合资源受限环境中的实时应用。较大的变体 ParFormer-L 达到 83.5% 的 Top-1 准确率,在准确率和效率之间提供了平衡的权衡,超越了许多最先进模型。在 COCO 目标检测中,ParFormer-M 在目标检测任务上取得 40.7 AP,在实例分割任务上取得 37.6 AP,以显著更高的效率超越 ResNet-50、PVT-S 和 PoolFormer-S24 等模型。这些结果验证了 ParFormer 是一种面向高性能和资源受限场景的高效且可扩展模型,使其成为基于边缘的 AI 应用的理想解决方案。

英文摘要:

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.56$\times$ higher throughput than MobileViT-S, 0.24\% faster than FasterNet-T2, and 1.79$\times$ higher than EdgeNeXt-S. For edge device deployment, ParFormer-T excels with a throughput of 278.1 images/sec, which is 1.38 $\times$ higher than EdgeNeXt-S and 2.36$\times$ 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑