Exploring the Semi-supervised Video Object Segmentation Problem from a Cyclic Perspective

Yuxi Li, Ning Xu, Wenjie Yang, John See, Weiyao Lin

Abstract

Semi-supervised Video Object Segmentation (VOS) often suffers from accumulative error (drift) and a lack of interpretability. This paper proposes a cyclic perspective to address these issues. By leveraging the ground truth of the first frame as an anchor, the authors introduce a Cyclic Consistency Loss for training and a Gradient Correction Module for inference. These methods enforce forward-backward consistency, significantly reducing drift and improving robustness against noise. Furthermore, a new visualization tool, Cycle-ERF, is introduced to interpret the model's focus. Experimental results on DAVIS and YouTube-VOS benchmarks demonstrate substantial performance gains and enhanced robustness.

Introduction

Semi-supervised Video Object Segmentation (VOS) involves tracking and segmenting a specific object throughout a video, given only its mask in the very first frame. Most modern algorithms process videos sequentially, using the mask from frame $t-1$ to help predict the mask for frame $t$. However, this sequential approach has three major flaws: accumulative error (drift), where small mistakes snowball over time; a lack of robustness against noisy reference masks or distractor objects; and the "black box" problem, where it is difficult to understand which parts of the reference frame the model utilizes.

This paper introduces a "cyclic perspective" to VOS, using the perfect ground truth of the first frame as an anchor to correct errors in later frames. By enforcing forward-backward consistency during training and using a novel gradient correction module during inference, the authors significantly reduce drift and provide a new visualization tool, Cycle-ERF, to interpret how VOS models actually "see" objects.

Methods

The authors propose a three-pronged solution based on Cyclic Consistency:

Overview of the cyclic training and inference framework, highlighting the segmentation network and the gradient correction process.
  • Cyclic Consistency Loss (Training): During training, the model performs a "round trip." It predicts the mask for a future frame $t$ using the reference frame 1. Then, it uses that predicted mask to try and reconstruct the original, perfect mask of frame 1. The loss is calculated on both ends of this cycle, forcing the model to learn more stable and reversible pixel correspondences.
  • Gradient Correction Module (Inference): This is an "online" refinement step. During testing, the model uses its current prediction to "predict back" the first frame's mask. If the reconstruction is poor, the model calculates the gradient of that error and uses it to update and "polish" the current frame's mask—without needing to update the entire network's weights.
  • Anti-noise Regularization: To prevent the gradient correction from introducing artifacts, the authors add a spatial smoothness term (using Sobel operators) to penalize jagged edges and isolated noisy pixels.
  • Cycle-ERF: Inspired by the gradient correction process, the Cycle Effective Receptive Field backpropagates from an empty mask to the reference mask to visualize which pixels in the starting frame provide the most "support" for the current segmentation.

Key Insights and Results

High-Frequency Polishing

Frequency domain analysis showed that the Gradient Correction Module acts as a high-frequency amplifier. It specifically helps the model recover fine-grained details and sharp boundaries that are often lost in standard sequential processing.

Frequency domain analysis showing the input mask, output mask, and the effect of the Gradient Correction (GC) module.

Performance and Robustness

The authors evaluated their approach on the DAVIS16, DAVIS17, and YouTube-VOS benchmarks. Adding the cyclic mechanism to baseline models like STM (Space-Time Memory Network) led to significant gains. On DAVIS17, the "STM-cycle" improved the $\mathcal{J}\&\mathcal{F}$ score by several points compared to the standard version.

Furthermore, the model demonstrated remarkable robustness to noise. In experiments where reference masks were intentionally corrupted (e.g., using bounding boxes or adding adversarial noise), the Gradient Correction module was able to "filter out" the noise and maintain high performance where standard models failed.

Limitations and Future Work

While effective, the approach has some limitations. The gradient correction requires extra forward and backward passes, introducing computational overhead. To mitigate this, it is typically applied every $K$ frames. Additionally, the model still struggles with extreme occlusions where the cyclic link to the first frame becomes too weak, and with extremely thin structures that disappear at lower resolutions. Future work may involve multi-scale cyclic consistency to capture these fine details.

Summary updated

BibTeX
@article{li2022exploring,
  author = {Yuxi Li and Ning Xu and Wenjie Yang and John See and Weiyao Lin},
  title = {{Exploring the Semi-supervised Video Object Segmentation Problem from a Cyclic Perspective}},
  journal = {Int. J. Comput. Vis.},
  year = {2022},
  url = {https://openreview.net/forum?id=hwSPr2I9_S},
}
Figure