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

通过小波神经算子为 Vision Transformer 实现多尺度注意力

Multiscale Attention via Wavelet Neural Operators for Vision Transformers

Isfahan University of Technology(伊斯法罕理工大学);LNEC(国家土木工程实验室)

Anahita Nekoozadeh, Mohammad Reza Ahmadzadeh, Zahra Mardani

AI总结:

针对高分辨率 ViT 中自注意力二次复杂度及 AFNO 难以表示中小尺度结构的问题,本文提出线性复杂度的多尺度小波注意力 MWA,并在 CIFAR 与 Tiny-ImageNet 上显著优于 AFNO 和 GFN。

摘要:

Transformer 已在计算机视觉领域取得广泛成功。其核心是自注意力(Self-Attention,SA)机制,这是一种归纳偏置,通过加权基将输入中的每个 token 与其他所有 token 关联起来。标准 SA 机制的复杂度随序列长度呈二次增长,这限制了它在高分辨率视觉中出现的长序列上的应用。近来,受偏微分方程(PDE)算子学习的启发,自适应傅里叶神经算子(Adaptive Fourier Neural Operators,AFNO)被提出,用于基于全局卷积的高分辨率注意力,并通过 FFT 高效实现。然而,AFNO 的全局滤波不能很好地表示自然图像中常见的小尺度和中尺度结构。为利用由粗到细的尺度结构,我们借助小波神经算子提出了多尺度小波注意力(Multiscale Wavelet Attention,MWA),其在序列大小上仅产生线性复杂度。我们用 MWA 替换 ViT 中的注意力,并在 CIFAR 和 Tiny-ImageNet 分类任务上的实验表明,相比 AFNO 和 Global Filter Network(GFN)等基于傅里叶的替代注意力方法,MWA 取得了显著提升。

英文摘要:

Transformers have achieved widespread success in computer vision. At their heart, there is a Self-Attention (SA) mechanism, an inductive bias that associates each token in the input with every other token through a weighted basis. The standard SA mechanism has quadratic complexity with the sequence length, which impedes its utility to long sequences appearing in high resolution vision. Recently, inspired by operator learning for PDEs, Adaptive Fourier Neural Operators (AFNO) were introduced for high resolution attention based on global convolution that is efficiently implemented via FFT. However, the AFNO global filtering cannot well represent small and moderate scale structures that commonly appear in natural images. To leverage the coarse-to-fine scale structures we introduce a Multiscale Wavelet Attention (MWA) by leveraging wavelet neural operators which incurs linear complexity in the sequence size. We replace the attention in ViT with MWA and our experiments with CIFAR and Tiny-ImageNet classification demonstrate significant improvement over alternative Fourier-based attentions such as AFNO and Global Filter Network (GFN).

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

↑