HS3: Learning with Proper Task Complexity in Hierarchically Supervised Semantic Segmentation

Shubhankar Borse, Hong Cai, Yizhe Zhang, Fatih Porikli

Introduction

Semantic segmentation remains a cornerstone of computer vision, requiring pixel-level classification across diverse categories. To facilitate the training of increasingly deep neural networks, "deep supervision"—the practice of adding auxiliary loss heads to intermediate layers—has become a standard technique. However, this approach often imposes a "one-size-fits-all" complexity requirement: shallow intermediate layers are forced to solve the same high-dimensional classification task as the final layer.

This paper identifies a fundamental mismatch between the representational capacity of sub-networks and the complexity of the tasks they are assigned. Forcing a shallow layer to distinguish between 150 fine-grained categories can lead to unconstrained features or even performance degradation. To address this, the authors introduce Hierarchically Supervised Semantic Segmentation (HS3), a framework that aligns task complexity with the model's local capacity.

Methodology

The HS3 Training Scheme

The core innovation of HS3 is the use of simplified supervision for intermediate stages. Instead of the full set of target classes, intermediate layers are trained to predict clusters of similar classes. This reduces the cognitive load on early layers, allowing them to learn more stable and meaningful feature representations.

Hierarchical supervision with clustered classes.

The clustering process is data-driven rather than manual. The authors first train a baseline model to generate a confusion matrix, identifying which classes the network naturally struggles to differentiate. Spectral clustering is then applied to this matrix to automatically group classes (e.g., merging "person" and "rider" into a single "human" category for early stages). A complexity parameter, $\theta$, is introduced to balance the trade-off between task performance and complexity across the network's depth.

HS3-Fuse Architecture

While the basic HS3 scheme improves training and can be discarded during inference for a "zero-cost" performance boost, the authors also propose HS3-Fuse. This architecture actively utilizes the hierarchical features learned during training.

The HS3-Fuse architecture for feature aggregation.

HS3-Fuse employs lightweight Object Contextual Representation (OCR) modules at different scales (e.g., 1/4x, 1/2x) to process these hierarchical features. These multi-scale representations are then fused into the final prediction head, providing the model with a richer semantic context that spans multiple levels of abstraction.

Experimental Results

The researchers evaluated HS3 and HS3-Fuse across three major benchmarks: NYUD-v2, Cityscapes, and CamVid.

Performance and Efficiency

HS3-Fuse achieved state-of-the-art (SOTA) results on the NYUD-v2 dataset with 53.5% mIoU and on Cityscapes with 85.7% mIoU on the test set. Notably, HS3 proved effective at reversing performance degradation seen in some deep architectures. For instance, in HRNet-w48, standard deep supervision reduced accuracy from 47.2% to 47.0% mIoU, whereas HS3 boosted it to 47.6%.

The "Lighter" variants of HS3-Fuse demonstrate significant efficiency gains, matching the computational cost (GMACs) of standard models while providing superior accuracy. On the Cityscapes validation set, HS3-Fuse maintained a lead of 81.4% vs 80.7% mIoU compared to standard baselines at equivalent inference costs.

Conclusion

HS3 introduces a paradigm shift in deep supervision by acknowledging the limited capacity of intermediate network layers. By matching task complexity to model capacity through hierarchical clustering, the framework ensures that every part of the network learns optimal features. Future work aims to simplify the current two-phase training process and extend this philosophy of "proper task complexity" to other computer vision domains like object detection and image classification.

Summary updated

BibTeX
@inproceedings{borse2021hs,
  author = {Shubhankar Borse and Hong Cai and Yizhe Zhang and Fatih Porikli},
  title = {{HS3: Learning with Proper Task Complexity in Hierarchically Supervised Semantic Segmentation}},
  booktitle = {BMVC},
  year = {2021},
  url = {https://openreview.net/forum?id=6hyW4lzQV-s},
}
Figure