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

RaftMLP:没有注意力和更少的空间局部性可以做多少事情?

RaftMLP: How Much Can Be Done Without Attention and with Less Spatial Locality?

Rikkyo University(立教大学);AnyTech Co., Ltd.(AnyTech株式会社)

Yuki Tatsunami, Masato Taki

摘要:

在过去的十年里,CNN一直在计算机视觉领域占据着至高无上的地位,但最近,Transformer正在崛起。然而,自注意的二次计算成本已经成为实际应用中的一个严重问题。在这种背景下,已经有很多关于没有CNN和自我关注的架构的研究。特别是,MLP混合器是一种使用MLP设计的简单架构,精度可与视觉Transformer媲美。然而,这种架构中唯一的归纳偏差是令牌的嵌入。这使得将非卷积(或非局部)电感偏置纳入架构的可能性成为可能,因此我们使用了两个简单的想法将电感偏置纳入MLP混频器,同时利用其捕获全局相关性的能力。一种方法是垂直和水平地划分令牌混合块。另一种方法是在令牌混合的一些通道中使空间相关性更密集。通过这种方法,我们能够提高MLP混频器的精度,同时降低其参数和计算复杂性。RaftMLP-S小型模型在每次计算的参数和效率方面与最先进的基于全局MLP的模型相当。此外,我们还利用双三次插值解决了全局MLP模型的固定输入图像分辨率问题。我们证明了这些模型可以作为架构的骨干应用于下游任务,如目标检测。然而,它没有显著的性能,并提到需要为基于全局MLP的模型的下游任务提供特定于MLP的架构。PyTorch版本的源代码可在\url{https://github.com/okojoalg/raft-mlp}上获得。

英文摘要:

For the past ten years, CNN has reigned supreme in the world of computer vision, but recently, Transformer has been on the rise. However, the quadratic computational cost of self-attention has become a serious problem in practice applications. There has been much research on architectures without CNN and self-attention in this context. In particular, MLP-Mixer is a simple architecture designed using MLPs and hit an accuracy comparable to the Vision Transformer. However, the only inductive bias in this architecture is the embedding of tokens. This leaves open the possibility of incorporating a non-convolutional (or non-local) inductive bias into the architecture, so we used two simple ideas to incorporate inductive bias into the MLP-Mixer while taking advantage of its ability to capture global correlations. A way is to divide the token-mixing block vertically and horizontally. Another way is to make spatial correlations denser among some channels of token-mixing. With this approach, we were able to improve the accuracy of the MLP-Mixer while reducing its parameters and computational complexity. The small model that is RaftMLP-S is comparable to the state-of-the-art global MLP-based model in terms of parameters and efficiency per calculation. In addition, we tackled the problem of fixed input image resolution for global MLP-based models by utilizing bicubic interpolation. We demonstrated that these models could be applied as the backbone of architectures for downstream tasks such as object detection. However, it did not have significant performance and mentioned the need for MLP-specific architectures for downstream tasks for global MLP-based models. The source code in PyTorch version is available at \url{https://github.com/okojoalg/raft-mlp}.

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

↑