Introduction
One-shot Video Object Segmentation (VOS) involves tracking and segmenting a specific object throughout a video sequence, given only an initial mask in the first frame. This task is critical for applications in robotics, autonomous driving, and video editing. However, existing methods face a fundamental trade-off. Recurrent Neural Network (RNN) based models maintain temporal consistency but suffer from "drift"—where small errors accumulate over time, leading to total tracking failure. Conversely, matching-based models, which compare current frames to a reference, are robust to re-detection but often lack the spatial context (location prior) needed to distinguish between similar-looking objects.
Methodology: The Hybrid-S2S Approach
The Hybrid Sequence-to-Sequence (HS2S) model addresses these limitations by integrating the temporal memory of RNNs with the robustness of correspondence matching. Built upon the S2S architecture, HS2S employs a dual-branch strategy:
- RNN Branch: Utilizes a ConvLSTM to process spatio-temporal features, providing a "location prior" that predicts the object's position based on its previous trajectory.
- Matching Branch: Introduces a Reference Encoder that extracts features from both the initial ground-truth frame (the anchor) and the immediately preceding frame.
- Feature Fusion: A Merge Layer uses Global Convolution (GC) layers to perform correspondence matching. This mechanism acts as a lightweight attention module, weighting pixels in the current frame by their similarity to the reference features.
Notably, the authors found that maintaining separate weights for the main and reference encoders was crucial for performance, as the temporal alignment of their respective inputs differs significantly.
Experimental Results
The HS2S model was evaluated on the YouTube-VOS and DAVIS 2017 datasets. On YouTube-VOS, the largest benchmark for VOS, HS2S achieved a mean F&J score of 68.9%, representing an 11.2 percentage point improvement over the baseline RNN-based S2S model.
The model demonstrated superior stability in long sequences. For videos exceeding 20 frames, the baseline's performance dropped significantly, while HS2S maintained a J-score of 64.2%. This stability is attributed to the matching branch's ability to "anchor" the segmentation to the reliable first frame, effectively bypassing the vanishing gradient and error propagation issues inherent in standard RNNs.
Key Insights and Discussion
The primary strength of HS2S lies in the complementarity of its branches: the RNN provides spatial continuity ("where"), while the matching branch ensures visual identity ("what"). This dual approach is particularly effective for occlusion recovery. By constantly referring back to the first frame, the model can re-identify an object even after it has been completely obscured, a scenario where pure RNNs typically fail as their internal state becomes corrupted.
Despite these gains, occlusion remains a significant challenge. Performance typically dips in the frames immediately following an object's reappearance. Future research may benefit from modeling inter-object interactions to improve segmentation in crowded scenes where objects frequently occlude one another.
Summary updated