Hidden Path Selection Network for Semantic Segmentation of Remote Sensing Images

Kunping Yang, Xin-Yi Tong, Gui-Song Xia, Weiming Shen, Liangpei Zhang · DOI

TL;DR

The Hidden Path Selection Network (HPS-Net) improves semantic segmentation in remote sensing images by dynamically choosing pixel-wise processing paths. By introducing an independent mini-branch to generate hidden variables, it breaks a fundamental mathematical limitation in existing dynamic routing networks, making global optimization significantly easier. Additionally, the authors introduce GID-15, a new fine-grained, large-scale benchmark dataset to better evaluate real-world land-cover segmentation.

What Problem Does This Paper Address?

Semantic segmentation in remote sensing—identifying land-cover types like forests, rivers, and buildings at a pixel level—is notoriously difficult. Unlike natural images, remote sensing images cover vast geographical areas with massive variations in scale and distribution.

To handle this diversity, recent state-of-the-art methods use dynamic routing or gated path selection (like GPSNet). Instead of passing every pixel through the same static network layers, these models generate "soft masks" to dynamically select the best forward path for each pixel.

However, the authors identify a critical flaw in existing approaches: the soft masks are calculated directly from the layer's feature maps. Through mathematical analysis, the paper proves that this direct functional relationship constrains the parameter optimization to a narrow, high-dimensional manifold. In plain terms, the math behind current dynamic networks inherently blocks the model from reaching its global optimum.

Methods

To break free from this constrained optimization space, the authors propose HPS-Net, which introduces the concept of hidden path selection inspired by Hidden Markov Chains.

Main Branch (Features Fi) -----\
                                +---> [ HP-Module ] ---> Soft Masks (Wd_i) ---> Path Selection
Mini-Branch (Hidden Vars Hd) --/

Key components include:

  • The Mini-Branch: A lightweight, parallel network structure that runs alongside the main segmentation network. It has the same architecture but with drastically reduced channels (fixed at 32), and its sole purpose is to generate independent hidden variables ($H_d$).
  • Hidden Path Module (HP-Module): Instead of computing soft masks purely from main-branch features ($F_i$), the HP-Module fuses $F_i$ with the mini-branch's hidden variables ($H_d$). This independence adjusts the optimization manifold, making the global optimum accessible again.
  • Gradient Flow Control: To prevent training inefficiency and conflicting gradient updates, the authors cut off the gradient flows from the soft masks back to the main feature maps during feature integration, while keeping them intact during element-wise multiplication.
  • Local Convexity Approximation: By constraining the soft mask values to a narrow range $[\alpha, \beta]$ (e.g., $[0.75, 1.25]$), a Taylor expansion of the loss function reveals that it approximates a convex function locally, allowing the network to optimize smoothly.

Datasets

The models were trained and evaluated on two datasets:

  1. GID-5 (Gaofen Image Dataset): A large-scale dataset containing 150 high-resolution satellite images covering dozens of Chinese cities, originally annotated with 5 broad categories: built-up, farmland, forest, meadow, and water.
  2. GID-15 (New): The authors expanded GID-5 by meticulously re-annotating it into 15 fine-grained categories to match real-world requirements. For example, built-up is split into industrial, urban residential, rural residential, and traffic land; farmland is split into paddy fields, irrigated land, and dry cropland.

Key Insights and Ideas

  • The Power of Decoupling: The core "aha!" moment is realizing that path selection shouldn't be a slave to the immediate feature map. Introducing an external, nearly free-valuing hidden variable expands the search space, allowing the network to find much better routing configurations.
  • Optimization Manifold Engineering: Rather than just designing a new block for better accuracy, the authors used optimization theory to reshape the mathematical space the network navigates during training.
  • Efficiency via Slim Architecture: Because the mini-branch only needs to guide routing rather than extract deep semantic features, it can remain incredibly slim (32 channels), keeping computational overhead low.

Key Results

The authors evaluated HPS-Net against standard baselines (PSPNet, DeepLabv3*) and the state-of-the-art gated network (GPSNet) using Mean Intersection over Union (mIoU).

  • Performance Boost on GID-15: When applied to a DeepLabv3 baseline with a ResNet-101 backbone, HPS-Net improved the mIoU from 54.1% to 54.9%. When combined with GPSNet (HPS-Net-G101), it achieved the highest overall score of 55.5% mIoU*.
  • Performance Boost on GID-5: On the 5-class dataset, HPS-Net-G101 achieved 84.0% mIoU, outperforming the baseline GPSNet-101 (82.0%) by a clear 2.0% margin.
  • Low Computational Overhead: Despite running a parallel mini-branch, HPS-Net adds less than 10% extra FLOPs compared to standard DeepLabv3* (e.g., 95.0G FLOPs vs 88.6G FLOPs for ResNet-101), proving it is highly efficient.

Limitations and Future Work

While HPS-Net showed dominant performance across land and vegetation categories (like dry cropland and artificial meadows), the authors noted a specific limitation: categories related to water (rivers, lakes, and ponds) were still difficult to depict accurately. Future work will likely need to address how dynamic path selection can better accommodate the unique spectral and spatial characteristics of water bodies.

Summary updated

BibTeX
@misc{yang2021hidden,
  author = {Kunping Yang and Xin-Yi Tong and Gui-Song Xia and Weiming Shen and Liangpei Zhang},
  title = {{Hidden Path Selection Network for Semantic Segmentation of Remote Sensing Images}},
  year = {2021},
  eprint = {2112.05220},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.05220},
}
Figure