Multi-scale context information fusion for instance segmentation

Xinjun Wan, Yiyun Zhou, Mingfei Shen, Tao Zhou, Fuyuan HuJournal of Image and Graphics 2023

Abstract

Instance segmentation aims to classify and locate different objects in an image using pixel-level masks. However, significant scale variations among objects often lead to missed or incorrect detections, limiting accuracy. While Feature Pyramid Networks (FPN) are commonly used to extract multi-scale information, their standard approach of using interpolation and element-wise addition for feature fusion fails to fully exploit semantic information across scales. This paper proposes an attention-guided FPN (AgFPN) built upon Mask R-CNN, integrating multi-scale context information (MSCI) to enhance performance. By employing content-aware feature reassembly and channel attention, the method reduces semantic aliasing and improves mask prediction quality. Experimental results on MS COCO 2017 and Cityscapes datasets demonstrate significant improvements over the baseline Mask R-CNN.

Introduction

Instance segmentation is a challenging task, particularly when images contain objects of vastly different sizes—from tiny background figures to large foreground elements. Standard frameworks like Mask R-CNN utilize a Feature Pyramid Network (FPN) to handle these scale variations. However, traditional FPNs merge features from adjacent layers through simple bilinear interpolation and element-wise addition. This often results in "semantic aliasing," where distinct features of small objects are blurred by the coarser features of larger ones, leading to imprecise boundaries and missed detections in crowded or occluded scenes.

Proposed Methodology: AgFPN and MSCI

The authors introduce two primary architectural enhancements to the Mask R-CNN framework to address these limitations.

1. Attention-guided FPN (AgFPN)

The core of the AgFPN is the Adjacent Layer Feature Adaptive Fusion Module (AFAFM). Instead of standard upsampling, AFAFM utilizes CARAFE (Content-Aware ReAssembly of FEatures) to upsample features based on local image content. Furthermore, it incorporates a channel attention mechanism to weight features before fusion, ensuring semantic consistency across different pyramid levels and mitigating the noise introduced during top-down feature flow.

Overall architecture of the proposed instance segmentation network, highlighting the AgFPN and MSCI components.

2. Multi-scale Context Information (MSCI) Extraction

To further refine the features used for final predictions, the network extracts multi-scale context information through two specialized sub-modules:

  • Attentional Feature Fusion Module (AFFM): Employs a Multi-Scale Channel Attention (MSCA) mechanism to intelligently aggregate features from adjacent layers.
  • Global Context Module (GCM): Captures long-range spatial dependencies, helping the model understand the relationship between an object and its surrounding environment.
Detailed structure of the Multi-scale Context Information (MSCI) module, showing the interaction between AFFM and GCM.

These modules enhance the multi-scale feature representation of the Region of Interest (RoI), leading to higher-quality mask predictions and more accurate classification.

Experimental Results

The proposed method was evaluated on the MS COCO 2017 and Cityscapes datasets.

  • MS COCO 2017: Using a ResNet-50 backbone, the model achieved a 1.7% increase in mean Average Precision (mAP) over the baseline Mask R-CNN. With a ResNet-101 backbone, the improvement reached 2.5% mAP.
  • Cityscapes: The model showed gains of 2.1% on the validation set and 2.3% on the test set compared to Mask R-CNN.

Qualitative analysis reveals that the proposed method is significantly more effective at delineating boundaries in overlapping objects and detecting small-scale targets that standard models often overlook.

Conclusion

By moving beyond passive feature addition to a content-aware, attention-guided fusion strategy, the proposed AgFPN and MSCI modules effectively address the challenges of multi-scale instance segmentation. While the added complexity results in a slight decrease in inference speed (from 15.7 FPS to 13.6 FPS), the significant gains in accuracy and robustness, especially in complex urban scenes, make it a compelling advancement for high-precision computer vision tasks.

Summary updated

BibTeX
@article{wan2023multi,
  author = {Xinjun Wan and Yiyun Zhou and Mingfei Shen and Tao Zhou and Fuyuan Hu},
  title = {{Multi-scale context information fusion for instance segmentation}},
  journal = {Journal of Image and Graphics},
  year = {2023},
  doi = {10.11834/jig.211090},
}
Figure