Abstract
Traditional Video Object Segmentation (VOS) models rely on dense, pixel-level annotations, which are costly and time-consuming to produce. This paper introduces "Two-shot VOS," a training paradigm requiring only two labeled frames per video. By utilizing a three-phase approach involving semi-supervised pre-training, bidirectional pseudo-label generation, and final model retraining, the authors demonstrate that models can achieve performance comparable to those trained on fully annotated datasets. Using only 2.9% to 7.3% of available labels, the proposed method maintains state-of-the-art accuracy across major benchmarks like DAVIS and YouTube-VOS.
Introduction
Video Object Segmentation (VOS) involves tracking and segmenting specific objects across a video sequence given an initial mask. While deep learning has significantly advanced VOS, these improvements are largely driven by massive, densely annotated datasets. Annotating every few frames at the pixel level is a significant bottleneck for scaling VOS to new domains. This research addresses the efficiency gap by asking: can we train robust VOS models with minimal supervision? The authors identify a "Two-shot" sweet spot—using two labeled frames as the minimum requirement to teach a model how an object's appearance changes over time.
Methodology
The authors propose a simple yet effective three-step pipeline that can be applied to most existing VOS architectures, such as STCN, XMem, or RDE-VOS.
Phase 1: Semi-Supervised Pre-training
A base VOS model is first trained in a semi-supervised manner. During this phase, the model processes triplets of frames. The first frame is always a labeled "reference," while the subsequent frames can be either labeled or unlabeled. For unlabeled frames, the model generates pseudo-labels on the fly, but only retains those that pass a high confidence threshold ($\tau_1$) to ensure the quality of the gradients.
Phase 2: Bidirectional Inference and the Pseudo-Label Bank
To mitigate the "drift" (error accumulation) common in VOS, the Phase-1 model performs bidirectional inference across the entire training set. For any unlabeled frame, the model generates two predictions—one starting from the first labeled frame and one from the second. The framework then selects the prediction from the labeled frame that is temporally closer to the target frame. These high-quality masks are stored in a "Pseudo-Label Bank."
Phase 3: Model Retraining
Finally, the model is retrained from scratch using a combination of the original two ground-truth labels and the high-quality pseudo-labels from the bank. In this phase, the restriction that the first frame must be labeled is lifted, allowing the model to learn from any frame-to-frame transition. The bank is dynamically updated as the model improves, further refining the training signal.
Experimental Results
The researchers evaluated their approach on the gold standards of VOS: DAVIS (2016 & 2017) and YouTube-VOS (2018 & 2019).
- Data Efficiency: On DAVIS 2017, the model achieved high performance using only 2.9% of the original labeled data. On YouTube-VOS, it utilized only 7.3% of the labels.
- Performance Parity: The results indicate that the performance drop-off from using 100% of labels to sparse labels is almost negligible. On YouTube-VOS 2019, the two-shot STCN achieved a score of 82.7%, which is identical to the STCN trained on the full dataset. On DAVIS 2017, it achieved an 85.1% $\mathcal{J}\&\mathcal{F}$ score, just 0.3% shy of the full-set version (85.4%).
- Generalization: The training logic was applied to other state-of-the-art models like XMem and RDE-VOS with similar success. For XMem on YouTube-VOS, the two-shot version reached 84.5% compared to 85.3% for the full set.
Discussion and Limitations
The most significant insight from this work is how little "dense" data actually adds to the final performance of a VOS model. A naive two-shot model already performs surprisingly well; the pseudo-labeling phase simply closes the final gap.
However, some hurdles remain. Models that require a very long temporal context (like XMem) show a slightly larger performance gap (around 1%) compared to simpler matching-based models. Additionally, if the two labeled frames are very far apart or the object undergoes extreme occlusion, the pseudo-labels generated in the middle of the sequence can still be noisy.
Conclusion
Two-shot VOS presents a general and effective way to train VOS models on sparsely annotated datasets without sacrificing accuracy. By leveraging bidirectional inference to anchor pseudo-labels to the nearest ground truth, the method significantly reduces error propagation. This paradigm opens the door for more efficient dataset creation and model training in the field of video understanding.
Summary updated