PKCAM: Previous Knowledge Channel Attention Module

Eslam Mohamed Bakr, Ahmad A. Al Sallab, Mohsen RashwanICLR 2022 · DOI

Abstract

PKCAM (Previous Knowledge Channel Attention Module) is a lightweight, plug-and-play attention mechanism designed to enhance Convolutional Neural Networks (CNNs). Unlike traditional attention modules that operate locally on current feature maps, PKCAM incorporates "previous knowledge" from earlier layers to provide top-down guidance. By aggregating cross-layer information and utilizing efficient 1D convolutions, PKCAM achieves state-of-the-art performance in image classification and object detection with minimal computational overhead.

Introduction

Most modern CNNs use attention mechanisms, such as SE-Net or ECA-Net, to help the model focus on important features. However, these mechanisms are typically "local," meaning they determine channel importance based solely on the current layer's statistics. This approach neglects a fundamental aspect of human perception: top-down guidance. In humans, high-level context helps us filter out noise and focus on relevant details.

PKCAM addresses this by allowing layers to "look back" at features from preceding blocks. These earlier layers contain valuable fine-grained information that can help the current layer make better decisions. The challenge lies in incorporating this cross-layer information without significantly increasing the model's parameter count or computational complexity.

Methods

The PKCAM module consists of two parallel paths that are fused to produce final attention weights:

  1. Local Cross-Channel Interaction (LCCI): A standard attention path that captures dependencies within the current feature map, similar to ECA-Net.
  2. Global Path (The "Previous Knowledge" part):
    • Previous Knowledge Aggregation (PKA): This component collects feature maps from all preceding layers. It aligns varying channel dimensions and applies Global Average Pooling (GAP) to create a compact representation of the network's accumulated knowledge.
  3. Global Cross-Channel Interaction (GCCI): 1D convolutions are applied to these aggregated features to learn inter-layer relationships.
  4. Fusion: A specialized 1D convolution-based fusion mechanism combines the local and global paths. This allows the local and global scales to interact efficiently while keeping the module lightweight.
Architecture of the PKCAM module showing the interaction between local features and aggregated previous knowledge.

Experimental Setup and Insights

The researchers evaluated PKCAM across three major benchmarks: ImageNet (LSVRC 2012) for large-scale classification, Tiny-ImageNet for ablation studies, and KITTI-RGB for object detection (integrated with YOLOv3).

A key architectural insight was the "Last Block" strategy. The authors found that integrating PKCAM into just the last block of each stage in a ResNet (rather than every single block) provided the best balance of performance and efficiency. This suggests that the module effectively acts as a global regularizer for each stage of the network.

Key Results

PKCAM consistently outperformed baseline models and established attention mechanisms across multiple backbones:

  • ImageNet Classification: On a ResNet-50 backbone, PKCAM achieved 77.56% Top-1 accuracy, surpassing the vanilla ResNet (75.2%), SE-Net (76.71%), and ECA-Net (77.48%). Remarkably, it achieved these gains while maintaining the same number of parameters and GFLOPs as the baseline ResNet-50.
  • Object Detection (KITTI): When used with YOLOv3 and a ResNet-18 backbone, PKCAM reached 59.66 mAP, a significant improvement over the vanilla baseline (57.87 mAP).
  • Robustness: The representations learned by PKCAM are more robust to target appearance changes and noise, likely due to the global context provided by the preceding layers.
Performance comparison of PKCAM against baseline ResNet and other attention modules on ImageNet.

Conclusion

PKCAM demonstrates that cross-layer "previous knowledge" is a powerful tool for guiding channel attention. By replacing heavy fully-connected layers with efficient 1D convolutions, the module remains lightweight and plug-and-play. Future work may explore combining this approach with spatial attention or testing its effectiveness on more recent architectures like Vision Transformers (ViTs).

Summary updated

BibTeX
@misc{bakr2022pkcam,
  author = {Eslam Mohamed BAKR and Ahmad A. Al Sallab and Mohsen Rashwan},
  title = {{PKCAM: Previous Knowledge Channel Attention Module}},
  year = {2022},
  eprint = {2211.07521},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.07521},
}
Figure