Introduction
Instance segmentation—the task of identifying and outlining every individual object in an image—is significantly more computationally expensive than simple object detection. While "real-time" models exist for desktop GPUs, they often fail on mobile devices. Popular models like SOLO or CenterMask can require nearly 40 billion multi-adds (MAdds), whereas a mobile-optimized detector typically uses less than 1 billion. Furthermore, many state-of-the-art techniques rely on "non-standard" layers like Deformable Convolutions, which are poorly supported or slow on mobile hardware. BlitzMask bridges this gap by creating a model that is both mathematically efficient and hardware-friendly.
Architecture and Methodology
BlitzMask builds upon the CenterNet architecture, which is "anchor-free." Instead of testing thousands of pre-defined boxes (anchors), it predicts object centers via a heatmap. This approach avoids the need for Non-Maximum Suppression (NMS), a post-processing step that is often a bottleneck on mobile CPUs and GPUs.
To handle masks efficiently, the authors implement a Spanning Set approach:
- Spanning Set ($B$): The model predicts a set of "base" masks for the entire image.
- Coefficients ($\Lambda$): For every detected object center, the model predicts a small set of coefficients.
- Linear Combination: The final instance mask is generated by a simple weighted sum of the spanning set using those coefficients.
Mobile-First Design
The architecture uses only standard convolutions, depthwise convolutions, and batch normalization—all of which are highly optimized in mobile frameworks like TFLite. Additionally, the authors found that using the "center of mass" of an object as the target for the heatmap—rather than the geometric center of its bounding box—improved accuracy, as the center of mass is more likely to lie within the object's boundaries.
Training Innovations
Much of BlitzMask's performance edge comes from its optimized training pipeline:
- Perturbed Focal Loss: A new loss function using a Taylor expansion to perturb focal loss coefficients, helping the model learn better from low-resolution inputs.
- LRfinder Training Schedule: A custom three-phase training process (Ascent, Plateau, and Descent) that searches for flat minima on the loss surface. This leads to better generalization when training from scratch without ImageNet pre-training.
These training tweaks provided accuracy gains of up to 3.2 AP without increasing inference time.
Experimental Results
The model was evaluated on the MS COCO (2017) dataset and tested on a Samsung S21 (Snapdragon 888):
- GPU (FLOAT16): Using an EfficientNet-Lite B4 backbone at 320x320 resolution, it reached 28.9 mask AP at 29.2 FPS.
- DSP (UINT8): On the digital signal processor, it achieved 28.0 mask AP at 39.4 FPS.
Compared to existing benchmarks like mobileYOLACT, BlitzMask is more than twice as accurate while maintaining a higher frame rate on identical hardware.
Conclusion
BlitzMask sets a new benchmark for mobile computer vision by prioritizing hardware compatibility and training efficiency. While the current implementation is restricted to TFLite-native layers and 320x320 resolution, it demonstrates that high-quality instance segmentation is achievable on modern smartphones. Future work may explore lighter backbones and higher-resolution inputs to further refine performance in complex scenes.
Summary updated