Revisiting Sequence-to-Sequence Video Object Segmentation with Multi-Task Loss and Skip-Memory

Fatemeh Azimi, Benjamin Bischke, Sebastian Palacio, Federico Raue, Jörn Hees, Andreas Dengel · DOI

Introduction

One-shot Video Object Segmentation (VOS) is the task of tracking and masking a specific object throughout a video, given only a single mask for the first frame. It is a foundational task for autonomous systems and robotics. However, existing "Sequence-to-Sequence" (S2S) models frequently lose track of small objects or objects that are briefly occluded.

In standard encoder-decoder architectures, the temporal memory (usually a Recurrent Neural Network or RNN) is placed at the "bottleneck" — the point where the image data is most compressed. For small objects, this compression often destroys the very details needed to track them. Furthermore, uncertainty in early frames (where the model is only ~50% sure of a pixel) tends to propagate and amplify, leading to total tracking failure later in the sequence.

Methodology

The authors propose S2S++, an improved model that introduces two primary architectural enhancements to the baseline S2S model to address these limitations.

Skip-Memory (Multi-Scale Spatio-Temporal Info)

Standard skip connections pass spatial information from the encoder to the decoder to recover fine details. S2S++ upgrades these by adding a ConvLSTM into the skip connections. This allows the model to maintain a "memory" of the object at multiple scales and resolutions, not just at the low-resolution bottleneck. If the object is "lost" at the bottleneck, the higher-resolution skip-memory provides a second chance to recover it.

Multi-Task Loss (Distance Classification)

To sharpen the edges of the segmentation masks, the authors added an auxiliary branch to the decoder. Instead of just predicting "object vs. background," this branch performs distance classification. It categorizes every pixel into one of 42 classes based on its distance to the object's boundary (both inside and outside). This forces the network to learn the precise geometry of the object's edges. The final model is trained end-to-end using a weighted combination of standard segmentation loss and this new distance-based loss.

Experimental Results

S2S++ was primarily evaluated on the YouTube-VOS dataset, which features over 4,000 videos and multiple objects per sequence. The model achieved an overall score of 61.00, outperforming the original S2S (57.68) and several models that used slow online training (like OSVOS at 58.08).

Qualitative results of S2S++ on a YouTube-VOS sequence showing robust tracking of multiple people in a snowy environment.

Key insights from the results include:

  • Sharper Boundaries: The model showed a significant boost in the F-score (contour accuracy), jumping from 65.5 to 72.03 on seen categories compared to the baseline.
  • Small Object Robustness: Qualitative results show the model successfully tracking multiple small, fast-moving objects that caused baseline models to fail or "mix up" object identities.
  • Efficiency: S2S++ achieves better results than many online methods while remaining an "offline" model, making it significantly faster for real-world use as it avoids frame-by-frame fine-tuning.

Conclusion

S2S++ demonstrates that moving memory modules to higher-resolution skip connections is essential for robust tracking of small objects. By using distance classification as a supervised signal, the model provides a much richer gradient that naturally emphasizes boundary accuracy. While performance still degrades in very long sequences with many similar-looking objects, S2S++ sets a new standard for offline VOS performance. Future work may explore attention mechanisms or distance regression to further refine edge accuracy.

Summary updated

BibTeX
@inproceedings{azimi2020revisiting,
  author = {Fatemeh Azimi and Benjamin Bischke and Sebastian Palacio and Federico Raue and Jörn Hees and Andreas Dengel},
  title = {{Revisiting Sequence-to-Sequence Video Object Segmentation with Multi-Task Loss and Skip-Memory}},
  booktitle = {ICPR},
  year = {2020},
  doi = {10.1109/icpr48806.2021.9412409},
}
Figure