Abstract
Semi-supervised video object segmentation (VOS) aims to densely track certain designated objects in videos. One of the main challenges in this task is the existence of background distractors that appear similar to the target objects. We propose three novel strategies to suppress such distractors: 1) a spatio-temporally diversified template construction scheme to obtain generalized properties of the target objects; 2) a learnable distance-scoring function to exclude spatially-distant distractors by exploiting the temporal consistency between two consecutive frames; 3) swap-and-attach augmentation to force each object to have unique features by providing training samples containing entangled objects. On all public benchmark datasets, our model achieves a comparable performance to contemporary state-of-the-art approaches, even with real-time performance. Qualitative results also demonstrate the superiority of our approach over existing methods. We believe our approach will be widely used for future VOS research.
Introduction
In semi-supervised Video Object Segmentation (VOS), a model is provided with the mask of a target object in the initial frame and is tasked with tracking and segmenting that object throughout the remainder of the video sequence. While significant progress has been made, the "distractor problem" remains a primary hurdle. This occurs when background objects share a similar appearance with the target—such as multiple players in identical sports jerseys—causing the model to lose track of the original target and begin segmenting the wrong entity.
Most current VOS methods rely heavily on pixel-level feature matching. While effective for capturing fine details, these methods often lack a global understanding of the object, making them susceptible to noise from similar-looking pixels. Additionally, many existing frameworks utilize "hard windowing"—manually defined spatial constraints—to limit the search area. These heuristics are often inflexible and require significant manual tuning. To address these issues, we introduce TBD (Tackling Background Distraction), a framework designed to improve robustness through diversified feature templates and learnable spatial constraints.
Methodology
1. Spatio-Temporally Diversified Templates
To prevent the model from becoming overwhelmed by local pixel similarities, TBD utilizes a dual-matching strategy:
- Spatial Diversity (Coarse-to-Fine Matching): In addition to standard fine-grained pixel matching, we introduce "coarse" matching. By compressing target features into a single global vector, the model is forced to recognize the general properties of the object (e.g., the overall shape and color of a shirt) rather than just local textures. This global context acts as a filter against background noise.
- Temporal Diversity: The model maintains five distinct templates to balance stability and adaptability: a Global template (the first frame), a Local template (the previous frame), and three coarse templates (Overall, Short-Term, and Long-Term). This ensemble allows the model to retain the original object definition while adapting to recent changes in pose or lighting.
2. Learnable Distance-Scoring Function
Rather than relying on fixed-size square windows to constrain the search space, TBD implements a learnable distance-scoring function. This function calculates the Euclidean distance between pixels in consecutive frames and maps them to a score between 0 and 1. By integrating this into the end-to-end training process, the model "learns" that pixels far from the object's last known position are statistically less likely to be part of the target. This provides a "soft" and flexible alternative to rigid, hand-tuned heuristics.
3. Swap-and-Attach Augmentation
High-quality VOS data is difficult to annotate. To improve the model's ability to distinguish between similar objects, we propose a "Swap-and-Attach" data augmentation technique. We synthetically "swap" objects between different video sequences and "attach" them to new frames. This creates complex training scenarios with heavy occlusions and entangled objects, forcing the model to learn highly discriminative features to maintain target identity in crowded scenes.
Experimental Results
Performance and Efficiency
The TBD framework was evaluated on the DAVIS 2016, DAVIS 2017, and YouTube-VOS 2018 datasets. A key highlight of the model is its efficiency; TBD achieves a processing speed of 50.1 FPS on a single NVIDIA RTX 2080 Ti. This significantly exceeds the 24 FPS threshold required for real-time applications.
In terms of accuracy, TBD achieved a $\mathcal{G}$ score of 80.0 on the DAVIS 2017 dataset. This performance is comparable to or better than contemporary state-of-the-art methods that often operate at much lower frame rates.
Qualitative Robustness
Visual analysis demonstrates that TBD remains locked onto targets even during severe occlusions or when surrounded by distractors. While previous models like STM and HMMN often drift toward similar-looking background objects, TBD’s use of coarse global features and learnable distance scoring allows it to maintain high fidelity throughout the sequence.
Conclusion and Future Work
TBD offers a robust solution to the background distraction problem in VOS by combining global feature context with learnable spatial constraints. While the model is highly effective and real-time capable, challenges remain in managing memory for extremely long video sequences and handling the propagation of errors from poor initial masks. Future research will focus on improving long-term memory management and increasing robustness against non-rigid object deformations.
Summary updated