ParCNetV2: Oversized Kernel with Enhanced Attention

Ruihan Xu, Haokui Zhang, Wenze Hu, Shiliang Zhang, Xiaoyu Wang
11/14/2022
cs.CV
transformer-attention

Official code: XuRuihan/ParCNetV2 (11 stars, Python, MIT, last commit 2024-03-03).

Abstract

Transformers have shown great potential in various computer vision tasks. By borrowing design concepts from transformers, many studies revolutionized CNNs and showed remarkable results.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

XuRuihan/ParCNetV2Official100%
MIT

Official implementation of ParCNetV2

113Python, ShellMar 13, 20232 years agoMIT

Similar Papers

Cite this paper

@article{xu2022parcnetv,
  title  = {ParCNetV2: Oversized Kernel with Enhanced Attention},
  author = {Ruihan Xu and Haokui Zhang and Wenze Hu and Shiliang Zhang and Xiaoyu Wang},
  year   = {2022},
  eprint = {2211.07157},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.07157}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.07157.svg)](https://codeofpaper.com/paper/2211.07157)

Discussion