Skip to main content
QUICK REVIEW

[Paper Review] Switchable Self-attention Module

Shanshan Zhong, Wushao Wen|arXiv (Cornell University)|Sep 13, 2022
Advanced Neural Network ApplicationsComputer Science4 citations
TL;DR

This paper proposes a Switchable Excitation Module (SEM) that dynamically selects and integrates multiple attention operators (e.g., FC, CNN, IE) based on input features to improve channel-wise feature recalibration in convolutional neural networks. SEM achieves state-of-the-art performance on CIFAR-10 and CIFAR-100, with gains up to 7.31% Top-1 accuracy over ResNet362, demonstrating superior adaptability and generalization across network depths and scenarios.

ABSTRACT

Attention mechanism has gained great success in vision recognition. Many works are devoted to improving the effectiveness of attention mechanism, which finely design the structure of the attention operator. These works need lots of experiments to pick out the optimal settings when scenarios change, which consumes a lot of time and computational resources. In addition, a neural network often contains many network layers, and most studies often use the same attention module to enhance different network layers, which hinders the further improvement of the performance of the self-attention mechanism. To address the above problems, we propose a self-attention module SEM. Based on the input information of the attention module and alternative attention operators, SEM can automatically decide to select and integrate attention operators to compute attention maps. The effectiveness of SEM is demonstrated by extensive experiments on widely used benchmark datasets and popular self-attention networks.

Motivation & Objective

  • Address the limitation of using a single fixed attention operator across all network layers, which hinders optimal performance in varying scenarios.
  • Overcome the high computational cost and time required to manually search for optimal attention configurations across different network depths and datasets.
  • Enable automatic, dynamic selection and integration of multiple excitation operators (e.g., FC, ECA, IE) based on input-dependent criteria to enhance feature recalibration.
  • Improve model generalization and reduce overfitting by introducing a learnable switching mechanism that acts as a regularizer.
  • Demonstrate consistent performance gains across deep and shallow backbone networks (ResNet47 to ResNet362) on standard vision benchmarks.

Proposed method

  • Design a switchable excitation module (SEM) that takes input feature maps and applies a set of predefined excitation operators (e.g., fully connected, 1D convolution, instance enhancement) in parallel.
  • Use a learnable decision module to compute attention weights for each excitation operator using a differentiable gating mechanism based on input features.
  • Apply a Sigmoid activation function to the decision module output to produce soft attention weights that determine the contribution of each operator.
  • Integrate the outputs of all excitation operators via a weighted sum, where the weights are dynamically predicted by the decision module.
  • Train the entire network end-to-end, with the decision module jointly optimized to select the most effective operator combination per input.
  • Use a modular, plug-and-play design so SEM can be easily inserted into existing CNN architectures without architectural changes.

Experimental results

Research questions

  • RQ1Can different network layers benefit from different types of excitation operators, rather than using a single fixed operator across all layers?
  • RQ2Does combining multiple excitation operators through a dynamic selection mechanism improve performance compared to using a single operator?
  • RQ3Can the proposed switchable mechanism adaptively select the most effective operator(s) based on input content and network depth?
  • RQ4Does the dynamic switching mechanism provide regularization benefits, reducing overfitting especially in low-data regimes?
  • RQ5How does the performance of the switchable module scale across different backbone depths (e.g., ResNet47 to ResNet362) and datasets (CIFAR-10, CIFAR-100)?

Key findings

  • SEM achieves a 2.00% absolute improvement in Top-1 accuracy on CIFAR-100 when applied to ResNet362, increasing from 70.41% to 77.72%.
  • On ResNet164, SEM improves Top-1 accuracy by 1.72% on CIFAR-10 and 2.43% on CIFAR-100, demonstrating consistent gains across different depths.
  • The performance of SEM increases with the number of excitation operators (N) in the ensemble: Top-1 accuracy rises from 75.28% (N=1) to 76.76% (N=3) on CIFAR-100.
  • Removing the decision module (fixing weights to 1) reduces Top-1 accuracy by 0.47% on CIFAR-100, confirming the effectiveness of the dynamic switching mechanism.
  • Using Sigmoid as the activation function in the decision module yields the best performance (76.76% on CIFAR-100), while ReLU and LeakyReLU perform poorly, indicating sensitivity to nonlinearity type.
  • In the absence of data augmentation, SEM achieves 89.58% Top-1 accuracy on CIFAR-10, outperforming ResNet164 (87.18%) and SENet (88.24%), suggesting a regularization effect.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.