arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2211.07157cs.CV
收藏

ParCNetV2:具有增强注意力的简化内核

ParCNetV2: Oversized Kernel with Enhanced Attention

Peking University(北京大学);Intellifusion(云天励飞);Harbin Institute of Technology (Shenzhen)(哈尔滨工业大学(深圳))

Ruihan Xu, Haokui Zhang, Wenze Hu, Shiliang Zhang, Xiaoyu Wang

摘要:

Transformers在各种计算机视觉任务中表现出了巨大的潜力。通过借鉴Transformers的设计概念,许多研究彻底改变了CNN,并取得了显着的成果。本文属于这一研究方向。具体来说,我们提出了一种新的卷积神经网络ParCNetV 2,它扩展了具有超大卷积和分叉门单元的位置感知循环卷积(ParCNet),以增强注意力。超大卷积采用两倍于输入大小的内核,通过全局感受野对长程依赖性进行建模。同时,它通过从卷积核中去除移位不变属性来实现隐式位置编码,即,当核大小是输入大小的两倍时,不同空间位置处的有效核是不同的。分叉门单元实现类似于Transformers中的自注意的注意力机制。它通过两个分支的元素乘法来应用,一个用作特征变换,而另一个用作注意力权重。此外,我们还引入了一个统一的局部-全局卷积块来统一早期和后期卷积块的设计。大量的实验证明了我们的方法优于其他卷积神经网络和混合模型,结合CNN和Transformers。代码将被释放。

英文摘要:

Transformers have shown great potential in various computer vision tasks. By borrowing design concepts from transformers, many studies revolutionized CNNs and showed remarkable results. This paper falls in this line of studies. Specifically, we propose a new convolutional neural network, ParCNetV2, that extends position-aware circular convolution (ParCNet) with oversized convolutions and bifurcate gate units to enhance attention. The oversized convolution employs a kernel with twice the input size to model long-range dependencies through a global receptive field. Simultaneously, it achieves implicit positional encoding by removing the shift-invariant property from convolution kernels, i.e., the effective kernels at different spatial locations are different when the kernel size is twice as large as the input size. The bifurcate gate unit implements an attention mechanism similar to self-attention in transformers. It is applied through element-wise multiplication of the two branches, one serves as feature transformation while the other serves as attention weights. Additionally, we introduce a uniform local-global convolution block to unify the design of the early and late stage convolution blocks. Extensive experiments demonstrate the superiority of our method over other convolutional neural networks and hybrid models that combine CNNs and transformers. Code will be released.

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

↑