Recurrent Dynamic Embedding for Video Object Segmentation

Mingxing Li, Li Hu, Zhiwei Xiong, Bang Zhang, Pan Pan, Dong Liu

Introduction

In semi-supervised Video Object Segmentation (VOS), a model is tasked with tracking and segmenting an object throughout a video sequence given only its initial mask. The current state-of-the-art approach relies on Space-Time Memory (STM) networks, which store features from previous frames in a memory bank to guide the segmentation of the current frame.

However, STM-based methods face two critical challenges: Memory Explosion and Noise Accumulation. As video length increases, the memory bank grows linearly, eventually exceeding hardware limits and slowing down the "read" operation. Furthermore, storing every historical frame introduces redundant or noisy information, where small errors in early frames can "pollute" the memory and lead to significant drift in later frames. This paper introduces Recurrent Dynamic Embedding (RDE), a novel framework that maintains a constant-size memory bank, ensuring scalability and robustness for long-form video processing.

Methodology

The RDE framework replaces the ever-growing memory bank with a fixed-size embedding that is updated recurrently. The system is built on three primary innovations:

1. Spatio-temporal Aggregation Module (SAM)

Instead of simply appending new frames to a list, the SAM updates the existing memory through a three-stage process:

  • Extracting: Aligning historical information with the features of the current frame.
  • Enhancing: Using residual connections to refine and integrate new features.
  • Squeezing: Compressing the updated data back into a constant-size tensor.

2. Unbiased Guidance Loss ($L_{UG}$)

Recurrent updates can naturally lead to "feature drift," where the compressed representation loses accuracy over time. To counter this, the authors utilize a dual-bank system during training. A standard, large-scale STM bank acts as a "teacher," while the RDE bank acts as the "student." The RDE bank is penalized via KL divergence if its feature distribution deviates from the teacher's, ensuring the compressed memory remains high-fidelity.

3. Self-Correction Strategy

To mitigate the impact of inaccurate mask predictions, the authors implement a self-correction mechanism. During training, masks are intentionally perturbed (dilated or eroded). The mask encoder is then forced to produce embeddings that match the ground-truth version. This teaches the network to "repair" poor-quality embeddings before they are stored in the memory bank.

Experimental Results

The model was evaluated on standard VOS benchmarks, including DAVIS 2016/2017 and YouTube-VOS 2019. To specifically test long-term stability, the authors also created a Synthetic Long Video benchmark by looping clips up to 20 times their original length.

Performance and Speed

  • Accuracy: On DAVIS 2017, RDE-VOS achieved a 86.1% $\mathcal{J}\&\mathcal{F}$ score, outperforming the popular STCN (85.3%).
  • Efficiency: RDE-VOS is significantly faster, running at 27 FPS on DAVIS 2017 compared to STCN’s 20.2 FPS.
  • Scalability: In long-video tests, RDE-VOS maintained a flat performance and speed curve. In contrast, traditional STM models saw their speed drop drastically and accuracy degrade as the memory bank became cluttered with redundant data.

Conclusion

Recurrent Dynamic Embedding (RDE) proves that a fixed-size memory can match or exceed the performance of infinite-memory models. By utilizing a "teacher-student" training paradigm and a self-correcting embedding space, RDE-VOS provides a path for high-performance VOS on edge devices with limited RAM.

Future work may address the current limitation of a fixed sampling interval, where the memory is updated every $N$ frames regardless of motion. A learnable gate mechanism that adaptively decides when to update based on scene dynamics could further enhance the efficiency and accuracy of the system.

Summary updated

BibTeX
@inproceedings{li2022recurrent,
  author = {Mingxing Li and Li Hu and Zhiwei Xiong and Bang Zhang and Pan Pan and Dong Liu},
  title = {{Recurrent Dynamic Embedding for Video Object Segmentation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure