Skip to main content
QUICK REVIEW

[Paper Review] Spatial Pyramid Based Graph Reasoning for Semantic Segmentation

Xia Li, Yibo Yang|arXiv (Cornell University)|Mar 23, 2020
Advanced Neural Network ApplicationsComputer Science55 references22 citations
TL;DR

This paper proposes Spatial Pyramid Based Graph Reasoning (SpyGR), a lightweight, data-dependent graph convolution module that performs reasoning directly in the original CNN feature space organized as a spatial pyramid. By introducing a learnable attention diagonal matrix for adaptive distance metrics and eliminating projection/reprojection overhead, SpyGR captures multi-scale long-range contextual patterns efficiently, achieving state-of-the-art performance on semantic segmentation benchmarks with minimal computational and memory cost.

ABSTRACT

The convolution operation suffers from a limited receptive filed, while global modeling is fundamental to dense prediction tasks, such as semantic segmentation. In this paper, we apply graph convolution into the semantic segmentation task and propose an improved Laplacian. The graph reasoning is directly performed in the original feature space organized as a spatial pyramid. Different from existing methods, our Laplacian is data-dependent and we introduce an attention diagonal matrix to learn a better distance metric. It gets rid of projecting and re-projecting processes, which makes our proposed method a light-weight module that can be easily plugged into current computer vision architectures. More importantly, performing graph reasoning directly in the feature space retains spatial relationships and makes spatial pyramid possible to explore multiple long-range contextual patterns from different scales. Experiments on Cityscapes, COCO Stuff, PASCAL Context and PASCAL VOC demonstrate the effectiveness of our proposed methods on semantic segmentation. We achieve comparable performance with advantages in computational and memory overhead.

Motivation & Objective

  • To address the limited receptive field of convolutional networks in capturing long-range contextual dependencies for dense prediction tasks like semantic segmentation.
  • To overcome the inefficiency and spatial distortion introduced by feature projection and re-projection in existing graph-based methods.
  • To enable explicit, efficient, and multi-scale graph reasoning directly in the original feature space while preserving spatial relationships.
  • To reduce computational and memory overhead compared to existing global modeling methods like non-local networks or ASPP.
  • To improve performance through a learnable, data-dependent distance metric that adapts to input feature distributions.

Proposed method

  • Proposes a data-dependent Laplacian matrix constructed from feature similarity, replacing fixed or learnable data-independent matrices.
  • Introduces a learnable diagonal attention matrix applied to the inner product of feature embeddings to refine the distance metric in graph construction.
  • Performs graph convolution directly in the original feature space without projecting to an interaction space, preserving spatial structure.
  • Organizes features into a spatial pyramid to capture long-range context at multiple scales, from coarse to fine.
  • Uses a modified graph convolution formulation that includes an identity shortcut for better optimization, following the standard GCN Laplacian smoothing form.
  • Employs a computational scheme that reduces complexity by operating on a sparse similarity matrix derived from feature clustering or sampling.

Experimental results

Research questions

  • RQ1Can graph reasoning be effectively performed directly in the original feature space without projection, preserving spatial relationships and reducing computational cost?
  • RQ2How does a data-dependent Laplacian matrix improve long-range context modeling compared to fixed or learnable data-independent matrices?
  • RQ3Can a learnable attention diagonal matrix on the inner product distance lead to better feature representation and performance with minimal parameter overhead?
  • RQ4To what extent does organizing features as a spatial pyramid enhance multi-scale long-range context aggregation in semantic segmentation?
  • RQ5Does the proposed method achieve state-of-the-art performance while maintaining low computational and memory consumption?

Key findings

  • SpyGR achieves 79.93% mIoU on the Cityscapes validation set, outperforming baseline methods including ASPP and PSPNet with comparable or lower FLOPs and memory usage.
  • The ablation study shows that each component—data-dependent Laplacian, attention diagonal matrix, identity term, and spatial pyramid—contributes to performance, with gains of 0.60, 0.47, and 0.51 mIoU respectively.
  • The visualization of the similarity matrix confirms that different long-range patterns (e.g., interactions between distant cars) are captured at different pyramid scales and aggregated at the finest level.
  • The method with a data-dependent attention matrix ($\tilde{\Lambda}(X)$) achieves 0.47 mIoU higher than the data-independent version, demonstrating its effectiveness in learning context-aware distance metrics.
  • The spatial pyramid design enables the model to capture both fine-grained and global contextual patterns, improving boundary and complex object segmentation.
  • The proposed method is plug-and-play and can be easily integrated into existing CNN architectures without architectural overhaul.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.