Bridging Semantic Grounding and Structural Precision for Portrait Video Matting

Weiran Jia
Zhejiang University
Yunlong Yu †
Zhejiang University
Ziqian Lu
Zhejiang Sci-Tech University
Zhao Wang
Zhejiang University
Jungong Han
Tsinghua University
†Corresponding Author

Abstract

Video portrait matting aims to recover fine-grained alpha mattes while preserving temporal consistency across video frames. Recent mask-guided approaches have achieved promising results by leveraging segmentation masks to specify target subjects. However, extending these approaches to natural-language target specification introduces a fundamental discrepancy between semantic understanding and matting-oriented guidance. To address this limitation, we propose TargetMatte, a language-guided interface that bridges the semantic-to-matting prior gap by establishing semantic-to-spatial correspondence and refining target masks to meet the structural requirements of video matting. TargetMatte first exploits multimodal large language model reasoning to interpret appearance, actions, and spatial relationships, and incorporates portrait-domain adaptation to improve target identification and region-level accuracy. Complementing semantic grounding, a matting-oriented prior refinement mechanism employs boundary-aware correction to improve contour precision. The resulting guidance masks can be directly integrated into existing video matting models without modification. Extensive experiments on synthetic and real-world benchmarks demonstrate consistent improvements in matting quality across multiple video matting backbones, validating the effectiveness and generality of TargetMatte.

Introduction

Photo of two running dogs, lossily compressed using the DiffC algorithm

Video portrait matting aims to extract high-quality foreground alpha mattes while preserving fine-grained structures such as hair strands, clothing edges, and motion blur. Although recent mask-guided methods have achieved promising results, their performance heavily depends on the quality of target masks. In complex multi-person scenes, specifying the intended person through natural language is more intuitive than conventional spatial prompts. However, translating language descriptions into reliable matting guidance remains challenging. General-purpose segmentation models may misinterpret semantic descriptions, omit target regions, or include irrelevant content. Moreover, even correctly localized masks may lack the boundary precision required for high-quality matting.

Method

Photo of two running dogs, lossily compressed using the DiffC algorithm

TargetMatte consists of two complementary stages: semantic-to-spatial target grounding and matting-oriented structural refinement. Given a video frame and a natural-language instruction, an MLLM first interprets the description and identifies the intended portrait, while SAM2 generates the initial target mask. Portrait-domain adaptation further improves target identification and region-level accuracy, reducing missing target regions and the inclusion of irrelevant content. Subsequently, a residual-based refinement network with boundary-aware weighting corrects local contour errors, producing structurally precise target masks. Finally, the refined masks are provided as external guidance to existing mask-guided video matting models for alpha estimation, without modifying their architectures or parameters.

Demo

BibTeX citation

@misc{jia2026targetmatte,
title = {Bridging Semantic Grounding and Structural Precision for Portrait Video Matting},
author = {Weiran Jia, Yunlong Yu, Ziqian Lu, Zhao Wang, and Jungong Han},
year = {2026}
}