SCG-Net: Self-Constructing Graph Neural Networks for Semantic Segmentation

Qinghui Liu, Michael Kampffmeyer, Robert Jenssen, Arnt-Børre SalbergarXiv 2020

Abstract

Semantic segmentation requires capturing global context, a task often hindered by the limited receptive fields of standard Convolutional Neural Networks (CNNs) or the high computational cost of attention mechanisms. SCG-Net addresses this by introducing a Self-Constructing Graph (SCG) module that dynamically transforms 2D feature maps into a latent graph structure. This approach allows the model to learn long-range spatial dependencies efficiently. Evaluated on remote sensing benchmarks, SCG-Net matches state-of-the-art accuracy while being significantly faster and more parameter-efficient than existing heavy-weight models.

Introduction

In semantic segmentation—the task of assigning a category to every pixel—context is essential. Identifying a group of pixels as a "car" is significantly easier if the model understands they are situated on a "road." Standard CNNs, however, possess a limited "receptive field," primarily focusing on immediate local neighbors. To capture global context, traditional solutions involve stacking numerous layers or employing memory-intensive attention mechanisms. While Graph Neural Networks (GNNs) are inherently suited for global relationships, they typically require a pre-defined graph structure, which is not naturally available for raw image data.

The SCG-Net Architecture

SCG-Net bridges the gap between CNNs and GNNs by enabling the network to "construct" its own graph on the fly. The architecture follows a streamlined pipeline: a CNN backbone extracts local features, the SCG module builds a latent graph to capture global dependencies, and a GNN refines these features for the final segmentation results.

Overview of the SCG-Net pipeline, from input image to final segmentation results via the Self-Constructing Graph module.

The Self-Constructing Graph (SCG) Module

The core innovation of SCG-Net is the SCG module, which operates without requiring a pre-defined graph or additional data like depth maps. It functions through three primary stages:

  1. Encoding (ENC): Inspired by Variational Autoencoders (VAEs), this module takes the 2D feature map from the CNN backbone and learns a latent embedding for each "node" (representing pixel patches). By learning a probability distribution (mean and variance) rather than a fixed vector, the model regularizes the learning process.
  2. Decoding (DEC): The module computes similarities between these latent embeddings to generate an adjacency matrix. This step effectively allows the model to decide which parts of the image should interact, regardless of their spatial distance.
  3. Refinement & Propagation: Training is stabilized using an adaptive diagonal enhancement method and a variational lower bound. An adaptive factor ($\gamma$) is introduced to balance local residual features with global propagated context. Once the graph is established, a standard GNN (such as a GCN or GIN) propagates information across the edges to refine pixel classifications.
Detailed view of the SCG module, highlighting the Encoder (ENC) and Decoder (DEC) components used to build the latent graph.

Experimental Evaluation

The model was evaluated on two challenging remote sensing benchmarks: ISPRS Potsdam (high-resolution RGB aerial imagery) and ISPRS Vaihingen (Infrared-Red-Green imagery). These datasets feature complex urban environments with classes such as buildings, trees, and cars.

Key Results

SCG-Net demonstrates that high performance does not require architectural bloat:

  • Competitive Accuracy: It achieved a mean F1-score of 92.0% on Potsdam and 89.8% on Vaihingen, matching or exceeding much larger state-of-the-art models.
  • Efficiency: Compared to popular models like PSPNet, SCG-Net uses 10x to 13x fewer FLOPs and is up to 42x faster on CPU inference.
  • Model Size: It achieves these results with approximately 12% fewer parameters than the best-performing baselines, making it ideal for edge deployment.

Conclusion and Future Work

SCG-Net proves that discovering graph structures through end-to-end training is a viable and efficient alternative to manual graph engineering or heavy convolutional stacking. While the model occasionally struggles with the precise boundaries of very small, dense objects, it offers a significant step forward in efficient global context modeling. Future research may explore directed graphs or improved spatial resolution preservation for small objects within the graph framework.

Summary updated

BibTeX
@misc{liu2020scg,
  author = {Qinghui Liu and Michael Kampffmeyer and Robert Jenssen and Arnt-Børre Salberg},
  title = {{SCG-Net: Self-Constructing Graph Neural Networks for Semantic Segmentation}},
  year = {2020},
  eprint = {2009.01599},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.01599},
}
Figure