Joint Modeling of Feature, Correspondence, and a Compressed Memory for Video Object Segmentation

Jiaming Zhang, Yutao Cui, Gangshan Wu, Limin Wang

TL;DR

JointFormer is a unified framework for Video Object Segmentation (VOS) that breaks the traditional "extract-then-match" paradigm by jointly modeling feature extraction and correspondence matching within a single Transformer backbone. By introducing an instance-level compressed memory token that updates online, it achieves state-of-the-art performance and exceptional generalization across complex, long-term, and egocentric video benchmarks.

What Problem Does This Paper Address?

Semi-supervised Video Object Segmentation (VOS) involves tracking and segmenting specific objects throughout a video, given only the mask of the first frame.

Most existing VOS methods follow a decoupled extraction-then-matching pipeline. They use a backbone (like a CNN or ViT) to extract features from the current and reference frames independently, and then use a separate module to perform dense pixel-wise matching between these high-level features.

The authors identify two major drawbacks to this approach:

  1. Information Bottleneck: Matching only happens at the highest feature levels, losing fine-grained details from lower layers that are crucial for precise segmentation.
  2. Lack of Holistic Understanding: Pixel-wise matching is easily confused by "distractors"—objects that look similar to the target. These models often lack a global, instance-level understanding of what the target actually is.
Comparison between decoupled pipelines and the proposed joint modeling approach.

Methods

The researchers propose JointFormer, which integrates feature extraction, correspondence matching, and memory management into a unified Transformer architecture.

1. Joint Modeling Block (JMB)

Instead of separate encoders, JointFormer uses a stack of JMBs. These blocks use multi-head attention to simultaneously extract features and propagate target information from reference frames to the current frame. Crucially, they employ an asymmetric interaction strategy: information flows from the reference (which is "clean" due to the provided mask) to the current frame, but not vice versa. This prevents the noisy, non-target regions of the current frame from corrupting the reference features.

Detailed view of the Joint Modeling Block and its various propagation modes.

2. Compressed Memory Token

To provide a holistic view, JointFormer introduces a compressed memory token ($H_M$) for each target object. This single token acts like a "classification token" in standard ViTs but for a specific instance. It aggregates target features across multiple layers and is updated frame-by-frame using features from the decoder. This provides a stable, long-term representation that helps the model distinguish the target from similar-looking distractors.

3. Architecture Overview

The model tokenizes the current frame, reference frames (with masks), and the compressed memory token, feeding them all into the Vision Transformer backbone. The resulting "enhanced" current tokens are then passed to a multi-scale decoder for final mask prediction.

Fig. 2. Overview of our JointFormer. The current frames and reference frames with masks are split and flattened into patches, then are fed with our compressed memory into the Vision Transformer, which consists of Joint Modeling Blocks for simultaneous feature extraction and target information propagation from the reference features to the current features and the compressed memory token. After that, the current tokens are enhanced with compressed memory, reshaped to 2D shape, concatenated with enhanced current tokens, and then fed into the decoder for mask prediction. In addition, the decoder fuses its internal features with mask prediction to generate decoder tokens for further updating the compressed memory token, and is subsequently used for predicting the next frame.

Datasets

JointFormer was evaluated on a wide array of benchmarks:

  • Mainstream: DAVIS 2016/2017 and YouTube-VOS 2018/2019.
  • Complex Scenes: MOSE, featuring crowded environments and heavy occlusions.
  • Egocentric Video: VISOR, focusing on hand-object interactions.
  • Complex Transformations: VOST, where objects undergo significant shape or state changes.
  • Long-term Tracking: LVOS, containing videos significantly longer than standard datasets.

The model was pre-trained on static image datasets and the synthetic BL30K video dataset.

Key Insights and Ideas

  • Multi-Layer Propagation is Key: Ablation studies showed that performing joint modeling across all blocks of the backbone is superior to doing it only at the end. Interaction at lower levels is vital for fine-grained segmentation.
  • Asymmetry Prevents Corruption: Bidirectional attention (common in single-object tracking) fails in VOS because the current frame's background noise easily overwhelms the reference target features. Restricting the information flow to be asymmetric is a critical design choice.
  • Instance vs. Pixel Memory: While traditional "memory banks" store every pixel, the single compressed token provides a "global anchor." This hybrid approach—dense matching for details and instance-level tokens for identity—makes the model much more robust to distractors.

Key Results

JointFormer set new state-of-the-art records across multiple benchmarks:

  • DAVIS 2017: Achieved 89.7% J&F on the validation set, outperforming previous leaders like XMem and Cutie.
  • YouTube-VOS 2019: Reached 87.0% G score.
  • Generalization: Without any dataset-specific modifications, it outperformed existing SOTA models on all four "new" challenging benchmarks (MOSE, VISOR, VOST, and LVOS). For example, on the difficult MOSE dataset, it achieved 70.2% J&F, a significant jump over previous methods.
Qualitative comparison showing JointFormer's superior ability to handle similar distractors and tiny targets.

Limitations and Future Work

The primary limitation is computational efficiency. Because matching occurs in every layer of the Transformer, the model is more computationally expensive than decoupled methods.

The authors suggest several future directions:

  • Efficiency Gains: Implementing token pruning or layer pruning to reduce the number of matching operations.
  • Inter-Target Communication: Currently, multiple targets are processed in parallel; allowing them to "talk" to each other could improve discriminability in crowded scenes.
  • Advanced Memory Management: Moving beyond a simple first-in-first-out (FIFO) queue for the reference frame memory bank.

Summary updated

BibTeX
@misc{zhang2023joint,
  author = {Jiaming Zhang and Yutao Cui and Gangshan Wu and Limin Wang},
  title = {{Joint Modeling of Feature, Correspondence, and a Compressed Memory for Video Object Segmentation}},
  year = {2023},
  eprint = {2308.13505},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.13505},
}
Figure