arXiv:2610.26681cs.CVOct 2026

Manuscript Offprint

arXiv:2610.26681

From Short Clips to Real-Time Streams: Identity-Aware Supervision and Context-Efficient Generation for Video Face Swapping

Zekai Luo, Yuwei Liang, Ruiqi Ma, Haoyu Huang, Xuehao Wang, Huanyi Zheng, Mingyu Liu, Linhao Zhong, Chenchen Jing, Yuling Xi, Hao Chen

ABSTRACT

Video face swapping transfers the reference identity to a target video while preserving its other attributes and motion. Despite recent progress in reference-guided flow-based methods, jointly achieving faithful identity transfer, high fidelity, and real-time generation over long video streams remains challenging. To address this challenge, we rethink the task-specific structure of reference-guided video face swapping. First, face swapping changes only identity while preserving

∗^{*}Equal contribution.

†^{\dagger}Corresponding authors.

most visual content, yet flow-matching supervision is weakly sensitive to these changes. We therefore develop Joint Rec-ID Loss, which balances explicit identity supervision and latent reconstruction according to the noise level. Second, the target video already provides non-edited attributes and temporal dynamics, enabling generation with fewer spatial tokens and shorter temporal contexts through Face-RoI Generation and Short-Context Rollout Training. By integrating these designs, we propose STREAMINGSWAP, a reference-guided flow-matching framework for real-time streaming video face swapping. We also introduce HumanFaceVid, comprising 1,000 hours of cinematic training data and evaluation sets of 200 short and 200 long videos. Experiments demonstrate that our method achieves competitive identity transfer and visual quality at 20 FPS on a single NVIDIA RTX 4090 GPU, with stable generation over videos up to 10 minutes long.

1 INTRODUCTION

Video face swapping transfers identity from a source image to a target video while preserving other target attributes, such as expression, pose, gaze, illumination, and background. It has broad applications in film production, AI-generated dramas, and live streaming. GAN-based approaches (Chen et al., 2020; Shiohara et al., 2023; Luo et al., 2025; Henry, 2025) offer strong identity transfer and efficient inference, but processing frames independently can introduce visual artifacts and temporal flicker. To improve realism and temporal coherence, diffusion-based approaches leverage the generative priors of pretrained video diffusion models. Among these, inpainting-based approaches (Han et al., 2024; Wang et al., 2025; Chen et al., 2024; Shao et al., 2024) mask the target face and reconstruct it conditioned on source identity and auxiliary attributes, but removing direct access to fine-grained target cues makes non-edited attributes difficult to preserve faithfully.

Recent reference-guided methods, represented by LivingSwap (Luo et al., 2026) and DreamID-V (Guo et al., 2026), construct paired supervision to retain the complete target video as a visual reference, enabling more faithful preservation of fine-grained target attributes. However, the unmasked target face contains not only the attributes to be preserved but also the identity to be replaced, creating a competing identity signal that makes source-identity injection difficult. Meanwhile, these methods are fine-tuned from large-scale video diffusion models (Wan et al., 2025) and remain computationally expensive due to iterative full-frame denoising over long temporal contexts. Consequently, extending their high-fidelity results to real-time, long-duration generation while ensuring faithful source-identity transfer remains difficult.

These challenges motivate us to rethink reference-guided video face swapping through its task-specific structure. First, video face swapping changes only identity while preserving most visual content in the target video. This leaves flow-matching supervision with a weak signal for identity transfer, as identity differences account for only a small fraction of the latent reconstruction error. Second, the target video directly provides the non-edited attributes and temporal dynamics to be preserved. Yet existing reference-guided methods still process background over long temporal contexts, resulting in substantial computational redundancy.

Guided by these observations, we introduce STREAMINGSWAP, the first reference-guided flow-matching framework for real-time, long-duration video face swapping. To strengthen source-identity transfer, Joint Rec-ID Loss combines clean-latent reconstruction with explicit identity supervision, balancing their relative contributions according to the noise level. For efficient generation, Face-RoI Generation restricts video conditioning and generation to face-region tokens, avoiding redundant background computation. To enable streaming, Short-Context Rollout Training trains the bidirectional model through autoregressive rollout with a short generated history, reducing the mismatch between training and inference while retaining bidirectional generation within each window. We further introduce HumanFaceVid, a cinematic video face-swapping dataset constructed from OpenHumanVid (Li et al., 2025), comprising 1,000 hours of training data and evaluation sets of 200 short and 200 long videos. Across diverse scenarios, STREAMINGSWAP improves identity similarity while preserving target attributes and maintaining high video quality. It processes videos at 20 FPS on a single NVIDIA 4090 GPU and maintains stable generation for videos up to 10 minutes.

Our contributions are summarized as follows:

• We identify and examine two task-specific properties of reference-guided video face swapping: latent flow-matching supervision is weakly sensitive to identity changes, while target-provided visual information allows generation with fewer spatial tokens and shorter temporal contexts.

• We introduce STREAMINGSWAP, which combines Joint Rec-ID Loss, Face-RoI Generation, and Short-Context Rollout Training to enable real-time streaming video face swapping. It achieves 20 FPS on a single NVIDIA 4090 GPU with stable generation on videos up to 10 minutes long.

• We construct HumanFaceVid, comprising 1,000 hours of cinematic training data derived from OpenHumanVid and evaluation sets of 200 short and 200 long videos for assessing identity fidelity, target-attribute preservation, visual quality, and temporal stability.

References (44)