TL;DR
The Normalization-based Attention Module (NAM) replaces heavy convolutional and fully-connected attention submodules with lightweight scaling factors derived directly from Batch Normalization. By coupling these scaling factors with an $\ell_1$-norm sparsity penalty during training, NAM effectively suppresses non-salient channels and pixels while achieving lower error rates and significantly fewer added parameters than modules like CBAM and SE.
What Problem Does This Paper Address?
Popular visual attention mechanisms—such as Squeeze-and-Excitation (SENet), Bottleneck Attention Module (BAM), and Convolutional Block Attention Module (CBAM)—improve network representational power by highlighting salient channels or spatial regions. However, they typically rely on extra multi-layer perceptrons (MLPs) or convolutional layers to calculate attention weights, introducing noticeable parameter and computational overhead.
Moreover, standard attention designs overlook the intrinsic statistical properties of trained network weights. Conventional network pruning techniques (such as network slimming) show that scaling parameters in normalization layers already reflect feature importance; yet prior attention mechanisms did not exploit this relationship to suppress unimportant features.
Methods
NAM redesigns channel and spatial attention to be significantly more lightweight by tapping into batch normalization statistics:
- Channel Attention Submodule: Instead of an MLP or pooling-plus-convolution pipeline, NAM utilizes the trainable affine scaling factor $\gamma$ from standard Batch Normalization (BN), which reflects the variance and importance of each channel. The channel attention weights are computed as $W_\gamma = \gamma_i / \sum_j \gamma_j$, yielding feature responses via: $$M_c = \text{sigmoid}(W_\gamma(\text{BN}(F_1)))$$
- Spatial Attention Submodule: Applying a similar principle across the spatial dimension ("pixel normalization"), NAM learns a spatial scaling factor $\lambda$, producing weights $W_\lambda = \lambda_i / \sum_j \lambda_j$ and output: $$M_s = \text{sigmoid}(W_\lambda(\text{BN}_s(F_2)))$$
- Sparsity Regularization: Inspired by network slimming, the authors add an $\ell_1$-norm penalty directly on $\gamma$ and $\lambda$ to the overall training loss: $$\text{Loss} = \sum_{(x,y)} l(f(x, W), y) + p \sum |\gamma| + p \sum |\lambda|$$ This penalty dynamically drives scaling factors of less informative channels and spatial positions toward zero, naturally suppressing non-salient features.
Datasets
The authors evaluated their module on two standard image classification benchmarks:
- CIFAR-100: Evaluated with ResNet-50 using a penalty factor $p = 0.0001$.
- ImageNet (ILSVRC): Evaluated with MobileNetV2 using a penalty factor $p = 0.001$.
No new datasets were introduced.
Key Insights and Ideas
- Repurposing Normalization as Attention: Attention weights do not always require dedicated neural network sub-layers (MLPs or convolutions). The trainable scale parameters already inherent to normalization operations naturally quantify feature variance and channel saliency.
- Drastic Parameter Reduction: In CBAM, computing channel attention over ResNet-50 requires an overhead of ~696,320 parameters due to dimensionality-reducing MLPs. NAM reduces this overhead to just 3,840 parameters—a reduction of over 99%.
- Sparsity-Driven Saliency: Adding an $\ell_1$ penalty encourages network weights to actively drop noise and suppress background information, providing both regularized training and clearer attention maps.
Key Results
- ResNet-50 on CIFAR-100:
- Baseline ResNet-50: 22.74% Top-1 error (23.71M parameters).
- ResNet-50 + CBAM: 19.44% Top-1 error (26.24M parameters, 1.31G FLOPs).
- ResNet-50 + NAM (channel-only): 19.09% Top-1 error (23.74M parameters, 1.31G FLOPs).
-
ResNet-50 + NAM (spatial-only): 19.38% Top-1 error (23.71M parameters, 1.31G FLOPs). Both variants outperformed SE (20.29%), BAM (19.97%), TAM (20.15%), and CBAM while adding virtually zero parameter overhead over the baseline.
-
MobileNetV2 on ImageNet:
- Baseline MobileNetV2: 30.52% Top-1 error (3.51M parameters, 0.31G FLOPs).
- MobileNetV2 + CBAM: 29.74% Top-1 error (3.54M parameters, 0.32G FLOPs).
- MobileNetV2 + NAM: 29.34% Top-1 error / 10.18% Top-5 error (3.51M parameters, 0.32G FLOPs), outperforming SE, BAM, and CBAM without increasing parameter count beyond rounding.
Limitations and Future Work
- Hyperparameter Sensitivity: The model introduces a regularization penalty coefficient $p$ balancing the task loss and the weight penalties; the authors note that further study is needed on hyperparameter tuning and alternative module integration strategies.
- Scope of Validation: Experiments are currently limited to image classification on ResNet-50 and MobileNetV2. Evaluating NAM on downstream tasks such as object detection, instance segmentation, or vision transformers remains an open direction.
- Integration with Compression: Because NAM natively induces weight sparsity, explicitly linking NAM with structural pruning or model quantization pipelines is left as future work.
Summary updated