ShelfNet for Fast Semantic Segmentation

Juntang Zhuang, Junlin Yang, Lin Gu, Nicha C. Dvornek

Abstract

Semantic segmentation is a critical task in computer vision, yet balancing high accuracy with real-time performance remains a challenge. We present ShelfNet, a novel architecture that utilizes a multi-column "shelf" structure to improve information flow. By incorporating shared-weight residual blocks (S-Blocks) and channel reduction techniques, ShelfNet achieves state-of-the-art accuracy on benchmarks like Cityscapes and PASCAL VOC while running significantly faster than traditional models. Specifically, ShelfNet achieves comparable accuracy to PSPNet but at 4x the inference speed.

Introduction

Semantic segmentation involves assigning a categorical label to every pixel in an image, a task vital for applications such as autonomous driving and medical diagnostics. Current state-of-the-art models often rely on computationally expensive components like dilated convolutions or massive backbones to achieve high accuracy. Conversely, real-time models frequently sacrifice segmentation quality for speed. Most existing architectures follow a standard U-shaped encoder-decoder path, which the authors argue limits the network's ability to capture complex feature varieties. ShelfNet addresses this by introducing a multi-path structure that acts as an ensemble of networks.

Methodology

The ShelfNet architecture is designed to facilitate better feature integration through a multi-column "segmentation shelf."

The Segmentation Shelf

Unlike the single encoder-decoder pair found in models like U-Net, ShelfNet employs a shelf with four columns. Columns 1 and 3 perform down-sampling (encoding), while columns 2 and 4 perform up-sampling (decoding). Features from a backbone network (e.g., ResNet) are processed through these multiple stages, allowing for richer feature representation.

Shared-weight Residual Block (S-Block)

To maintain a lightweight profile, ShelfNet introduces the S-Block. In this modified residual block, two convolutional layers share the same weights. This design reduces the total number of parameters significantly while preserving the model's representational capacity, as the structural skip connection remains the primary driver of performance.

The architecture of ShelfNet and the internal structure of the S-Block.

Channel Reduction

Before feature maps enter the shelf, a $1 \times 1$ convolution is used to reduce the number of channels (e.g., from 2048 to 512). Since computational complexity scales quadratically with the number of channels, this step provides a substantial boost to inference speed.

Key Insights

A primary advantage of ShelfNet is its ability to create a large number of effective information paths. While a standard four-level SegNet provides only 4 paths, ShelfNet's multi-column structure enables 29 effective paths. This redundancy allows the network to recover fine details lost during initial down-sampling stages, effectively acting as an ensemble of multiple shallow and deep Fully Convolutional Networks (FCNs).

Visualization of the multiple information flow paths within the ShelfNet architecture.

Furthermore, ShelfNet achieves a large receptive field through its multi-scale shelf structure rather than relying on dilated convolutions. This avoids the heavy computational overhead associated with dilation, contributing to its superior speed.

Experimental Results

ShelfNet was evaluated on three major benchmarks: PASCAL VOC 2012, PASCAL-Context, and Cityscapes.

  • PASCAL VOC 2012: ShelfNet matches the accuracy of PSPNet while being 4x faster during inference.
  • Cityscapes: Using a ResNet34 backbone, the model achieved 79.0% mIoU, outperforming both PSPNet and the real-time model BiSeNet.
  • Real-Time Efficiency: A lightweight variant, ShelfNet18-lw, reached 74.8% mIoU on Cityscapes at high frame rates, surpassing previous real-time benchmarks like ICNet and GUN.

Conclusion

ShelfNet demonstrates that a multi-path "shelf" architecture combined with weight-sharing can break the traditional speed-accuracy trade-off in semantic segmentation. By reducing memory footprint and increasing information flow redundancy, it provides a robust framework for real-time applications. Future research may explore the integration of even more efficient backbones or extending the shelf structure to related tasks such as instance segmentation and depth estimation.

Summary updated

BibTeX
@inproceedings{zhuang2018shelfnet,
  author = {Juntang Zhuang and Junlin Yang and Lin Gu and Nicha C. Dvornek},
  title = {{ShelfNet for Fast Semantic Segmentation}},
  booktitle = {Workshops @ ICCV},
  year = {2018},
}
Figure