Rethinking Efficacy of Softmax for Lightweight Non-Local Neural Networks
Not on the map. Why?
Abstract (arXiv)
Non-local (NL) block is a popular module that demonstrates the capability to model global contexts. However, NL block generally has heavy computation and memory costs, so it is impractical to apply the block to high-resolution feature maps. In this paper, to investigate the efficacy of NL block, we empirically analyze if the magnitude and direction of input feature vectors properly affect the attention between vectors. The results show the inefficacy of softmax operation which is generally used to normalize the attention map of the NL block. Attention maps normalized with softmax operation highly rely upon magnitude of key vectors, and performance is degenerated if the magnitude information is removed. By replacing softmax operation with the scaling factor, we demonstrate improved performance on CIFAR-10, CIFAR-100, and Tiny-ImageNet. In Addition, our method shows robustness to embedding channel reduction and embedding weight initialization. Notably, our method makes multi-head attention employable without additional computational cost.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 18 of its 20 references that are in the map. First posted on arXiv 27 Jul 2022.
Builds on
18 of 20 references.
References · 18
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,590
- 2016Wide Residual Networkscited by 3,057
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2017Non-local Neural Networkscited by 2,290
- 2016Identity Mappings in Deep Residual Networkscited by 1,960
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2018MnasNet: Platform-Aware Neural Architecture Search for Mobilecited by 937
- 2018CCNet: Criss-Cross Attention for Semantic Segmentationcited by 717
6 more
- 2021Scaling Local Self-Attention for Parameter Efficient Visual Backbonescited by 220
- 2021SOFT: Softmax-free Transformer with Linear Complexitycited by 128
- 2019Single-Path NAS: Designing Hardware-Efficient ConvNets in less than 4 Hourscited by 87
- 2020Neural Architecture Search for Lightweight Non-Local Networkscited by 23
- 2020Normalized Attention Without Probability Cagecited by 19
- 2018Efficient Coarse-to-Fine Non-Local Module for the Detection of Small Objectscited by 6
Built on by
Citing papers per year: 2023: 2.
2 papers.