SegTalker: Segmentation-based Talking Face Generation with Mask-guided Local Editing

Lingyu Xiong, Xize Cheng, Jintao Tan, Xianjia Wu, Xiandong Li, Lei Zhu, Fei Ma, Minglei Li, Huang Xu, Zhihu Hu

TL;DR

SegTalker introduces semantic segmentation as an intermediate representation to decouple lip movements from texture generation in audio-driven talking face synthesis. This approach preserves fine-grained details like teeth and skin textures while enabling seamless local facial editing (e.g., blinking, makeup) and background replacement within a unified framework.

What Problem Does This Paper Address?

Audio-driven talking face generation aims to synthesize realistic videos where a subject's lip movements perfectly match an input audio track. However, current state-of-the-art methods face a persistent challenge: preserving fine-grained, identity-specific textures like teeth, hair, and skin quality. Direct audio-to-pixel mapping often results in blurry mouths, generic teeth, or unnatural artifacts.

Furthermore, existing pipelines treat talking face generation, local attribute editing (such as forcing a blink or altering eyebrows), and background replacement as separate problems requiring distinct models. The authors tackle these limitations by proposing a unified framework that cleanly separates structural facial motion from texture synthesis.

Methods

SegTalker achieves this separation by introducing a two-stage pipeline based on semantic segmentation:

  1. Talking Segmentation Generation (TSG): Instead of predicting pixels directly from audio, this module maps input speech (processed using a pre-trained AV-Hubert audio encoder) onto a sequence of dynamic semantic segmentation masks. Because it operates purely in the mask domain, the network focuses entirely on learning the structural mapping from speech to lip shapes without being distracted by texture details.
  2. Segmentation-guided GAN Injection (SGI): To turn these masks back into realistic imagery, a multi-scale feature pyramid network (FPN) extracts regional style vectors from a source image using Global Average Pooling (GAP) guided by the segmentation mask. These vectors are mapped via a multi-layer perceptron (MLP) into a region-disentangled StyleGAN latent space ($W^{c+}$). Finally, the generated talking mask and regional style codes are injected into a mask-guided StyleGAN generator to synthesize the final high-resolution video frame.
Figure 2: Overview of the proposed SegTalker framework for talking face generation. (a) talking segmentation generation (TSG) module takes mel and mask as inputs, then synthesizes the talking segmentation with lip synchronized to input speech. (b) Given reference image and mask from TSG, segmentation-guided GAN injection (SGI) network utilizes a mask-guided multi-scale encoder to extract different semantic region codes, then injects the style codes and synthesized mask from TSG into the mask-guided generator to obtain the final talking face image.

Datasets

The authors trained and evaluated their framework on two prominent audio-visual datasets:

  • HDTF (High-Resolution Audio-Visual Dataset): Consisting of approximately 16 hours of 720p/1080p videos from YouTube featuring over 300 subjects. This dataset provided the rich texture details necessary for high-quality training and quantitative evaluation.
  • MEAD (Multi-view Emotional Audio-visual Dataset): Used primarily for cross-dataset qualitative evaluation to demonstrate how well the model generalizes to unseen identities and environments.

Key Insights and Ideas

  • Segmentation as a Buffer: By using segmentation masks as an intermediate representation, the model completely bypasses the problem of audio directly distorting fine textures. The audio only changes the shape of the mask boundaries, leaving texture rendering to the GAN inversion network.
  • The Power of $W^{c+}$ Latent Space: Disentangling style codes per semantic region allows independent control over specific facial attributes. For instance, a user can swap the texture of just the hair or eyebrows from a reference image without bleeding into the face or background.
  • Prior Learning for Hidden Textures: During SGI training, the network is fed mismatched masks from a 15-frame window. This forces the model to learn structural priors—such as what the teeth look like even if the source image has a closed mouth—allowing it to naturally render teeth when the audio demands an open mouth.

Key Results

SegTalker demonstrates significant improvements over existing methods like Wav2Lip, SadTalker, and DiffTalk across multiple dimensions:

  • Superior Visual Quality: On the HDTF dataset, SegTalker achieved an FID score of 10.348 (outperforming Wav2Lip's 16.299) and a Frechet Video Distance (FVD) of 9.205 (outperforming DiffTalk's 16.606), indicating vastly superior temporal coherence and realism.
  • Precise Texture Preservation: Qualitative evaluations show highly realistic teeth and skin rendering where other models produce blurry or generic shapes.
Figure 3: Qualitative results on MEAD dataset. Our model demonstrates superior overall performance, particularly in preserving fine-grained textures (e.g. teeth)
  • Multitasking Capabilities: The framework handles background swapping and local facial editing (like blinking or hair modification) natively by simply manipulating the intermediate segmentation masks or swapping regional style codes.

Limitations and Future Work

While the paper does not include a dedicated limitations section, a few dependencies are apparent from the architecture:

  • The framework relies heavily on the accuracy of the initial face parsing network (BiSeNet). Erroneous initial segmentations could propagate errors through the pipeline.
  • While the framework handles local editing and background replacement seamlessly, exploring more complex head pose variations and emotional expressions synchronized with audio remains an open direction for future enhancement.

Summary updated

BibTeX
@inproceedings{xiong2024segtalker,
  author = {Lingyu Xiong and Xize Cheng and Jintao Tan and Xianjia Wu and Xiandong Li and Lei Zhu and Fei Ma and Minglei Li and Huang Xu and Zhihu Hu},
  title = {{SegTalker: Segmentation-based Talking Face Generation with Mask-guided Local Editing}},
  booktitle = {ACM Multimedia},
  year = {2024},
  url = {https://openreview.net/forum?id=z0OEHZbT71},
}
Figure