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

用于空间归纳偏置的多维 Hyena

Multi-Dimensional Hyena for Spatial Inductive Bias

Blavatnik School of Computer Science, Tel Aviv University(特拉维夫大学布拉瓦尼克计算机科学学院)

Itamar Zimerman, Lior Wolf

AI总结:

本文提出将 Hyena 层泛化到多维的 Hyena N-D,以替代自注意力机制,在 ViT、Swin、DeiT 等架构及小数据集场景下提升性能,并验证了 Hyena 与传统注意力混合方案的持续增益。

摘要:

近年来,Vision Transformer 越来越受到计算机视觉研究者的关注。然而,这些 Transformer 相对于 CNN 的优势只有在大型数据集上训练时才能充分体现,这主要是由于 Transformer 自注意力机制中针对空间局部性的归纳偏置有所减弱。在这项工作中,我们提出了一种不依赖自注意力的数据高效 Vision Transformer。相反,它采用了对最近提出的 Hyena 层进行多轴泛化的新颖方法。我们提出了几种获得这种泛化的替代方案,并从经验和理论两个角度深入探讨了它们独特的区别和考量。我们的实验结果表明,所提出的 Hyena N-D 层在多个数据集上提升了各种 Vision Transformer 架构(如 ViT、Swin 和 DeiT)的性能。此外,在小数据集场景下,我们基于 Hyena 的 ViT 优于近期文献中专门为解决相同挑战而设计的 ViT 变体,即针对小数据集工作或将图像特定的归纳偏置引入自注意力机制的方法。最后,我们表明,一种混合方法——在 ViT 的前几层使用基于 Hyena N-D 的层,随后使用包含传统注意力的层——能够持续提升各种 Vision Transformer 架构的性能。

英文摘要:

In recent years, Vision Transformers have attracted increasing interest from computer vision researchers. However, the advantage of these transformers over CNNs is only fully manifested when trained over a large dataset, mainly due to the reduced inductive bias towards spatial locality within the transformer's self-attention mechanism. In this work, we present a data-efficient vision transformer that does not rely on self-attention. Instead, it employs a novel generalization to multiple axes of the very recent Hyena layer. We propose several alternative approaches for obtaining this generalization and delve into their unique distinctions and considerations from both empirical and theoretical perspectives. Our empirical findings indicate that the proposed Hyena N-D layer boosts the performance of various Vision Transformer architectures, such as ViT, Swin, and DeiT across multiple datasets. Furthermore, in the small dataset regime, our Hyena-based ViT is favorable to ViT variants from the recent literature that are specifically designed for solving the same challenge, i.e., working with small datasets or incorporating image-specific inductive bias into the self-attention mechanism. Finally, we show that a hybrid approach that is based on Hyena N-D for the first layers in ViT, followed by layers that incorporate conventional attention, consistently boosts the performance of various vision transformer architectures.

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

↑