Multi-scale Attention U-Net (MsAUNet): A Modified U-Net Architecture for Scene Segmentation

Soham Chattopadhyay, Hritam BasakarXiv 2020

Abstract

Semantic scene segmentation remains a challenging task due to object scale variations and complex backgrounds. This paper presents MsAUNet, an enhanced U-Net architecture that incorporates multi-scale attention gates to effectively balance local feature extraction with global contextual understanding. Utilizing a DenseNet169 backbone and a compound loss function (IoU + Dice + Weighted Cross-entropy), MsAUNet achieves state-of-the-art results on benchmark datasets like PascalVOC2012 and ADE20k, demonstrating significant improvements in boundary definition and class accuracy.

Introduction

Semantic scene segmentation—the process of assigning a class label to every pixel—is critical for applications ranging from autonomous driving to medical imaging. However, standard Convolutional Neural Networks (CNNs) and U-Net architectures often struggle with redundancy in skip-connections and the inability to map long-range dependencies effectively. These models frequently fail to distinguish relevant local features from distracting global noise.

High-level overview of the MsAUNet pipeline, showing the transition from RGB input to feature extraction and final segment mapping.

MsAUNet addresses these issues by "attending" to discriminative image regions at multiple scales simultaneously, ensuring that both fine-grained details and broad structural contexts are preserved throughout the network.

Methodology

The MsAUNet architecture introduces several structural innovations to the traditional encoder-decoder framework to improve feature propagation and reduce redundancy.

DenseNet169 Backbone

The network utilizes a pre-trained DenseNet169 as its encoder. Unlike standard VGG or ResNet backbones, DenseNet's dense connectivity promotes feature reuse and mitigates the vanishing gradient problem, providing a richer and more robust set of features to the decoder.

Multi-scaled Attention Up-sampling Blocks (MSAB)

The core innovation lies in the MSABs. While standard attention gates operate at a single resolution, MSABs utilize multi-scaled convolution kernels (2×2, 4×4, and 6×6). These blocks process features from both the encoder and the pyramid pool, allowing the model to focus on relevant local features while suppressing irrelevant noise across different scales.

Detailed architecture of MsAUNet (A), showing the internal logic of Multi-scaled Attention Up-sampling Blocks (B) and Attention Blocks (C).

Compound Loss Function

To optimize performance and handle class imbalance, a hybrid loss function is employed:

  • IoU Loss: Maximizes the intersection-over-union between predictions and ground truth.
  • Dice Loss: Specifically addresses class imbalance by focusing on the overlap of spatial regions.
  • Weighted Cross-entropy (WCE): Prioritizes pixels near object boundaries, which are typically the most difficult to classify accurately.

Experimental Results

The model was rigorously evaluated on two gold-standard benchmarks for scene segmentation: PascalVOC2012 and ADE20k.

  • PascalVOC2012: MsAUNet achieved a mean IoU (mIoU) of 79.88% and a pixel accuracy of 95.96%.
  • ADE20k: On this more complex and diverse dataset, the model reached an mIoU of 44.88% and a pixel accuracy of 81.41%.

Comparative analysis shows that MsAUNet outperforms established models such as FCN, DeepLabv2, and PSPNet. The use of a deeper backbone like DenseNet169 was found to be crucial; while lighter backbones like ResNet18 tended to overfit early (around 600 epochs), DenseNet169 maintained stable convergence beyond 1000 epochs.

Conclusion

MsAUNet represents a significant step forward in scene segmentation by integrating multi-scale attention mechanisms into the U-Net framework. By focusing on boundary sensitivity and scale-aware feature extraction, the model produces sharper, more accurate segmentations. While the computational complexity of the DenseNet169 backbone may limit real-time mobile use, future work will explore more efficient backbones and the generalization of this approach to diverse domains like medical imaging.

Summary updated

BibTeX
@misc{chattopadhyay2020multi,
  author = {Soham Chattopadhyay and Hritam Basak},
  title = {{Multi-scale Attention U-Net (MsAUNet): A Modified U-Net Architecture for Scene Segmentation}},
  year = {2020},
  eprint = {2009.06911},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.06911},
}
Figure