Multistage Attention ResU-Net for Semantic Segmentation of Fine-Resolution Remote Sensing Images

Rui Li, Jianlin Su, Chenxi Duan, Shunyi ZhengarXiv 2020 · OpenReview

Introduction

Semantic segmentation of fine-resolution remote sensing imagery is a critical task for urban planning, environmental monitoring, and disaster management. Identifying objects such as buildings, trees, and vehicles requires a model that can simultaneously capture fine-grained spatial details and broad global context. While dot-product attention mechanisms, popularized by Transformers, excel at modeling long-range dependencies, they face a significant hurdle in high-resolution applications: computational complexity. The memory and compute requirements of standard attention grow quadratically ($O(N^2)$) with the number of pixels. For a typical $2000 \times 2000$ pixel aerial image, the resulting attention matrix is prohibitively large for standard hardware.

To address this, we present the Multistage Attention ResU-Net (MAResU-Net), which utilizes a novel Linear Attention Mechanism (LAM). By reframing the mathematical operations of attention, LAM reduces complexity to linear ($O(N)$), enabling the integration of global context into high-resolution segmentation workflows without the "quadratic explosion."

Methods: Linear Attention and MAResU-Net

The primary innovation of this work is the Linear Attention Mechanism (LAM). Standard attention uses a softmax-based similarity matrix between all pairs of pixels. LAM replaces this with a first-order Taylor expansion approximation. This mathematical shift allows for the application of the associative property of matrix multiplication. Instead of computing a massive (Pixels $\times$ Pixels) similarity matrix, the model computes a much smaller (Channels $\times$ Channels) matrix. Since the number of channels ($C$) is typically much smaller than the number of pixels ($N$), the computational bottleneck is effectively removed.

The MAResU-Net architecture integrates LAM into a ResNet-based U-Net framework. The standard encoder is replaced with pre-trained ResNet-18 or ResNet-34 models to leverage robust feature extraction. Crucially, the traditional "copy-paste" skip connections of the U-Net are replaced with Attention Blocks powered by LAM. These blocks refine low-level spatial features from the encoder with global context before they are merged with high-level semantic features in the decoder.

The overall architecture of MAResU-Net and the structure of the attention block.

Experimental Results

The proposed model was evaluated on the ISPRS Vaihingen dataset, which consists of 33 high-resolution tiles (5 cm GSD) featuring near-infrared, red, and green channels. MAResU-Net (with a ResNet-34 backbone) demonstrated superior performance compared to established models like PSPNet, DANet, and CE-Net.

Performance and Efficiency

MAResU-Net achieved a Mean F1-score of 90.277% and an Overall Accuracy (OA) of 90.860%. Beyond raw accuracy, the efficiency gains were substantial. The complexity of MAResU-Net was measured at 8.772 GFLOPs, a dramatic reduction from the 61.921 GFLOPs required by a standard U-Net. Statistical analysis via a Kappa z-test confirmed that these improvements are significant at a 95% confidence level.

Visual comparison of semantic segmentation results on the Vaihingen dataset across different methods.

Ablation studies highlighted that attention blocks at the lower levels of the network are particularly impactful. These early-stage blocks help preserve spatial precision—often lost during downsampling—by anchoring it with global relational data.

Conclusion

The MAResU-Net successfully bridges the gap between high-resolution spatial detail and global contextual modeling in remote sensing. By linearizing the attention mechanism, the model achieves state-of-the-art results with a fraction of the computational cost of traditional methods. Future research will explore the integration of multi-modal data, such as Digital Surface Models (DSM), and the application of LAM to even larger backbones and diverse remote sensing tasks.

Summary updated

BibTeX
@misc{li2020multistage,
  author = {Rui Li and Jianlin Su and Chenxi Duan and Shunyi Zheng},
  title = {{Multistage Attention ResU-Net for Semantic Segmentation of Fine-Resolution Remote Sensing Images}},
  year = {2020},
  url = {https://openreview.net/forum?id=yrlQb_PfVU},
}
Figure