Skip to main content
QUICK REVIEW

[论文解读] Adaptive Frequency Filters As Efficient Global Token Mixers

Zhipeng Huang, Zhizheng Zhang|arXiv (Cornell University)|Jul 26, 2023
Infrared Target Detection MethodologiesEngineering被引用 10
一句话总结

AFF 引入自适应频率过滤(AFF)作为全球 token 混合器,使用基于 FFT 的频域滤波,在频域实现大核、语义自适应的 token 混合,成本低,形成 AFFNet 骨干。

ABSTRACT

Recent vision transformers, large-kernel CNNs and MLPs have attained remarkable successes in broad vision tasks thanks to their effective information fusion in the global scope. However, their efficient deployments, especially on mobile devices, still suffer from noteworthy challenges due to the heavy computational costs of self-attention mechanisms, large kernels, or fully connected layers. In this work, we apply conventional convolution theorem to deep learning for addressing this and reveal that adaptive frequency filters can serve as efficient global token mixers. With this insight, we propose Adaptive Frequency Filtering (AFF) token mixer. This neural operator transfers a latent representation to the frequency domain via a Fourier transform and performs semantic-adaptive frequency filtering via an elementwise multiplication, which mathematically equals to a token mixing operation in the original latent space with a dynamic convolution kernel as large as the spatial resolution of this latent representation. We take AFF token mixers as primary neural operators to build a lightweight neural network, dubbed AFFNet. Extensive experiments demonstrate the effectiveness of our proposed AFF token mixer and show that AFFNet achieve superior accuracy and efficiency trade-offs compared to other lightweight network designs on broad visual tasks, including visual recognition and dense prediction tasks.

研究动机与目标

  • 激励轻量级网络实现高效的全局 token 混合,而无需代价高昂的自注意力或大型全连接层。
  • 提出自适应频率过滤(AFF)作为通过 FFT 基滤实现的语义自适应全局 token 混合器。
  • 表明 AFF token 混合器能够实现大尺寸有效混合核且降低计算复杂度。
  • 将 AFF 块组装成 AFFNet,并在视觉任务上展示出强劲的精度-效率权衡。

提出的方法

  • 将潜在 token 转移到频域使用 2D FFT。
  • 通过在频率表示上运行的轻量级 MLP 学习实例自适应的频域掩码。
  • 对学习到的掩码与频率表示应用 Hadamard 乘积并进行逆 FFT 以获得更新的 token。
  • 通过卷积定理,将 AFF 解释为在空间域的动态大核深度卷积。
  • 将 AFF token mixer 集成到带通道混合(MBConv + LN)和残差连接的 AFF Block 中,形成 AFFNet。
  • 提供三种 AFFNet 变体(AFFNet-T, AFFNet-ET, AFFNet),容量逐步提升,并在分类、检测和分割任务上进行评估。

实验结果

研究问题

  • RQ1潜在空间中的自适应频率过滤能否作为轻量级视觉骨干的高效全局 token 混合器?
  • RQ2AFF 与现有的频域算子和空间域 token 混合器在精度和效率方面的比较如何?
  • RQ3通道特定的语义自适应掩码对 token 混合性能有何影响?
  • RQ4AFFNet 在 ImageNet、COCO、ADE20K 和 VOC 上的精度与效率权衡是什么?

主要发现

  • 通过可学习的频域掩码进行的 AFF token 混合,提供等同于带语义自适应的大核动态卷积的全局 token 混合。
  • AFFNet 在 ImageNet-1K 上获得 79.8% 的 Top-1 精度,参数量 5.5M,FLOPs 1.5G,在同等规模的轻量模型中表现更优。
  • AFFNet-ET 达到 73.0% Top-1,参数 1.4M,FLOPs 0.4G,展现极致轻量下的强劲效率。
  • AFFNet T、-ET 以及标准 AFFNet 在分类、检测和分割任务上提供了比基线和其他频域方法(例如 AFNO、GFNet、FNO)更好的精度-效率权衡。
  • 消融研究表明用单位映射替换 AFF 或在原始域应用滤波会降低性能,强调了频域、通道特异设计的重要性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。