Multi-grained Temporal Prototype Learning for Few-shot Video Object Segmentation

Nian Liu, Kepan Nan, Wangbo Zhao, Yuanwei Liu, Xiwen Yao, Salman Khan, Hisham Cholakkal, Rao Muhammad Anwer, Junwei Han, Fahad Shahbaz Khan

Abstract

Few-Shot Video Object Segmentation (FSVOS) requires models to segment novel objects in a query video based on only a few annotated support images. Traditional methods often struggle with temporal consistency, leading to flickering masks or failure to track objects through occlusions. This paper introduces the Video Intermediate Prototype Mining Transformer (VIPMT), a framework that leverages multi-grained temporal prototypes—clip-level, frame-level, and memory-level—to maintain robust object representations. By incorporating a Reliable Memory Selection (RMS) mechanism and a Cross-Category Discriminative Segmentation (CCDS) loss, VIPMT achieves state-of-the-art performance on major benchmarks, significantly improving both segmentation accuracy and temporal stability.

Introduction

Few-shot learning has seen significant progress in image segmentation, but extending these capabilities to the video domain introduces the critical challenge of temporal correlation. In FSVOS, a model must generalize to unseen categories using minimal supervision. Simply applying image-based few-shot models to individual video frames often results in "inconsecutive" segmentations where masks flicker or disappear as objects move, change shape, or undergo partial occlusion.

Existing approaches to address these temporal dependencies often rely on computationally expensive many-to-many attention mechanisms that do not scale efficiently. VIPMT addresses these limitations by decomposing video information into a hierarchical prototype structure, ensuring that the model maintains a consistent understanding of the target object across short-term clips and long-term sequences.

The VIPMT Framework

VIPMT extends the state-of-the-art Image Prototype Mining Transformer (IPMT) by introducing three distinct levels of temporal guidance. This multi-grained approach allows the model to balance local smoothness with the flexibility needed to handle rapid appearance changes.

1. Multi-Grained Prototypes

  • Clip Prototypes: The video is processed in short temporal windows. Clip prototypes capture the consensus of the object's appearance across these frames, providing a stable anchor that ensures local temporal smoothness.
  • Frame Prototypes: To account for rapid motion or occlusions, the model generates independent prototypes for each frame. A bidirectional communication loop allows clip and frame prototypes to update each other iteratively, refining the object representation.
  • Memory Prototypes: To prevent the model from "forgetting" the target over long durations, VIPMT maintains a memory bank of previously segmented frames, providing a long-term reference for the object's identity.

2. Reliable Memory Selection (RMS)

Not all historical frames are beneficial; poor segmentation in a previous frame can "poison" the memory bank and lead to error propagation. To mitigate this, the authors developed the Reliable Memory Selection (RMS) module. This module utilizes an IoUNet to predict the quality of past masks. Furthermore, it incorporates structural similarity maps—comparing foreground and background regions of the query video to the original support images—to ensure only high-quality, relevant information is stored in memory.

3. Cross-Category Discriminative Segmentation (CCDS) Loss

To improve the model's ability to distinguish between similar categories, the authors introduced the CCDS loss. This loss function forces the model to ensure that a prototype generated for one category (e.g., "Panda") does not erroneously activate regions belonging to a different category (e.g., "Cat") within the same training batch, enhancing the discriminative power of the learned prototypes.

Experimental Results

VIPMT was evaluated on two primary benchmarks: YouTube-VIS (a standard instance segmentation dataset adapted for few-shot tasks) and MiniVSPW (a challenging dataset featuring longer sequences and complex scenes).

Performance and Consistency

On the YouTube-VIS benchmark, VIPMT achieved a 64.2% J-mean (region similarity), representing a 4% improvement over the previous state-of-the-art FSVOS model (TTI) and a 6.4% increase over the baseline IPMT image model.

The model's most significant advantage lies in its temporal stability. Using the $mVC_7$ metric, which measures prediction stability over time, VIPMT scored 65.7. This vastly outperforms the baseline image model (57.7) and previous video-specific models (41.5). Similar gains were observed on the MiniVSPW dataset, where VIPMT improved the $J$-mean by over 3% and temporal consistency by a remarkable 17% compared to TTI.

Discussion and Limitations

While VIPMT sets a new standard for FSVOS, it does introduce some trade-offs. The multi-grained hierarchy and memory management systems increase computational overhead and inference time compared to simpler image-based models. Additionally, the current implementation uses a fixed memory length ($T_m=5$), which may struggle with extremely long videos where objects disappear and reappear after long intervals. Future work may explore more sophisticated long-term memory management and methods to further reduce category overlap in highly similar scenes.

Conclusion

VIPMT demonstrates that effective few-shot video object segmentation requires more than just frame-by-frame analysis. By utilizing a hierarchy of temporal prototypes and a robust memory selection mechanism, the framework successfully bridges the gap between image-level few-shot learning and the complex temporal demands of video processing. The result is a model that is not only more accurate but significantly more stable across time.

Summary updated

BibTeX
@inproceedings{liu2023multi,
  author = {Nian Liu and Kepan Nan and Wangbo Zhao and Yuanwei Liu and Xiwen Yao and Salman Khan and Hisham Cholakkal and Rao Muhammad Anwer and Junwei Han and Fahad Shahbaz Khan},
  title = {{Multi-grained Temporal Prototype Learning for Few-shot Video Object Segmentation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure