arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.08059cs.CVcs.AIcs.LG
收藏

重新思考用于MobileNet尺寸和速度的视觉Transformer

Rethinking Vision Transformers for MobileNet Size and Speed

Snap Inc.(Snap公司);Northeastern University(东北大学);UC Berkeley(加州大学伯克利分校)

Yanyu Li, Ju Hu, Yang Wen, Georgios Evangelidis, Kamyar Salahi, Yanzhi Wang, Sergey Tulyakov, Jian Ren

AI总结:

本研究重新审视ViT设计,提出低延迟高参数效率的超网络及细粒度联合搜索策略,所提EfficientFormerV2在ImageNet-1K上以MobileNet级别尺寸和速度实现比MobileNetV2高3.5%的top-1准确率。

摘要:

随着视觉Transformer(ViTs)在计算机视觉任务中的成功,近期的研究尝试优化ViTs的性能和复杂度,以实现其在移动设备上的高效部署。研究者提出了多种方法来加速注意力机制、改进低效设计,或引入移动端友好的轻量级卷积以形成混合架构。然而,ViT及其变体仍然比轻量级CNN(即使是多年前的MobileNet)具有更高的延迟或显著更多的参数。在实践中,延迟和尺寸对于在资源受限硬件上的高效部署都至关重要。在这项工作中,我们研究了一个核心问题:Transformer模型能否运行得像MobileNet一样快并保持相似的尺寸?我们重新审视了ViTs的设计选择,并提出了一种具有低延迟和高参数效率的新型超网络。我们进一步引入了一种新颖的针对Transformer模型的细粒度联合搜索策略,该策略通过同时优化延迟和参数数量来找到高效的架构。所提出的模型EfficientFormerV2在ImageNet-1K上,在相似延迟和参数下,其top-1准确率比MobileNetV2高出3.5%。这项工作表明,经过适当设计和优化的视觉Transformer即使在MobileNet级别的尺寸和速度下也能实现高性能。

英文摘要:

With the success of Vision Transformers (ViTs) in computer vision tasks, recent arts try to optimize the performance and complexity of ViTs to enable efficient deployment on mobile devices. Multiple approaches are proposed to accelerate attention mechanism, improve inefficient designs, or incorporate mobile-friendly lightweight convolutions to form hybrid architectures. However, ViT and its variants still have higher latency or considerably more parameters than lightweight CNNs, even true for the years-old MobileNet. In practice, latency and size are both crucial for efficient deployment on resource-constraint hardware. In this work, we investigate a central question, can transformer models run as fast as MobileNet and maintain a similar size? We revisit the design choices of ViTs and propose a novel supernet with low latency and high parameter efficiency. We further introduce a novel fine-grained joint search strategy for transformer models that can find efficient architectures by optimizing latency and number of parameters simultaneously. The proposed models, EfficientFormerV2, achieve 3.5% higher top-1 accuracy than MobileNetV2 on ImageNet-1K with similar latency and parameters. This work demonstrate that properly designed and optimized vision transformers can achieve high performance even with MobileNet-level size and speed.

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

↑