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

Learning Quality-aware Dynamic Memory for Video Object Segmentation

Yong Liu, Ran Yu, Fei Yin, Xinyuan Zhao, Wei Zhao, Weihao Xia, Yujiu Yang

Abstract

Semi-supervised Video Object Segmentation (VOS) has seen significant progress with Space-Time Memory (STM) networks. However, these models often suffer from "memory explosion" and error accumulation because they store reference frames indiscriminately. We propose the Quality-aware Dynamic Memory Network (QDMN), which employs a lightweight Quality Assessment Module (QAM) to evaluate the reliability of predicted masks. This allows for selective memory storage and dynamic eviction of unreliable or outdated references. Our approach achieves state-of-the-art results on DAVIS and YouTube-VOS benchmarks while ensuring stable inference speed and memory usage.

Introduction

In semi-supervised VOS, the goal is to track and segment an object throughout a video given its initial mask. Modern STM-based methods maintain a "memory bank" of past frames to guide current predictions. Despite their success, these methods face two critical challenges:

  1. Error Accumulation: Storing a poorly segmented frame in memory leads to subsequent errors, as the model relies on inaccurate references.
  2. Memory Explosion: Linear growth of the memory bank in long videos exhausts GPU resources and degrades real-time performance.

QDMN addresses these issues by introducing a quality-aware mechanism that treats memories dynamically rather than statically.

Methodology: The Quality-aware Dynamic Memory Network

The core of QDMN consists of three primary components designed to optimize memory management and segmentation accuracy.

The QDMN architecture featuring the Quality Assessment Module (QAM) and the dynamic memory read/write process.

Quality Assessment Module (QAM)

The QAM is a lightweight, plug-and-play module that predicts the quality of a generated mask. It takes the current image and the predicted mask as input and outputs a quality score ($S^A$). During training, QAM is supervised to approximate the actual Intersection over Union (IoU) between the prediction and the ground truth.

Dynamic Memory Updating

Unlike traditional models that add frames at fixed intervals, QDMN uses a fixed-capacity memory bank ($\beta$). When a new frame is considered for storage, its quality score must exceed a threshold. If the bank is full, a "Reference Score" ($S^R$) is calculated for all existing frames, combining their Accuracy ($S^A$) and Temporal Consistency ($S^C$—a decay function favoring recent frames). The frame with the lowest $S^R$ is evicted, ensuring the memory bank remains both high-quality and up-to-date.

Prior Enhancement Strategy

To handle rapid motion and occlusions, QDMN utilizes the mask from the immediately preceding frame as a "weak prior." By using an element-wise product to guide feature extraction rather than a "strong prior" that forces reliance on the last frame, the model maintains flexibility in challenging scenarios.

Experimental Evaluation

QDMN was evaluated on major VOS benchmarks, including DAVIS 2016/2017, YouTube-VOS 2018, and the synthetic BL30K dataset.

Quantitative Results

The model achieved a $\mathcal{J}\&\mathcal{F}$ score of 85.6 on DAVIS 2017 and 83.8 on YouTube-VOS, outperforming existing state-of-the-art models like STCN and MiVOS. Notably, the QAM module proved to be a versatile "generic plugin"; adding it to the original STM model increased its DAVIS 2017 performance from 81.5 to 83.6.

Qualitative Analysis

The effectiveness of the QAM is best demonstrated through its ability to distinguish between successful and failed segmentations.

Qualitative examples of the Quality Assessment Module (QAM) assigning scores to predicted masks.

As shown in the figure above, the module correctly assigns lower scores to frames where objects are partially missed or incorrectly identified (e.g., the zebra and golf cart examples with red/green circles). This scoring mechanism prevents these "bad" masks from polluting the memory bank and causing error accumulation.

Discussion and Conclusion

QDMN offers a robust solution to the long-standing issues of memory management in VOS. By being "selective" about its memories, the model avoids the downward spiral of error accumulation and maintains a consistent inference speed (approx. 7.8 FPS) regardless of video length.

While the current system uses a fixed memory capacity, future work could explore adaptive capacity management based on scene complexity. Additionally, distinguishing between high-quality masks of incorrect objects (e.g., similar-looking distractors like zebras crossing paths) remains a challenging frontier. In conclusion, QDMN sets a new standard for efficient and reliable video object segmentation.

Summary updated

BibTeX
@inproceedings{liu2022learning,
  author = {Yong Liu and Ran Yu and Fei Yin and Xinyuan Zhao and Wei Zhao and Weihao Xia and Yujiu Yang},
  title = {{Learning Quality-aware Dynamic Memory for Video Object Segmentation}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19818-2\_27},
}
Figure