[Paper Review] DIANet: Dense-and-Implicit Attention Network
This paper proposes DIANet, a novel framework that shares a single attention module—specifically a modified LSTM—across all layers within each stage of a deep network to enable dense, implicit feature integration. By leveraging parameter sharing and long-range dependency modeling via DIA-LSTM, the method improves image classification accuracy and stabilizes training, even without batch normalization or skip connections, demonstrating strong regularization effects.
Attention networks have successfully boosted the performance in various vision problems. Previous works lay emphasis on designing a new attention module and individually plug them into the networks. Our paper proposes a novel-and-simple framework that shares an attention module throughout different network layers to encourage the integration of layer-wise information and this parameter-sharing module is referred as Dense-and-Implicit-Attention (DIA) unit. Many choices of modules can be used in the DIA unit. Since Long Short Term Memory (LSTM) has a capacity of capturing long-distance dependency, we focus on the case when the DIA unit is the modified LSTM (refer as DIA-LSTM). Experiments on benchmark datasets show that the DIA-LSTM unit is capable of emphasizing layer-wise feature interrelation and leads to significant improvement of image classification accuracy. We further empirically show that the DIA-LSTM has a strong regularization ability on stabilizing the training of deep networks by the experiments with the removal of skip connections or Batch Normalization in the whole residual network. The code is released at https://github.com/gbup-group/DIANet.
Motivation & Objective
- To address the limitation of existing attention mechanisms that are individually plugged into each layer without cross-layer interaction.
- To improve feature representation by enabling dense, implicit communication between layers through a shared attention module.
- To investigate whether a shared attention mechanism can stabilize training of deep networks, especially when key components like skip connections or batch normalization are removed.
- To evaluate the regularization capability of the proposed framework in reducing overfitting and improving generalization.
Proposed method
- The framework introduces a Dense-and-Implicit-Attention (DIA) unit that shares a single attention module across all layers in the same stage of a residual network.
- The DIA unit consists of three components: feature extraction via global average pooling, processing via a shared LSTM to model long-range dependencies, and recalibration via channel-wise multiplication.
- The LSTM in the DIA unit takes inputs from the current layer’s global feature, and the previous layer’s hidden and cell states, enabling it to maintain and update contextual information across layers.
- The shared LSTM parameters are updated based on the joint influence of all layers in the stage, creating implicit and dense connections between them.
- The method is evaluated using ResNet and SENet backbones, with DIA-LSTM replacing or augmenting standard attention modules.
- Experiments include ablation studies on removing skip connections or batch normalization, and training without data augmentation to assess regularization.
Experimental results
Research questions
- RQ1Can a shared attention mechanism across layers improve feature representation and classification accuracy in deep networks?
- RQ2Does the DIA-LSTM unit provide stronger regularization than standard attention modules, especially in the absence of batch normalization or skip connections?
- RQ3How does the implicit and dense connectivity in DIA-LSTM affect gradient flow and training stability?
- RQ4To what extent does the DIA-LSTM reduce overfitting compared to standard residual networks?
Key findings
- DIANet with DIA-LSTM achieves 76.67% top-1 accuracy on CIFAR-100 with ResNet164, outperforming the original ResNet164 (73.43%) and SENet (75.03%).
- When batch normalization is removed, DIANet trains stably up to depth 245, while standard ResNet and SENet fail due to numerical explosion.
- Removing skip connections leads to significantly larger gradient magnitude and variance in DIANet compared to ResNet, indicating improved gradient flow and reduced degradation.
- In training without data augmentation, DIANet achieves 89.25% and 66.73% test accuracy on CIFAR-10 and CIFAR-100, respectively, outperforming ResNet164 (87.32% and 60.92%) and SENet (88.30% and 62.91%).
- The removal of the DIA-LSTM unit in stage 3 causes the largest accuracy drop (from 76.67% to 75.40%), indicating its critical role in feature integration.
- The DIA-SE variant, which shares the SE module across a stage, achieves 75.74% accuracy with only 1.74M parameters, showing better generalization and lower parameter increment than individual SE modules.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.