Alignment Before Aggregation: Trajectory Memory Retrieval Network for Video Object Segmentation

Rui Sun, Yuan Wang, Huayu Mai, Tianzhu Zhang, Feng Wu

Abstract

Semi-supervised Video Object Segmentation (VOS) requires precise tracking of objects across video frames based on an initial mask. Current state-of-the-art methods rely on memory banks for dense pixel-to-pixel matching, which often introduces spatial redundancy and susceptibility to visual distractors. We propose the Trajectory Memory Retrieval Network (TMRN), a novel framework that prioritizes spatial alignment before temporal aggregation. By employing a Singular Value Decomposition (SVD)-based agent correlation mechanism, TMRN effectively rectifies false correspondences and tracks objects along their natural trajectories. Our approach achieves significant performance gains across major benchmarks, including DAVIS 2017 and YouTube-VOS.

Introduction

The primary challenge in semi-supervised VOS is maintaining accurate object identity over time, especially in the presence of similar-looking "distractors." Traditional memory-based methods treat all pixels in the history as equally relevant, leading to two main problems: computational inefficiency due to spatial redundancy and tracking failures caused by ambiguous correspondences.

Conceptual overview of the Temporal Aggregation Module and Agent-level Correlation.

To address these, we argue for a trajectory-centric retrieval approach. Instead of global matching, we should align memory frames to the current query frame, effectively "cleaning" the historical data before aggregation. As shown in Figure 1, agent-level correlation allows the model to distinguish between target objects and distractors by comparing their relationships to representative reference points.

Methods

The TMRN is designed as a modular plugin for existing VOS architectures. It consists of two primary components: the Spatial Alignment Module and the Temporal Aggregation Module.

Overall architecture of the TMRN integrated with a VOS pipeline.

Spatial Alignment Module

This module performs local alignment between each memory frame and the query frame. To ensure robustness against distractors, we introduce Agent-level Correlation. We construct a set of representative reference features, termed "agents," using Singular Value Decomposition (SVD) on the pixel-wise correlation matrix. These agents capture the most significant semantic cues in the data. By comparing the "agent signatures" of potential matches, the system can suppress false correspondences where pixels look similar but have different contextual relationships.

Temporal Aggregation Module

Following spatial alignment, the memory frames represent the object's history at specific spatial locations. The Temporal Aggregation Module uses an adaptive pooling mechanism to weight these aligned frames, reasoning along the temporal axis to produce the final segmentation mask.

Results and Discussion

TMRN was evaluated as a plugin for several leading VOS models, including STM, STCN, and XMem, on the DAVIS 2017 and YouTube-VOS datasets.

  • Performance Gains: Integrating TMRN into the STM model resulted in a J&F score increase of +2.2% on the DAVIS 2017 validation set and +3.1% on the test set.
  • State-of-the-Art: When combined with XMem, the system achieved a J&F score of 87.2% on DAVIS 2017 validation, outperforming previous memory-based methods.
  • Robustness: Qualitative analysis confirms that TMRN excels in scenarios involving occlusions and multiple similar objects, where baseline models often fail due to identity jumping.

Conclusion

The Trajectory Memory Retrieval Network demonstrates that spatial alignment is a critical precursor to temporal aggregation in VOS. By leveraging SVD-based agents for robust matching, TMRN effectively navigates complex scenes with distractors. Future work will explore reducing the computational overhead of the SVD step and extending this trajectory-centric philosophy to other video-based tasks.

Summary updated

BibTeX
@inproceedings{sun2023alignment,
  author = {Rui Sun and Yuan Wang and Huayu Mai and Tianzhu Zhang and Feng Wu},
  title = {{Alignment Before Aggregation: Trajectory Memory Retrieval Network for Video Object Segmentation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  doi = {10.1109/iccv51070.2023.00118},
}
Figure