Customizable Architecture Search for Semantic Segmentation

Yiheng Zhang, Zhaofan Qiu, Jingen Liu, Ting Yao, Dong Liu, Tao Mei

Abstract

Semantic segmentation is a critical yet computationally expensive task in computer vision. While high-accuracy models exist, their deployment in real-time scenarios like autonomous driving is limited by hardware constraints. This paper introduces Customizable Architecture Search (CAS), an automated framework that designs optimized neural networks based on specific resource budgets. By incorporating hardware costs directly into the search objective, CAS generates architectures that balance accuracy and speed, achieving up to 108 FPS on the Cityscapes dataset with 72.3% mIoU.

Introduction

Real-time semantic segmentation requires assigning category labels to every pixel at high speeds, a challenge for resource-constrained devices. Traditional manual optimization—such as channel pruning or resolution reduction—is labor-intensive and often fails to generalize across different hardware platforms. A model optimized for a desktop GPU may not be efficient on a mobile processor.

Overview of the Customizable Architecture Search (CAS) framework, which automatically designs network components based on hardware constraints.

The authors address this by proposing CAS, which automates the design of segmentation networks tailored to specific constraints like GPU time, CPU time, or parameter count.

CAS extends Differentiable Architecture Search (DARTS) by introducing a cost-aware objective function. The search process is guided by a loss function that combines validation accuracy with a weighted cost term: $Loss = L_{val} + \lambda L_{cost}$. The parameter $\lambda$ acts as a "knob" that allows users to tune the trade-off between performance and efficiency.

Search Strategy

The framework employs a two-stage search process:

  1. Backbone Search: Identifies optimal "Normal" and "Reduction" cells for feature extraction.
  2. Multi-Scale Cell (MSCell) Search: Automatically designs the fusion logic required to combine high-level semantics with fine-grained spatial details, replacing manual heads like ASPP.
Comparison of architecture search results with and without hardware constraints, demonstrating how CAS prunes the search space to meet efficiency goals.

Novel Operations

To further reduce computation, CAS introduces "spatial bottleneck" operations, such as pooled convolutions. These operations use average pooling to downsample features before convolution, increasing the receptive field while significantly lowering the computational load (MACs).

Key Results and Evaluation

The approach was rigorously tested on the Cityscapes and CamVid datasets, which are benchmarks for urban scene understanding.

  • Efficiency vs. Accuracy: On Cityscapes, CAS achieved a state-of-the-art balance of 72.3% mIoU at 108 FPS on an Nvidia TitanXp.
  • Superiority over Manual Design: CAS outperformed leading manually designed real-time models like BiSeNet by 2.1% mIoU while maintaining higher frame rates.
  • Hardware Sensitivity: The search process proved that "cost" is hardware-dependent. Architectures optimized for parameter count differed significantly from those optimized for GPU latency, validating the need for customizable search.
  • Transferability: Models searched on Cityscapes transferred effectively to CamVid, reaching 71.2% mIoU at 169 FPS, demonstrating the robustness of the discovered cells.

Conclusion and Future Work

CAS provides a powerful tool for deploying high-performance semantic segmentation on diverse hardware. While the search process itself is computationally demanding, the resulting models offer unprecedented efficiency. Future research may focus on integrating non-linear hardware latency models more deeply into the search and expanding the framework to other dense prediction tasks like instance segmentation or depth estimation.

Summary updated

BibTeX
@inproceedings{zhang2019customizable,
  author = {Yiheng Zhang and Zhaofan Qiu and Jingen Liu and Ting Yao and Dong Liu and Tao Mei},
  title = {{Customizable Architecture Search for Semantic Segmentation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr.2019.01191},
}
Figure