Abstract
Portrait segmentation is a critical component for mobile applications, yet it remains challenging due to the strict resource constraints of mobile hardware and the need for high-resolution boundary accuracy. We present SINet, an ultra-lightweight model that achieves near state-of-the-art accuracy (95.29% mIoU) with only 86.9K parameters—a 95.9% reduction in size compared to previous leading models. By introducing the Spatial Squeeze Module and an Information Blocking Decoder, SINet maintains real-time performance, exceeding 100 FPS on an iPhone XS.
Introduction
Portrait segmentation—the task of separating a person from their background—is a fundamental building block for mobile applications like background blurring in video calls or AR filters. However, developers face three major hurdles in this domain:
- Resource Constraints: Segmentation is often just one step in a larger processing pipeline. Models must be "extremely lightweight" to leave room for other processes and maintain real-time speeds on mobile hardware.
- The Detail-Context Paradox: Models must simultaneously handle global consistency (e.g., distinguishing a person from a similarly colored wall) and local detail (e.g., precisely tracing complex boundaries like hair). Lightweight models often sacrifice one for the other.
- Data Scarcity: Public portrait datasets are frequently small and biased, making it difficult to train robust, generalizable models.
Proposed Methods
SINet addresses these challenges through two primary architectural innovations designed for efficiency and precision.
Spatial Squeeze Module (S2-module)
Traditional multi-path networks utilize dilated convolutions to capture different scales, but these operations can be computationally expensive on mobile GPUs. The S2-module instead uses average pooling to "squeeze" the spatial resolution before applying depthwise convolutions. This approach effectively increases the receptive field to capture more context without the latency overhead associated with dilated kernels.
Information Blocking Decoder
Standard decoders often blindly merge high-resolution features from early layers with low-resolution semantic features. SINet’s decoder introduces a confidence map from the low-resolution branch to "block" the flow of high-resolution information in areas where the model is already certain.
As shown in the figure above, this mechanism forces the model to focus its refinement efforts only on high-uncertainty regions, such as hair boundaries and clothing edges. By preventing noisy high-resolution features from interfering with already-correct global classifications, the model produces cleaner, more accurate masks.
Data Generation Framework
To combat data scarcity, the authors proposed a framework that uses face detectors to crop portraits from full-body datasets. They also employed a "heavyweight" teacher model (DeepLabv3+) to generate pseudo-labels for web-scraped images, which were then verified by humans to create an augmented dataset of over 10,000 images.
Experimental Results
Efficiency and Accuracy
SINet demonstrates an unprecedented balance between size and performance. With only 86.9K parameters, it is significantly smaller than previous state-of-the-art models like PortraitNet (2.1M parameters).
On the EG1800 dataset, SINet achieved 95.29% mIoU, staying within a 1% margin of much heavier models. In terms of speed, it achieves 100.6 FPS on an iPhone XS using CoreML. Even on a standard Intel i5-7200U CPU, it hits approximately 12.3 FPS, significantly outperforming MobileNetV3 and ESPNetV2.
Generalization
When tested on the complex Cityscapes dataset for urban scene segmentation, a slightly larger version of SINet (0.12M parameters) outperformed MobileNetV2 and ESPNet, proving the architecture's utility beyond simple portrait tasks.
Conclusion
SINet proves that millions of parameters are not required for specialized segmentation tasks. By carefully managing spatial information through "squeezing" and "blocking," the model achieves high-fidelity results suitable for real-time mobile deployment. While a slight accuracy gap remains compared to the heaviest models for extreme hair detail, the efficiency gains make SINet a highly practical solution for the next generation of mobile AR and video applications.
Summary updated