arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2204.12196cs.CV
收藏

自适应分裂融合 Transformer

Adaptive Split-Fusion Transformer

Fudan University(复旦大学);Singapore Management University(新加坡管理大学);City University of Hong Kong(香港城市大学)

Zixuan Su, Hao Zhang, Jingjing Chen, Lei Pang, Chong-Wah Ngo, Yu-Gang Jiang

AI总结:

本文提出 ASF-former,通过通道均分双路处理及基于视觉线索的自适应加权融合卷积与注意力,并在 ImageNet-1K 等基准上以相近算力取得更优准确率。

摘要:

用于视觉内容理解的神经网络最近已从卷积神经网络(CNN)演进到 transformer。前者(CNN)依靠小窗口卷积核捕获区域线索,展现出扎实的局部表达能力;相反,后者(transformer)在局部区域之间建立长距离全局连接,以进行整体学习。受这种互补特性启发,人们越来越关注设计混合模型,以充分利用每种技术。现有混合模型只是将卷积替换为线性投影的简单近似,或将卷积分支与注意力并列,而没有考虑局部/全局建模的重要性。为解决该问题,我们提出了一种名为 Adaptive Split-Fusion Transformer(ASF-former)的新型混合模型,以自适应权重区别对待卷积分支和注意力分支。具体而言,ASF-former 编码器将特征通道均等分成两半,以适配双路输入;随后,双路输出利用根据视觉线索计算出的加权标量进行融合。出于效率考虑,我们还紧凑地设计了卷积分支。在 ImageNet-1K、CIFAR-10 和 CIFAR-100 等标准基准上的大量实验表明,在相近条件下(12.9G MACs/56.7M 参数,无大规模预训练),我们的 ASF-former 在准确率上优于 CNN、transformer 同类模型及混合先驱模型(在 ImageNet-1K 上达到 83.9%)。代码位于:https://github.com/szx503045266/ASF-former。

英文摘要:

Neural networks for visual content understanding have recently evolved from convolutional ones (CNNs) to transformers. The prior (CNN) relies on small-windowed kernels to capture the regional clues, demonstrating solid local expressiveness. On the contrary, the latter (transformer) establishes long-range global connections between localities for holistic learning. Inspired by this complementary nature, there is a growing interest in designing hybrid models to best utilize each technique. Current hybrids merely replace convolutions as simple approximations of linear projection or juxtapose a convolution branch with attention, without concerning the importance of local/global modeling. To tackle this, we propose a new hybrid named Adaptive Split-Fusion Transformer (ASF-former) to treat convolutional and attention branches differently with adaptive weights. Specifically, an ASF-former encoder equally splits feature channels into half to fit dual-path inputs. Then, the outputs of dual-path are fused with weighting scalars calculated from visual cues. We also design the convolutional path compactly for efficiency concerns. Extensive experiments on standard benchmarks, such as ImageNet-1K, CIFAR-10, and CIFAR-100, show that our ASF-former outperforms its CNN, transformer counterparts, and hybrid pilots in terms of accuracy (83.9% on ImageNet-1K), under similar conditions (12.9G MACs/56.7M Params, without large-scale pre-training). The code is available at: https://github.com/szx503045266/ASF-former.

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

↑