HMANet: Hybrid Multiple Attention Network for Semantic Segmentation in Aerial Images

Ruigang Niu

Introduction

Semantic segmentation in Very High Resolution (VHR) aerial imagery presents unique challenges due to complex spectral signatures, varying object scales, and high intra-class variance. Standard Convolutional Neural Networks (CNNs) often fail to capture the necessary global context because of their localized receptive fields. While self-attention mechanisms have been proposed to address these long-range dependencies, they typically suffer from quadratic computational complexity and a narrow focus on spatial or channel relationships, often ignoring latent category-level information.

To overcome these limitations, the authors introduce HMANet (Hybrid Multiple Attention Network), a framework designed to capture global context across three dimensions: space, channel, and category. By utilizing a novel "Region Shuffle Attention" (RSA) mechanism, HMANet achieves state-of-the-art accuracy while drastically reducing the computational burden associated with standard attention modules.

Methodology

HMANet integrates three primary attention modules into a parallel branch structure on top of a dilated ResNet-101 backbone:

  • Class Augmented Attention (CAA) & Class Channel Attention (CCA): These modules explicitly model relationships between different semantic categories. CAA generates a "class affinity map" to help the network group pixels based on their semantic identity, while CCA recalibrates these features to enhance discriminative power.
  • Region Shuffle Attention (RSA): This module serves as the efficiency engine. Instead of calculating pixel-to-pixel relationships ($O(N^2)$), RSA partitions the image into regions and uses a shuffle operator to mix information. It computes attention on region-wise representations, capturing long-range context with significantly lower overhead.
Comparison of pixel-wise vs. region-wise attention and their computational efficiency.

As shown in the figure above, the region-wise approach significantly reduces parameters, memory usage, and GFLOPs compared to standard pixel-wise attention, making high-resolution processing feasible.

Experimental Results

The model was evaluated on the ISPRS Vaihingen and Potsdam benchmarks. HMANet achieved a state-of-the-art 91.44% Overall Accuracy (OA) and 83.49% mIoU on the Vaihingen dataset, outperforming established models like DANet and CCNet.

Efficiency Gains

The RSA module demonstrated massive efficiency improvements, requiring 20x less GPU memory and reducing FLOPs by approximately 77% compared to standard self-attention methods. This allows the network to process high-resolution tiles that would otherwise exceed the memory limits of standard hardware.

Qualitative Analysis

Visualization of the attention maps reveals that HMANet successfully learns to focus on specific semantic categories across the image. This category-aware approach helps resolve ambiguities in complex scenes, such as identifying cars partially obscured by shadows or distinguishing between different types of vegetation.

Visualization of class-specific attention maps (i-v) generated by HMANet.

Conclusion

HMANet effectively addresses the computational and conceptual limitations of standard attention mechanisms in remote sensing. By combining spatial, channel, and category-level attention with an efficient region-shuffling strategy, it provides a holistic and scalable solution for VHR aerial image segmentation. Future work may explore applying this hybrid framework to 3D point clouds or video-based remote sensing where computational efficiency is even more critical.

Summary updated

BibTeX
@article{niu2022hmanet,
  author = {Ruigang Niu},
  title = {{HMANet: Hybrid Multiple Attention Network for Semantic Segmentation in Aerial Images}},
  journal = {IEEE Trans. Geosci. Remote. Sens.},
  year = {2022},
  url = {https://openreview.net/forum?id=RzcOQGo9sg},
}
Figure