NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Video Object Segmentation Using Space-Time Memory Networks

Seoung Wug Oh, Joon-Young Lee, Ning Xu, Seon Joo Kim · DOI

Introduction

Semi-supervised Video Object Segmentation (VOS) involves tracking and masking a specific object throughout a video sequence, given only the ground-truth mask for the initial frame. The primary challenge in this task is handling appearance changes caused by rotation, varying lighting conditions, and partial or total occlusions.

Historically, VOS methods fell into two categories: propagation-based and detection-based. Propagation-based methods rely on the previous frame ($t-1$) to predict the current one ($t$), which handles smooth transitions well but is prone to drift and failure during occlusions. Detection-based methods use the first frame as a permanent reference, offering robustness to occlusions but struggling as the object's appearance evolves.

Comparison of VOS paradigms: (a) propagation-based, (b) detection-based, (c) hybrid, and (d) the proposed STM.

The Space-Time Memory (STM) Network

To address these limitations, the authors propose the Space-Time Memory Network, a framework that treats all previously processed frames as an external memory. This allows the model to exploit a much richer source of information than just the first or previous frame.

Architecture Overview

The STM architecture is a "Query-and-Memory" system inspired by memory networks in NLP. It utilizes a dual-encoder setup:

  • Memory Encoder ($Enc_M$): Processes past RGB frames along with their predicted masks to store them in memory.
  • Query Encoder ($Enc_Q$): Processes only the current RGB frame to be segmented.
Overview of the STM architecture featuring Memory and Query encoders and the Space-time Memory Read operation.

Key-Value Embedding and Read Operation

Each encoder produces two types of feature maps: Keys ($k$) and Values ($v$). Keys are used for addressing (matching visual semantics between the query and memory), while Values store detailed appearance and mask information.

The core of the system is the Space-Time Memory Read operation. For every pixel in the query frame, the model performs a dense matching against every pixel across all frames stored in the memory. By computing similarity scores, the model "reads" the most relevant values from the past to reconstruct the mask for the current frame. This mechanism allows the model to "re-find" an object even after a long occlusion by matching it to any point in its history.

Implementation and Training

A significant advantage of STM is that it achieves state-of-the-art performance in a single feed-forward pass, eliminating the need for time-consuming online fine-tuning (training on the first frame at test time). To improve generalization, the model is first pre-trained on static images with synthetic transformations to simulate motion, followed by training on actual video datasets.

Experimental Results

The model was evaluated on major benchmarks, including YouTube-VOS and DAVIS 2016/2017:

  • Accuracy: STM achieved a massive performance jump on YouTube-VOS with an overall score of 79.4 (compared to the previous best of 71.1) and a $\mathcal{J}$ Mean of 79.2 on DAVIS 2017.
  • Speed: The model is highly efficient, running at approximately 0.16 seconds per frame on DAVIS 2016, making it significantly faster than methods requiring online adaptation.
  • Generalization: It showed exceptional performance on "unseen" object categories, indicating that the network learns a general matching and segmentation capability.

Conclusion

Space-Time Memory networks represent a paradigm shift in VOS by effectively utilizing intermediate frames as a persistent memory. While memory management remains a challenge for very long sequences, STM provides a robust, high-speed solution that outperforms previous propagation and detection-based hybrids.

Summary updated

BibTeX
@inproceedings{oh2019video,
  author = {Seoung Wug Oh and Joon-Young Lee and Ning Xu and Seon Joo Kim},
  title = {{Video Object Segmentation Using Space-Time Memory Networks}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  doi = {10.1109/iccv.2019.00932},
}
Figure