Introduction
Video Instance Segmentation (VIS) is a challenging task that requires simultaneous detection, segmentation, and tracking of objects across video frames. While high-performance GPUs can manage these intensive computations, deploying VIS on mobile edge devices remains difficult due to hardware constraints. Existing frameworks are often either "offline," requiring excessive memory, or "online" but computationally heavy due to complex transformer decoders or post-processing steps like Non-Maximum Suppression (NMS).
MobileInst addresses these challenges by introducing a lightweight, online framework optimized for mobile CPUs. It achieves state-of-the-art accuracy while significantly reducing inference latency, making real-time VIS on mobile devices more feasible.
Architectural Innovations
MobileInst's efficiency stems from three primary design choices:
Dual Transformer Instance Decoder
Traditional transformer decoders often utilize multiple stages (e.g., 6 stages), which are too heavy for mobile processors. MobileInst simplifies this into a two-stage Dual Transformer Instance Decoder. It consists of a Global Decoder that captures high-level semantics and object locations, followed by a Local Decoder that refines these details using fine-grained features. This split avoids the computational redundancy of standard deep transformer blocks.
Semantic-Enhanced Mask Decoder
To produce high-quality segmentation masks without the overhead of multi-scale transformers, MobileInst employs Semantic Enhancers (SE blocks). These blocks fuse global context into mask features, ensuring sharp boundaries and accurate segmentations with minimal additional computation.
Efficient Tracking via Kernel Reuse
MobileInst leverages the temporal consistency of video frames. Instead of re-calculating object "kernels" (the weights used to generate masks) for every frame, the model reuses kernels from a keyframe for a set interval ($T$ frames). For long-term tracking, a simple cosine similarity metric associates kernels across different clips. This "kernel reuse" strategy provides tracking almost "for free," drastically reducing CPU cycles.
Experimental Results
The researchers evaluated MobileInst on the COCO and YouTube-VIS (2019 & 2021) benchmarks.
Speed and Accuracy Trade-off
MobileInst sets a new benchmark for mobile-edge performance. On a Snapdragon 778G mobile CPU, it achieves a latency of 433ms on the COCO dataset—a 50% reduction compared to previous state-of-the-art methods like SparseInst. Despite its speed, it maintains high accuracy, reaching 31.2 mask AP on COCO and 35.0 AP on YouTube-VIS 2019.
Conclusion and Future Work
MobileInst demonstrates that efficient VIS is possible on mobile hardware by specializing transformer components and exploiting temporal redundancy through kernel reuse. While the model is robust, future improvements could focus on handling drastic scene changes or long-term occlusions more effectively. Additionally, optimizing the framework for mobile NPUs and utilizing 8-bit quantization could potentially push performance toward real-time (30+ FPS) speeds on edge devices.
Summary updated