Mix-Pooling Strategy for Attention Mechanism

Shanshan Zhong, Wushao Wen, Jinghui Qin
8/22/2022
cs.LG
transformer-attention

Official code: Qrange-group/SPEM (2 stars, Python, MIT, PyTorch, last commit 2023-06-16).

Abstract

Recently many effective attention modules are proposed to boot the model performance by exploiting the internal information of convolutional neural networks in computer vision. In general, many previous works ignore considering the design of the pooling strategy of the attention mechanism since they adopt the global average pooling for granted, which hinders the further improvement of the performance of the attention mechanism.

Show full abstract

However, we empirically find and verify a phenomenon that the simple linear combination of global max-pooling and global min-pooling can produce pooling strategies that match or exceed the performance of global average pooling. Based on this empirical observation, we propose a simple-yet-effective attention module SPEM, which adopts a self-adaptive pooling strategy based on global max-pooling and global min-pooling and a lightweight module for producing the attention map. The effectiveness of SPEM is demonstrated by extensive experiments on widely-used benchmark datasets and popular attention networks.

View on arXivView PDF

Code Implementations(1)

Qrange-group/SPEMOfficial100%
PyTorchMIT

MMM'23, SPEM adopts a self-adaptive pooling strategy based on global max-pooling, global min-pooling and a lightweight module for producing the attention map.

21PythonAug 22, 20223 years agoMIT
image-classificationpoolingpytorchself-attention

Similar Papers

Cite this paper

@article{zhong2022mixpooling,
  title  = {Mix-Pooling Strategy for Attention Mechanism},
  author = {Shanshan Zhong and Wushao Wen and Jinghui Qin},
  year   = {2022},
  eprint = {2208.10322},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2208.10322}
}

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/2208.10322.svg)](https://codeofpaper.com/paper/2208.10322)

Discussion