arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2303.03932cs.CVcs.AIcs.LG
收藏

用于视觉的基于FFT的动态Token混合器

FFT-based Dynamic Token Mixer for Vision

Rikkyo University(立教大学);AnyTech Co., Ltd.(AnyTech有限公司)

Yuki Tatsunami, Masato Taki

AI总结:

针对MHSA处理高分辨率图像复杂度高的问题,提出基于FFT的Dynamic Filter及DFFormer、CDFFormer,在图像分类和下游任务中展现出优异的高分辨率吞吐量与内存效率。

摘要:

配备多头自注意力(MHSA)的模型已在计算机视觉中取得显著性能。其计算复杂度与输入特征图中像素数量的平方成正比,导致处理缓慢,尤其是在处理高分辨率图像时。为规避这一问题,研究者提出了新型token混合器作为MHSA的替代方案:基于FFT的token混合器包含类似于MHSA的全局操作,但计算复杂度更低。然而,尽管基于FFT的token混合器具有吸引人的特性,其与快速发展的MetaFormer架构的兼容性尚未得到仔细检验。为此,我们提出了一种名为Dynamic Filter的新型token混合器,以及DFFormer和CDFFormer两种新型图像识别模型,以弥补上述差距。图像分类和下游任务的结果、分析及可视化表明,我们的模型是有帮助的。值得注意的是,它们在处理高分辨率图像识别时的吞吐量和内存效率十分出色。我们的结果表明,Dynamic Filter是应当被认真考虑的token混合器选项之一。代码可在https://github.com/okojoalg/dfformer获取。

英文摘要:

Multi-head-self-attention (MHSA)-equipped models have achieved notable performance in computer vision. Their computational complexity is proportional to quadratic numbers of pixels in input feature maps, resulting in slow processing, especially when dealing with high-resolution images. New types of token-mixer are proposed as an alternative to MHSA to circumvent this problem: an FFT-based token-mixer involves global operations similar to MHSA but with lower computational complexity. However, despite its attractive properties, the FFT-based token-mixer has not been carefully examined in terms of its compatibility with the rapidly evolving MetaFormer architecture. Here, we propose a novel token-mixer called Dynamic Filter and novel image recognition models, DFFormer and CDFFormer, to close the gaps above. The results of image classification and downstream tasks, analysis, and visualization show that our models are helpful. Notably, their throughput and memory efficiency when dealing with high-resolution image recognition is remarkable. Our results indicate that Dynamic Filter is one of the token-mixer options that should be seriously considered. The code is available at https://github.com/okojoalg/dfformer

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

↑