Abstract
We propose an efficient plug-and-play acceleration framework for semi-supervised video object segmentation by exploiting the temporal redundancies in videos presented by the compressed bitstream. Specifically, we propose a motion vector-based warping method for propagating segmentation masks from keyframes to other frames in a bidirectional and multi-hop manner. Additionally, we introduce a residual-based correction module that can fix wrongly propagated segmentation masks from noisy or erroneous motion vectors. Our approach is flexible and can be added on top of several existing video object segmentation algorithms. We achieved highly competitive results on DAVIS17 and YouTube-VOS on various base models with substantial speed-ups of up to 3.5X with minor drops in accuracy.
Introduction
Video Object Segmentation (VOS) is a fundamental computer vision task that involves tracking and outlining specific objects in a video at the pixel level. While modern deep learning models have achieved remarkable accuracy, they are computationally intensive, often requiring 200ms or more to process a single frame. This high latency creates a significant bottleneck for real-time applications and high-resolution video processing.
Existing acceleration methods often trade off accuracy for speed by simplifying the underlying models. However, a significant opportunity lies in the fact that most digital video is already compressed (e.g., H.264 or HEVC). During compression, encoders calculate motion vectors to represent how pixels move between frames. The proposed CoVOS framework leverages this "free" metadata to approximate motion, avoiding the need to recalculate optical flow or heavy feature matching for every frame.
The CoVOS Framework
CoVOS is designed as a "plug-and-play" framework that can be integrated with various state-of-the-art VOS models such as STM, MiVOS, or STCN. The core strategy is to apply the computationally expensive base model only to a subset of frames—designated as keyframes—and then propagate these results to intermediate frames using the compressed bitstream.
Key Components
- Codec-Based Keyframe Selection: Instead of uniform sampling, CoVOS utilizes the video's internal structure. The full base model processes I-frames (full images) and P-frames (unidirectional predicted frames), which typically constitute 15-35% of the video.
- Soft Motion-Vector Propagation: For the remaining B-frames, motion vectors from the bitstream are used to "warp" the segmentation mask from the nearest keyframe. To account for the blocky and noisy nature of these vectors, a lightweight learned decoder performs "soft" warping, suppressing noise and enabling multi-hop, bi-directional propagation.
- Residual-Based Correction: Video compression stores "residuals"—the difference between a predicted frame and the actual image. High residuals often indicate areas where motion vectors failed (e.g., abrupt movement). CoVOS monitors these residuals to trigger a targeted feature-matching refinement, correcting the mask locally where propagation errors are likely.
Experimental Results
The framework was evaluated on the DAVIS 2016/2017 and YouTube-VOS benchmarks. CoVOS consistently achieved substantial speedups with minimal impact on segmentation quality.
As shown in the performance analysis, CoVOS nearly doubles the frames-per-second (FPS) for models like STCN and MiVOS. On the large-scale YouTube-VOS dataset, speedups reached up to 3.5x. For instance, the STCN model's accuracy on DAVIS17 only decreased from 85.3 to 82.4 while its processing speed nearly doubled. Furthermore, by processing fewer frames with the heavy base model, CoVOS significantly reduces the memory footprint required for memory-bank style algorithms.
Discussion and Limitations
While CoVOS offers a powerful efficiency boost, it has certain trade-offs. The use of bi-directional propagation (looking at future frames) introduces a small latency, making it more suitable for post-processing and video editing than for ultra-low-latency live streaming. Additionally, the blocky nature of motion vectors can make it challenging to segment very small objects accurately compared to full-resolution optical flow methods.
In conclusion, CoVOS demonstrates that the metadata embedded in compressed video is a highly effective, low-cost resource for accelerating complex vision tasks. Future work may involve tighter integration with hardware decoders to enable near-instant segmentation during video playback.
Summary updated