Visual attention network

Meng-Hao Guo, Cheng-Ze Lu, Zheng-Ning Liu, Ming-Ming Cheng, Shi-Min Hu

Introduction

The Visual Attention Network (VAN) introduces a novel "Large Kernel Attention" (LKA) mechanism designed to bridge the gap between Convolutional Neural Networks (CNNs) and Vision Transformers (ViTs). While CNNs excel at capturing local 2D structures through inductive bias, they often rely on static weights and limited receptive fields. Conversely, ViTs offer adaptive weighting and long-range dependency modeling but suffer from quadratic computational complexity and a lack of 2D spatial awareness. VAN addresses these limitations by decomposing large-kernel convolutions into efficient components, achieving state-of-the-art performance with linear complexity.

Methods: Large Kernel Attention (LKA)

The core innovation of VAN is the Large Kernel Attention (LKA) module. Standard large-kernel convolutions (e.g., $21 \times 21$) are computationally prohibitive. VAN overcomes this by decomposing the operation into three distinct parts:

  • Spatial Local Convolution: A $5 \times 5$ depth-wise convolution to capture local patterns.
  • Spatial Long-range Convolution: A $7 \times 7$ depth-wise dilated convolution (dilation rate 3) to capture distant dependencies.
  • Channel Convolution: A $1 \times 1$ convolution to model inter-channel relationships.

This decomposition mimics the receptive field of a $21 \times 21$ kernel while significantly reducing parameters and FLOPs. The LKA module generates an attention map that adaptively scales input features, providing the benefits of self-attention without the need for Softmax or expensive dot-product operations.

Key Results

VAN was evaluated across multiple benchmarks, including ImageNet-1K for classification, COCO for detection, and ADE20K for semantic segmentation.

Top-1 accuracy vs. Model FLOPs on ImageNet-1K.

As shown in the figure above, VAN demonstrates a superior accuracy-throughput trade-off compared to prominent architectures like Swin Transformers and ConvNeXt. Key highlights include:

  • ImageNet-1K: VAN-B6 achieved a Top-1 accuracy of 87.8%.
  • Semantic Segmentation: On ADE20K, VAN-B2 outperformed Swin-T by 4% mIoU (50.1% vs. 46.1%).
  • Object Detection: On COCO, VAN-B2 achieved 48.8% AP, surpassing Swin-T's 46.2%.

Qualitative analysis using Grad-CAM further revealed that VAN focuses more precisely on target objects compared to the more "scattered" attention patterns of its predecessors.

Conclusion

By rethinking attention as adaptive scaling through decomposed large kernels, the Visual Attention Network provides a highly efficient and effective backbone for various vision tasks. It combines the 2D inductive bias of CNNs with the dynamic modeling capabilities of Transformers. Future research may explore extending LKA to 3D data or large-scale self-supervised pre-training.

Summary updated

BibTeX
@article{guo2023visual,
  author = {Meng-Hao Guo and Cheng-Ze Lu and Zheng-Ning Liu and Ming-Ming Cheng and Shi-Min Hu},
  title = {{Visual attention network}},
  journal = {Comput. Vis. Media},
  year = {2023},
  doi = {10.1007/s41095-023-0364-2},
}
Figure