UniVS: Unified and Universal Video Segmentation with Prompts as Queries
Minghan Li, Shuai Li, Xindong Zhang, Lei Zhang
TL;DR
UniVS addresses the fragmented landscape of video segmentation by unifying category- and prompt-guided tasks under a single architecture. It treats prompts as queries and uses an averaged prompt-derived initial query plus a target-wise prompt cross-attention mechanism to decode masks, with a memory pool that updates prompts frame-by-frame, eliminating heuristic inter-frame matching. The model comprises an Image Encoder, a Prompt Encoder, and a Unified Video Mask Decoder that processes prompts and images through ProCA, image cross-attention, and separated self-attention, enabling prompt-guided target segmentation across frames. Empirically, UniVS achieves competitive or state-of-the-art results across 10 VS benchmarks (VIS, VSS, VPS, VOS, RefVOS, PVOS), including 92.3 mVC$_8$ on VSPW and 58.2 STQ on VIPSeg, while preserving strong generalization to both category- and prompt-specified tasks. These findings demonstrate a practical, universal approach to video segmentation with potential for broader video-language integration and zero-copy prompt-based tracking.
Abstract
Despite the recent advances in unified image segmentation (IS), developing a unified video segmentation (VS) model remains a challenge. This is mainly because generic category-specified VS tasks need to detect all objects and track them across consecutive frames, while prompt-guided VS tasks require re-identifying the target with visual/text prompts throughout the entire video, making it hard to handle the different tasks with the same architecture. We make an attempt to address these issues and present a novel unified VS architecture, namely UniVS, by using prompts as queries. UniVS averages the prompt features of the target from previous frames as its initial query to explicitly decode masks, and introduces a target-wise prompt cross-attention layer in the mask decoder to integrate prompt features in the memory pool. By taking the predicted masks of entities from previous frames as their visual prompts, UniVS converts different VS tasks into prompt-guided target segmentation, eliminating the heuristic inter-frame matching process. Our framework not only unifies the different VS tasks but also naturally achieves universal training and testing, ensuring robust performance across different scenarios. UniVS shows a commendable balance between performance and universality on 10 challenging VS benchmarks, covering video instance, semantic, panoptic, object, and referring segmentation tasks. Code can be found at \url{https://github.com/MinghanLi/UniVS}.
