Abstract
Despite raw driving videos containing richer information on facial expressions than intermediate representations such as landmarks, they are seldom the subject of research in the field of portrait animation. This is due to two primary challenges: significant identity leakage and the degradation of performance caused by irrelevant background or facial details. To address these, we propose MegActor, a pioneering conditional diffusion model. MegActor introduces a synthetic data generation framework to decouple motion from identity, a CLIP-based background encoding module for stability, and style transfer techniques to eliminate driver-specific facial noise. Trained solely on public datasets, MegActor achieves results comparable to state-of-the-art commercial models.
Introduction
Portrait animation aims to transfer motion and expressions from a "driving" source to a static "reference" portrait. Traditionally, researchers have used intermediate representations like facial landmarks, 3D meshes, or audio signals to control the animation. However, these methods often encounter a "bottleneck": landmarks are too coarse to capture subtle micro-expressions, such as eye movements or forehead wrinkles, and audio-driven methods can struggle with realistic head poses.
While using raw video as a driver provides the richest source of expression data, it introduces two major challenges: Identity Leakage, where the model replicates the driver's face instead of the reference subject, and Irrelevant Noise, where background details or the driver's specific skin textures degrade the output quality. MegActor is designed to harness the power of raw video while mitigating these issues.
Methodology
MegActor is built on the Stable Diffusion (SD 1.5) framework and introduces several architectural and procedural innovations to ensure high-fidelity animation.
Dual-UNet Architecture and Motion Extraction
The system utilizes a ReferenceNet to extract fine-grained identity and background features from the target portrait, which are then injected into a Denoising UNet via cross-attention. To capture motion, a lightweight DrivenEncoder consisting of 2D convolutional layers extracts features directly from raw video frames. This approach allows the model to process pixels directly, capturing the "soul" of an expression that coordinate-based methods discard.
Synthetic Data Pipeline
To solve the identity leakage problem, we developed a synthetic data generation framework. By using Face-Fusion for face swapping and SDXL-based stylization to alter the appearance of driving frames, we created a training dataset where motion and identity are decoupled. This forces the model to learn the motion of the driver without memorizing their identity, ensuring robust generalization.
Background and Style Stability
To maintain spatial consistency, the reference image's background is segmented and encoded using CLIP. This information is integrated into the network as a text-like embedding, leveraging Stable Diffusion's cross-attention mechanisms. Additionally, we apply style transfer from the reference image to the driving video to strip away the driver’s specific facial details before the motion features are extracted.
Experimental Results
MegActor was trained exclusively on public datasets, including VFHQ (Video Facial High Quality) and CelebV-HQ, totaling approximately 700 hours of video data.
Qualitatively, MegActor produces animations with significantly more expressive eye and mouth movements compared to landmark-based models. It demonstrates strong cross-identity robustness, successfully animating portraits even when the driver has a vastly different facial structure or gender than the reference subject.
Quantitatively, MegActor achieves results comparable to closed-source commercial models like Alibaba’s EMO and Microsoft’s VASA-1, despite its reliance on public training data.
Conclusion and Future Work
MegActor represents a significant advancement in open-source portrait animation by successfully utilizing raw video drivers. While the model achieves state-of-the-art expressiveness, some challenges remain, such as jittering in complex areas like hairlines or accessories. Future work will explore integrating the MegActor pipeline with more powerful base models, such as SDXL, to further improve resolution and detail disentanglement.
Code and weights are available at: https://github.com/megvii-research/MegActor
Summary updated