TL;DR
Modifying a single misspoken phrase in a recorded video usually demands an expensive reshoot, because stitching AI-generated clips into real footage creates jarring visual jumps. FacEDiT solves this by reframing local video editing as facial motion infilling—masking out a slice of facial movement and regenerating it seamlessly using the new audio and surrounding video frames. Better yet, by simply changing the shape of the mask, this single model doubles as a full portrait animator and lip-sync engine.
What Problem Does This Paper Address?
Imagine a director wanting to change a single line in a shot after wrapping production—inserting a few words, deleting a stumble, or swapping "Zurich" for "Hawaii." While we have great AI tools for portrait animation (making a static photo talk) and lip synchronization (overwriting mouth movements on an existing video), neither actually solves local editing.
Portrait animation generates whole sequences from scratch; if you generate a two-second replacement clip and splice it into real footage, the head pose and lighting won't match at the seams. Lip-sync models keep the original head pose, which breaks down the moment your edit changes the duration of the speech (e.g., inserting a three-word phrase where there used to be silence, leaving you with no driving video frames).
Furthermore, you cannot train an editing model using standard supervised learning. Doing so would require paired videos of the exact same person in the exact same lighting saying two slightly different sentences while moving identically everywhere else—data that simply does not exist.
Methods
To bypass the impossible data requirement, the authors formulate video editing as self-supervised facial motion infilling. During training, they take ordinary talking-head videos, mask out a random span of facial motion, and train the model to reconstruct the missing movement using the audio and the unmasked surrounding frames.
Rather than generating raw pixels directly, FacEDiT operates in a compact 75-dimensional motion latent space (capturing expression, head rotation, and translation) extracted via a frozen LivePortrait pipeline, while WavLM encodes the speech. The core generator is a Diffusion Transformer (DiT) trained with conditional flow matching (a technique that learns to transform random noise into structured motion along straight trajectories).
What makes FacEDiT's architecture uniquely suited for seamless editing are three design choices:
- Mixed Spatiotemporal Masking: During training, the model sees both full-motion masks (hiding all 75 motion channels in a time window) and lip-only masks (hiding just mouth movements while leaving head pose visible).
- Local Temporal Attention Bias: In the Transformer's attention layers, each frame is restricted to attending only to a local window of neighboring frames, forcing smooth transitions across edit boundaries and crisp local lip-sync.
- Temporal Smoothness Regularization: An explicit loss term penalizes sudden velocity jumps between consecutive predicted frames.
At inference time, an upstream speech editor (VoiceCraft) modifies the audio, a face-aware optical-flow resampler adjusts the underlying video frame count for duration changes, and FacEDiT fills in the masked motion before decoding back to pixels.
Datasets
FacEDiT is trained on roughly 200 hours of video combined from Hallo3 (130 hours), CelebV-Dub (60 hours), and HDTF (10 hours), while standard cross-task evaluations are run on the HDTF test split.
Because no standardized benchmark existed for local talking-head edits, the authors built FacEDiTBench: 250 human-verified video–speech pairs sourced from HDTF, Hallo3, and CelebV-Dub. Using GPT-4o to rewrite transcripts and VoiceCraft to synthesize edited audio, the benchmark covers insertions, deletions, and substitutions across short (1–3 words), medium (4–6 words), and long (7–10 words) spans, paired with new optical-flow and photometric boundary-continuity metrics.
Key Insights and Ideas
- One Mask to Rule Them All: Because motion is represented across time and feature channels, changing the binary mask at inference turns one model into three tools. Masking a middle time span performs local video editing; masking all future frames after frame one performs portrait animation; masking only the lip channels across the whole video performs lip synchronization.
- Seamlessness Requires Local Focus: Standard global attention lets frames look everywhere at once, which counterintuitively hurts boundary blending. Restricting attention to a local temporal window acts like mortar between bricks, locking generated motion smoothly into the unedited context.
- Cross-Attention Beats Early Fusion: Injecting speech features via multi-head cross-attention in every DiT block yields sharper lip-speech synchronization than simply concatenating audio and motion at the input.
Key Results
On FacEDiTBench, FacEDiT outperforms nine adapted portrait animation models and three lip-sync models across realism, identity preservation, and boundary smoothness:
- Visual Realism & Identity: Achieves an FVD (lower is more realistic) of 61.930 (vs. 71.818 for the closest baseline, Diff2Lip) and top identity similarity (0.966 IDSIM).
- Seamless Transitions: Cuts photometric boundary discontinuity (
P_continuity) down to 2.420 and motion discontinuity (M_continuity) to 0.800, compared to 3.473 and 1.180 for the best-performing lip-sync adaptations. - Smooth Dynamics & Long Edits: Adding the temporal smoothness loss reduces motion RMS velocity and acceleration jitter by 5.6% and 13.2%, respectively. Stress tests show stable edits out to roughly 30 seconds.
- Cross-Task Generalization & Human Preference: On HDTF portrait animation, FacEDiT beats specialized models with an FVD of 31.662 and lip-sync error (LSE-D) of 6.950. In 30-person human studies, it ranked #1 across editing quality, boundary smoothness, portrait animation, and lip-sync.
Limitations and Future Work
Because FacEDiT relies on a frozen LivePortrait motion extractor and renderer, it inherits their blind spots: extreme profile angles, heavy face occlusions, and rapid head turns can cause rendering artifacts, visual jumps, or stale backgrounds. Additionally, edits longer than ~40 seconds are currently bottlenecked by audio drift in the upstream speech-editing model rather than FacEDiT itself. Finally, the system only models the head and learns emotion implicitly; future work aims to upgrade the rendering backbone, incorporate explicit emotional controls, and extend motion infilling to upper-body gestures.
Summary updated