Unifying Nonlocal Blocks for Neural Networks
Lei Zhu, Qi She, Duo Li, Yanye Lu, Xuejing Kang, Jie Hu, Changhu Wang
Abstract
The nonlocal-based blocks are designed for capturing long-range spatial-temporal dependencies in computer vision tasks. Although having shown excellent performance, they still lack the mechanism to encode the rich, structured information among elements in an image or video. In this paper, to theoretically analyze the property of these nonlocal-based blocks, we provide a new perspective to interpret them, where we view them as a set of graph filters generated on a fully-connected graph. Specifically, when choosing the Chebyshev graph filter, a unified formulation can be derived for explaining and analyzing the existing nonlocal-based blocks (e.g., nonlocal block, nonlocal stage, double attention block). Furthermore, by concerning the property of spectral, we propose an efficient and robust spectral nonlocal block, which can be more robust and flexible to catch long-range dependencies when inserted into deep neural networks than the existing nonlocal blocks. Experimental results demonstrate the clear-cut improvements and practical applicabilities of our method on image classification, action recognition, semantic segmentation, and person re-identification tasks. Code are available at https: //github.com/zh460045050/SNL_ICCV2021 .
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers1
Ask how each one uses itBuilds on3
- Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- CCNet: Criss-Cross Attention for Semantic SegmentationZilong Huang, Xinggang Wang, Lichao Huang, Chang Huang et al.ICCV 2019 · 2,972 citations
Related papers
- Poly-NL: Linear Complexity Non-local Layers With 3rd Order PolynomialsFrancesca Babiloni, Ioannis Marras, Filippos Kokkinos, Jiankang Deng et al.ICCV 2021 · 14 citations
- Extremely Compact Non-local Representation LearningAnsheng You, Xiangzeng Zhou, Yingya Zhang, Pan Pan et al.KDD 2021
- Non-Local Neural Networks With Grouped Bilinear Attentional TransformsLu Chi, Zehuan Yuan, Yadong Mu, Changhu WangCVPR 2020
- A General Graph Spectral Wavelet Convolution via Chebyshev Order DecompositionNian Liu, Xiaoxin He, Thomas Laurent, Francesco Di Giovanni et al.ICML 2025 · 1 citation
- BiCnet-TKS: Learning Efficient Spatial-Temporal Representation for Video Person Re-IdentificationRuibing Hou, Hong Chang, Bingpeng Ma, Rui Huang et al.CVPR 2021
