ContextAnyone: Context-Aware Diffusion for Character-Consistent Text-to-Video Generation
Ziyang Mai, Yu-Wing Tai
TL;DR
ContextAnyone tackles the core challenge of preserving character identity and contextual appearance across T2V sequences. It integrates a dual-encoder framework with a DiT-based diffusion backbone and introduces Emphasize-Attention to reinforce reference cues, along with Gap-RoPE to stabilize temporal modeling. By jointly reconstructing the reference image and generating video frames, and by using a purpose-built dataset pipeline to avoid trivial pixel copying, the method achieves superior identity fidelity and visual quality across diverse motions. The approach offers practical improvements for narrative consistency in character-driven video generation and sets the stage for multi-reference and multi-character extensions.
Abstract
Text-to-video (T2V) generation has advanced rapidly, yet maintaining consistent character identities across scenes remains a major challenge. Existing personalization methods often focus on facial identity but fail to preserve broader contextual cues such as hairstyle, outfit, and body shape, which are critical for visual coherence. We propose \textbf{ContextAnyone}, a context-aware diffusion framework that achieves character-consistent video generation from text and a single reference image. Our method jointly reconstructs the reference image and generates new video frames, enabling the model to fully perceive and utilize reference information. Reference information is effectively integrated into a DiT-based diffusion backbone through a novel Emphasize-Attention module that selectively reinforces reference-aware features and prevents identity drift across frames. A dual-guidance loss combines diffusion and reference reconstruction objectives to enhance appearance fidelity, while the proposed Gap-RoPE positional embedding separates reference and video tokens to stabilize temporal modeling. Experiments demonstrate that ContextAnyone outperforms existing reference-to-video methods in identity consistency and visual quality, generating coherent and context-preserving character videos across diverse motions and scenes. Project page: \href{https://github.com/ziyang1106/ContextAnyone}{https://github.com/ziyang1106/ContextAnyone}.
