Boundary-aware Graph Reasoning for Semantic Segmentation

Haoteng Tang, Haozhe Jia, Weidong Cai, Heng Huang, Yong Xia, Liang ZhanarXiv 2021

Abstract

Semantic segmentation requires capturing long-range dependencies to understand global context. While self-attention and graph reasoning are common solutions, they often suffer from high computational complexity and a lack of focus on error-prone boundary regions. This paper proposes the Boundary-aware Graph Reasoning (BGR) module. By utilizing a lightweight boundary detection branch to guide graph connectivity and employing a mathematically efficient graph convolution, BGR achieves state-of-the-art results on PASCAL VOC, COCO-Stuff, and Cityscapes benchmarks while maintaining a significantly lower computational footprint than traditional methods.

Introduction

Standard Fully Convolutional Networks (FCNs) are limited by their local receptive fields, making it difficult to incorporate the global context necessary for accurate semantic segmentation. While long-range dependency modeling (e.g., via non-local blocks or graph reasoning) addresses this, it introduces two primary challenges:

  1. Computational Inefficiency: Standard self-attention mechanisms scale quadratically ($O(N^2)$) with the number of pixels, leading to high memory and compute demands.
  2. Indiscriminate Reasoning: Existing models typically treat all image regions equally, failing to prioritize object boundaries where the majority of segmentation errors occur.

The Boundary-aware Graph Reasoning (BGR) Module

The BGR module addresses these issues through a three-stage process designed to focus reasoning on critical regions efficiently.

Overview of the BGR module architecture, illustrating the boundary branch and graph reasoning components.

1. Pixel-to-Node Mapping

Visual features extracted from a backbone network (e.g., ResNet-101) are projected into a graph space where individual pixels are treated as nodes.

2. Boundary-Aware Operation

This core component utilizes a lightweight boundary detection branch to produce a "boundary score map." This map re-weights the graph's adjacency matrix, intensifying connections around boundary pixels. This forces the model to concentrate its reasoning power on the most difficult-to-segment areas.

3. Efficient Graph Convolution

To overcome the $O(N^2)$ complexity of standard graph operations, the authors mathematically decompose the graph convolution. By reformulating the operation, they achieve a complexity of $O(Nc)$, where $c$ is the number of channels. This allows the module to be integrated into high-resolution architectures with minimal overhead.

Experimental Results

The BGR module was evaluated on three major benchmarks: PASCAL VOC, COCO-Stuff, and Cityscapes.

  • Performance: On PASCAL VOC, BGR achieved 81.37% mIoU on the validation set. It also set a new state-of-the-art on COCO-Stuff with 40.1% mIoU and reached 81.9% mIoU on Cityscapes.
  • Efficiency: The module demonstrates superior efficiency compared to existing long-range modeling techniques.
Comparison of computational complexity (FLOPs), memory usage, and parameter count across different reasoning methods.

As shown in the table above, the optimized BGR† implementation requires only 6.84 GFLOPs, significantly less than the 18.14 GFLOPs required by standard Non-local blocks, while also maintaining a lower memory footprint and parameter count.

Conclusion

The BGR module effectively leverages boundary information as a prior to guide long-range contextual reasoning. By focusing on error-prone regions and utilizing an efficient mathematical formulation, it provides a practical and high-performance solution for semantic segmentation. Future research may explore applying this boundary-aware approach to related tasks such as instance segmentation and object detection.

Summary updated

BibTeX
@misc{tang2021boundary,
  author = {Haoteng Tang and Haozhe Jia and Weidong Cai and Heng Huang and Yong Xia and Liang Zhan},
  title = {{Boundary-aware Graph Reasoning for Semantic Segmentation}},
  year = {2021},
  eprint = {2108.03791},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.03791},
}
Figure