Introduction
Semantic segmentation is a computationally intensive task, requiring high-resolution feature maps to maintain spatial detail. Unlike image classification, where "early-exit" strategies have successfully reduced latency, segmentation faces unique challenges: heavy segmentation heads, difficulties in measuring spatial uncertainty, and training interference between multiple exits.
MESS (Multi-Exit Semantic Segmentation) addresses these hurdles by transforming standard networks into adaptive models. It achieves up to a 2.83× latency speedup without sacrificing accuracy, providing a versatile "train-once, deploy-everywhere" solution for heterogeneous hardware.
The MESS Framework
The core of MESS is a multi-exit architecture that allows the model to stop processing "easy" images early in the backbone, saving significant computational resources.
Two-Stage Training
To overcome training interference, MESS employs a two-stage scheme:
- Exit-Aware Pre-training: The backbone is trained with an "exit-dropout" loss, where only one random early exit and the final exit are updated per iteration. This forces the backbone to learn robust features early on.
- Positive Filtering Distillation (PFD): With a frozen backbone, early exits are trained to mimic the final exit only on "easy" pixels—those the final exit correctly identifies. This prevents noisy gradients from the final head's errors from confusing the smaller early heads.
Customizable Search Space
MESS allows for post-training customization of exit architectures. Users can adjust parameters such as channel reduction ($O_{crm}$), the number of blocks ($O_{\#blocks}$), and dilation rates ($O_{rdi}$) to fit specific hardware constraints. This flexibility includes "Rapid Dilation Increase" (RDI), which allows early exit heads to expand their receptive field efficiently with fewer layers.
Edge-Aware Confidence Policy
Deciding when to exit is critical. MESS introduces an image-level confidence metric enhanced by edge detection. By applying a median filter to smooth confidence values near object boundaries—where uncertainty is naturally higher—the model makes more reliable early-exit decisions.
Evaluation and Results
The framework was evaluated on MS COCO and PASCAL VOC benchmarks using ResNet50 and MobileNetV2 backbones.
- Efficiency: MESS achieved latency gains of up to 2.83× with no loss in accuracy.
- Accuracy: Under fixed computational budgets, MESS outperformed baselines by up to 5.33 percentage points in mIoU (mean Intersection over Union).
- Adaptability: The framework was successfully deployed on diverse hardware, including Nvidia GTX1080Ti and Jetson AGX Xavier. Adaptation to new hardware via exhaustive search takes less than one GPU-hour, significantly faster than traditional Neural Architecture Search (NAS).
Conclusion
MESS demonstrates that the "easy pixel" hypothesis—that early exits should focus on robustly learning simpler features—is a powerful principle for efficient segmentation. By decoupling backbone training from exit customization, it offers a scalable path for deploying high-performance segmentation models on resource-constrained edge devices.
Summary updated