Spatial Group-wise Enhance: Improving Semantic Feature Learning in Convolutional Networks

Xiang Li, Xiaolin Hu, Jian YangarXiv 2019

Abstract

The Spatial Group-wise Enhance (SGE) module is a lightweight, plug-and-play attention mechanism designed to improve semantic feature learning in Convolutional Neural Networks (CNNs). By partitioning features into groups and suppressing spatial noise through similarity-based gating, SGE enhances relevant object parts with negligible computational cost. Evaluations on ImageNet-1K and MS COCO demonstrate significant performance gains, including a 1.2% Top-1 accuracy improvement on ResNet50 with virtually no additional parameters.

Introduction

In standard CNNs, features are often distributed in groups across the channel dimension. Ideally, specific groups should represent distinct semantic entities (e.g., "dog eyes"). However, due to a lack of explicit spatial supervision, these features often suffer from "spatial chaos," activating in irrelevant regions like noisy backgrounds. This leads to erroneous localization and identification. The Spatial Group-wise Enhance (SGE) module addresses this by refining feature maps spatially, ensuring that activations align with the global semantic context of their respective groups.

The SGE Module

The SGE module operates by dividing the feature map into $G$ groups along the channel dimension and processing each in parallel.

Architecture of the Spatial Group-wise Enhance (SGE) module.

The core logic follows a four-step process:

  1. Global Descriptor: For each group, a global semantic vector $\mathbf{g}$ is calculated using Global Average Pooling, representing the "average" meaning of that group across the image.
  2. Similarity Measurement: A dot product is computed between $\mathbf{g}$ and each local feature vector $\mathbf{x}_i$. This measures how much each pixel aligns with the group's overall semantic theme.
  3. Normalization: Similarity coefficients are normalized over the spatial domain to prevent magnitude bias.
  4. Scaling and Gating: Learnable parameters ($\gamma$ and $\beta$) scale and shift the values, which then pass through a Sigmoid function to create a spatial attention mask.

Remarkably, SGE requires only $2 \times G$ parameters (typically 128 per layer), making it significantly lighter than Squeeze-and-Excitation (SE) or Convolutional Block Attention Modules (CBAM).

Experimental Evaluation

The effectiveness of SGE was evaluated on ImageNet-1K for classification and MS COCO 2017 for object detection and instance segmentation.

Quantitative Results

On ImageNet, adding SGE to a ResNet50 backbone improved Top-1 accuracy by 1.2% (reaching 77.58%) while adding virtually zero FLOPs or parameters. It performed on par with or better than much heavier modules like CBAM or SKNet. In object detection tasks on COCO, SGE provided a consistent boost of 1.0% to 2.0% AP across frameworks like Faster R-CNN and Mask R-CNN. It particularly excelled in small object detection, outperforming SE modules by ~1% AP on RetinaNet.

Qualitative Insights

Visualizations highlight how SGE suppresses "spatial chaos." By using the group's own global average as a "soft supervision" signal, the module sharpens activations on specific object parts.

Visual comparison of feature maps for specific semantic parts.

As shown above, different groups specialize in distinct features (e.g., nose, tongue, eyes). SGE makes these activations much more accurate and robust to varying poses or partial occlusions compared to standard ResNet baselines.

Conclusion

Spatial Group-wise Enhance offers an elegant, nearly zero-cost solution to improve semantic feature learning. Its ability to preserve spatial detail while suppressing noise makes it highly effective for both classification and dense prediction tasks. Given its efficiency, SGE is particularly well-suited for deployment in mobile and edge-computing environments.

Summary updated

BibTeX
@misc{li2019spatial,
  author = {Xiang Li and Xiaolin Hu and Jian Yang},
  title = {{Spatial Group-wise Enhance: Improving Semantic Feature Learning in Convolutional Networks}},
  year = {2019},
  eprint = {1905.09646},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.09646},
}
Figure