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

FasterViT:具有分层注意力的快速视觉Transformer

FasterViT: Fast Vision Transformers with Hierarchical Attention

NVIDIA(英伟达)

Ali Hatamizadeh, Greg Heinrich, Hongxu Yin, Andrew Tao, Jose M. Alvarez, Jan Kautz, Pavlo Molchanov

AI总结:

本文提出FasterViT,一种混合CNN-ViT网络,通过分层注意力(HAT)降低全局自注意力计算成本,在分类、检测和分割任务上实现高准确率与高图像吞吐量的SOTA帕累托前沿,并可作为即插即用模块增强现有网络。

摘要:

我们设计了一个新的混合CNN-ViT神经网络家族,命名为FasterViT,重点关注计算机视觉(CV)应用中的高图像吞吐量。FasterViT结合了CNN中快速局部表示学习的优势和ViT中全局建模的特性。我们新引入的分层注意力(Hierarchical Attention,HAT)方法将具有二次复杂度的全局自注意力分解为计算成本降低的多级注意力。我们受益于高效的基于窗口的自注意力。每个窗口都可以访问专用的carrier tokens,这些carrier tokens参与局部和全局表示学习。在高层面上,全局自注意力能够以较低成本实现高效的跨窗口通信。FasterViT在准确率和图像吞吐量方面实现了SOTA帕累托前沿。我们已在包括分类、目标检测和分割在内的各种CV任务上广泛验证了其有效性。我们还表明,HAT可以作为现有网络的即插即用模块,并增强它们。我们进一步证明,对于高分辨率图像,FasterViT比竞争对手具有显著更快的速度和更高的准确率。代码可在https://github.com/NVlabs/FasterViT获取。

英文摘要:

We design a new family of hybrid CNN-ViT neural networks, named FasterViT, with a focus on high image throughput for computer vision (CV) applications. FasterViT combines the benefits of fast local representation learning in CNNs and global modeling properties in ViT. Our newly introduced Hierarchical Attention (HAT) approach decomposes global self-attention with quadratic complexity into a multi-level attention with reduced computational costs. We benefit from efficient window-based self-attention. Each window has access to dedicated carrier tokens that participate in local and global representation learning. At a high level, global self-attentions enable the efficient cross-window communication at lower costs. FasterViT achieves a SOTA Pareto-front in terms of accuracy and image throughput. We have extensively validated its effectiveness on various CV tasks including classification, object detection and segmentation. We also show that HAT can be used as a plug-and-play module for existing networks and enhance them. We further demonstrate significantly faster and more accurate performance than competitive counterparts for images with high resolution. Code is available at https://github.com/NVlabs/FasterViT.

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

↑