Squeeze U-Net: A Memory and Energy Efficient Image Segmentation Network

Nazanin Beheshti, S. Lennart JohnssonWorkshops @ CVPR 2020

Abstract

Deep learning models for image segmentation, such as the classic U-Net, often require significant computational resources, making deployment on mobile and embedded devices challenging due to memory and energy constraints. This paper introduces Squeeze U-Net, an architecture that integrates the efficiency of SqueezeNet's "fire modules" into the U-Net framework. By replacing standard convolutions with these modules and utilizing strided convolutions for downsampling, the proposed network achieves a 12x reduction in model size and a 3.2x reduction in computational complexity (MACs). Evaluations on the CamVid dataset demonstrate that Squeeze U-Net maintains competitive segmentation accuracy while significantly improving inference speed and training efficiency.

Introduction

Image segmentation is a critical task for applications like autonomous driving, yet state-of-the-art models are notoriously resource-hungry. In constrained environments, memory bandwidth and energy consumption are primary bottlenecks; accessing off-chip DRAM for model parameters can consume 100x more energy than the actual arithmetic operations. Squeeze U-Net addresses this by creating a "lean" segmentation network designed to fit into on-chip storage without sacrificing the high-quality pixel-wise classification required for real-world tasks.

Methods

The core innovation of Squeeze U-Net is the integration of Fire Modules into the U-Net architecture.

The Fire Module

Instead of a standard convolution, a fire module employs a two-stage approach:

  • Squeeze Stage: A $1\times1$ convolution reduces the number of input channels.
  • Expand Stage: An "inception-style" layer where $1\times1$ and $3\times3$ convolutions are performed in parallel and then concatenated. This captures features at different scales while keeping the parameter count low.

Architecture Design

The network follows the symmetric encoder-decoder structure of U-Net:

  1. Contracting Path (Encoder): Standard downsampling layers are replaced with fire modules. Max-pooling is swapped for strided convolutions to retain more expressive spatial information.
  2. Expansive Path (Decoder): The authors designed Transposed Fire Modules using transposed convolutions to upsample feature maps while maintaining squeeze-and-expand efficiency.
  3. Skip Connections: The model retains U-Net’s signature long skip connections, passing high-resolution features from the contracting path directly to the expansive path to recover fine spatial details.
The Squeeze U-Net architecture integrates Fire Modules and Transposed Fire Modules into a symmetric encoder-decoder structure with skip connections.

Key Results

Squeeze U-Net was evaluated on the CamVid (Cambridge-driving Labeled Video Database), a standard benchmark for real-time semantic segmentation. The model was compared against the standard U-Net and other architectures like SegNet.

  • Efficiency: Squeeze U-Net is only 32MB (2.59M parameters), compared to U-Net’s 386MB (30M parameters). It reduced Multiplication-Accumulation operations (MACs) from 287 billion to 88 billion.
  • Performance: On an NVIDIA K40 GPU, Squeeze U-Net was 17% faster for inference. While the Mean IoU was slightly lower (0.616 vs. 0.670), the model outperformed U-Net in specific categories like "Building" segmentation.
  • Training Dynamics: Due to having significantly fewer parameters, the model converges much faster, showing a 52% reduction in training time compared to the original U-Net.
Comparison of training loss (a) and accuracy (b) between Squeeze U-Net and the standard U-Net over 300 epochs.

Discussion and Future Work

While Squeeze U-Net offers massive efficiency gains, it faces an accuracy gap in classes with fewer pixels or less defined structures, such as trees and cars, suggesting a higher sensitivity to class imbalance. Future improvements could involve model quantization to 8-bit or 16-bit integers to further reduce energy consumption. Additionally, optimizing the concurrent execution of the inception stages in the fire modules could yield an additional 20% reduction in execution time, making it even more suitable for real-time embedded applications.

Summary updated

BibTeX
@inproceedings{beheshti2020squeeze,
  author = {Nazanin Beheshti and S. Lennart Johnsson},
  title = {{Squeeze U-Net: A Memory and Energy Efficient Image Segmentation Network}},
  booktitle = {Workshops @ CVPR},
  year = {2020},
  doi = {10.1109/cvprw50498.2020.00190},
}
Figure