Introduction
The rapid advancement of AI video generation has unlocked new creative possibilities, yet "customization"—the ability to maintain a specific person or object's identity consistently across a sequence—remains a significant challenge. Most contemporary models suffer from identity drift, where facial features or object details fluctuate frame-to-frame. Furthermore, existing solutions are often restricted to single-modality inputs, failing to integrate complex cues like audio for lip-syncing or video masks for precise spatial control.
HunyuanCustom addresses these gaps by introducing a multimodal framework built upon the HunyuanVideo architecture. It enables highly controllable, subject-consistent video generation by integrating text, image, audio, and video inputs into a unified system.
Architectural Innovations
HunyuanCustom introduces three primary innovations to handle diverse input modalities while preserving subject identity:
1. LLaVA-based Text-Image Fusion
Rather than treating text prompts and reference images as isolated inputs, the framework utilizes a Large Multimodal Model (LLaVA) to interweave them. By using structured templates (e.g., "A <image> is performing [action]"), the model achieves a deeper semantic understanding of how the reference subject relates to the described scene.
2. Identity (ID) Enhancement Module
To combat identity drift, HunyuanCustom concatenates the reference image's latent features directly with the video latents along the temporal axis. By treating the reference image as the "initial frame" (frame -1) and employing 3D Rotary Positional Embeddings (3D-RoPE), the model effectively broadcasts the subject's identity across the entire video sequence.
3. Modality-Specific Injection
- AudioNet: This module extracts deep audio features and injects them via spatial cross-attention. This decoupling ensures that audio (speech or rhythm) influences expressions and mouth movements without distorting the underlying facial identity.
- Video-Driven Module: Utilizing a patchify-based feature alignment network, this module projects source video data (such as masks or motion references) into the latent space, facilitating seamless object replacement and background integration.
Data Pipeline and Subject Extraction
The effectiveness of HunyuanCustom relies on a high-quality data curation pipeline. The researchers utilized large-scale datasets like Koala-36M and OpenHumanvid, applying rigorous filtering to remove jump cuts and watermarks. Subject extraction was performed using Qwen7B and YOLO11X to identify and cluster focal points, ensuring that training data remained centered on consistent subjects.
Key Insights and Results
A critical finding of the study was that temporal concatenation is significantly more effective for identity preservation than channel-level stacking. By integrating the reference image into the time sequence, the model leverages its inherent ability to track objects over time. Additionally, the introduction of a spatial shift in positional embeddings prevents the model from simply "copy-pasting" pixels, forcing it to learn the conceptual identity of the subject.
In quantitative evaluations against leading models such as Keling 1.6, Vidu 2.0, and Hailuo, HunyuanCustom achieved a state-of-the-art Face-Sim score of 0.627 and a Subject Similarity (DINO-Sim) score of 0.593. Qualitatively, the model excels in complex scenarios like virtual try-ons and advertisements, where it demonstrates realistic physical interactions between customized subjects and their environments.
Conclusion and Future Directions
While HunyuanCustom sets a new benchmark for customized video generation, challenges remain regarding the computational overhead of the LLaVA backbone and the complexity of multi-subject interactions. Future research will focus on finer-grained motion control and improving the lighting interactions between customized subjects and diverse backgrounds.
Summary updated