Abstract
This paper studies the problem of semi-supervised video object segmentation (VOS). Multiple works have shown that memory-based approaches can be effective for video object segmentation. They are mostly based on pixel-level matching, both spatially and temporally. The main shortcoming of memory-based approaches is that they do not take into account the sequential order among frames and do not exploit object-level knowledge from the target. To address this limitation, we propose to learn position and target consistency framework for memory-based video object segmentation, termed as LCM. It applies the memory mechanism to retrieve pixels globally, and meanwhile learns position consistency for more reliable segmentation. The learned location response promotes a better discrimination between target and distractors. Besides, LCM introduces an object-level relationship from the target to maintain target consistency, making LCM more robust to error drifting. Experiments show that our LCM achieves state-of-the-art performance on both DAVIS and Youtube-VOS benchmark. And we rank the 1st in the DAVIS 2020 challenge semi-supervised VOS task.
Introduction
Semi-supervised Video Object Segmentation (VOS) requires a model to track and segment specific objects throughout a video, given only the mask for the first frame. While recent "memory-based" approaches, such as the Space-Time Memory (STM) network, have set new benchmarks by matching pixels in the current frame to a memory bank of previous frames, they suffer from two major flaws:
- Lack of Temporal Logic: These models often treat video frames as a bag of pixels, ignoring continuous motion trajectories. This can lead the model to jump to "distractor" objects that look similar to the target.
- Error Drifting: Because these models rely on their own previous predictions to build their memory, small errors accumulate over time, eventually leading to fragmented or completely lost masks.
Methodology: The LCM Framework
The proposed LCM (Learning Position and Target Consistency) framework augments standard global pixel matching with two novel modules designed to enforce consistency:
- Global Retrieval Module (GRM): This serves as the baseline memory component, performing dense, pixel-to-pixel matching across the space-time domain to find similar regions.
- Position Guidance Module (PGM): To enforce "position consistency," this module learns a local embedding that relates the current frame to the one immediately preceding it. By focusing on the area where the object was last seen, it creates a spatial attention map that filters out visually similar distractors located elsewhere in the frame.
- Object Relation Module (ORM): To maintain "target consistency," this module uses a cross-relation mechanism to fuse object-level features from the first frame—the only frame with a guaranteed correct mask—into the current query. This acts as a permanent "anchor," preventing the model from drifting away from the original target's identity.
Experiments and Results
The model was trained and evaluated on the gold standards of the VOS field: YouTube-VOS (2018) and DAVIS (2016 & 2017). LCM achieved top-tier performance across all major benchmarks:
- YouTube-VOS 2018: Reached an overall score of 82.0%, a significant 2.6% improvement over the STM baseline.
- DAVIS 2017: Achieved 83.5% on the validation set, outperforming existing offline and online learning methods.
- DAVIS 2020 Challenge: The authors ranked 1st in the semi-supervised VOS task.
Despite the added complexity, the inference speed remains competitive. The PGM and ORM modules only increase the running time by about 6% compared to the baseline STM model.
Conclusion
LCM demonstrates that incorporating motion continuity and anchoring predictions to the initial ground truth significantly improves the robustness of memory-based VOS. While the model effectively mitigates error drifting and distractor confusion, future work may focus on optimizing memory management for extremely long videos and further reducing computational overhead for real-time applications on edge devices.
Summary updated