Input-Aware Sparse Attention for Real-Time Co-Speech Video Generation

Beijia Lu, Ziyi Chen, Jing Xiao, Jun-Yan Zhu

Introduction

Generating realistic co-speech videos—where a digital avatar's facial expressions and body language synchronize with audio—is a computationally intensive task. While diffusion models have set a new standard for visual quality, they are hindered by two primary bottlenecks: the iterative nature of the denoising process and the quadratic computational cost of standard attention mechanisms. These factors typically prevent high-resolution video generation from reaching real-time speeds.

Researchers from Carnegie Mellon and PAII Inc. address these challenges by introducing a novel distillation method. By leveraging input human pose keypoints to guide "sparse attention" and employing specialized distillation losses, their approach achieves a significant performance leap, reaching 25.3 FPS on modern hardware—a 13.1x speedup over state-of-the-art teacher models.

Methodology

The proposed system utilizes a two-stage pipeline. First, audio input is translated into a sequence of motion keypoints (poses). Second, these poses drive a distilled diffusion model to synthesize the final video. The core innovation lies in the architectural optimization through pose-aware mechanisms:

  • Input-Aware Sparse Attention: Rather than performing dense attention across all pixels and frames, the model uses pose keypoints to generate dynamic masks. Global Masking restricts attention to the most relevant past frames based on pose similarity, while Local Masking focuses the compute budget on homologous regions (e.g., ensuring the face in the current frame primarily attends to the face in previous frames). This effectively ignores static backgrounds and redundant data.
  • Input-Aware Model Distillation: Building on Distribution Matching Distillation (DMD), the authors introduce region-specific loss functions. To maintain high fidelity in critical areas, they incorporate specialized metrics like ArcFace loss, which ensures facial identity and lip-sync remain sharp even after the model is compressed for speed.

Experimental Setup

The model was trained and evaluated using two major datasets:

  1. TalkShow Dataset: A public resource featuring diverse speakers with varying backgrounds and camera motions.
  2. YouTube Talking Video Dataset: A newly curated collection of 45 speakers in half-body and headshot views, characterized by clean backgrounds and static cameras.

The training pipeline utilized DWPose for strict filtering, ensuring that only frames with high-quality facial and body keypoints were used to optimize the model.

Key Results and Insights

The primary insight of this work is that human pose data serves as a structural map for computational efficiency. By pruning attention based on pose, the quadratic scaling problem of standard transformers is mitigated. This allows the model to "freeze" attention on static backgrounds and focus entirely on high-entropy regions like the mouth and hands.

Figure 1: Comparison of the teacher model, a standard causal student, and the proposed method. Our approach achieves 25.3 FPS (13.1x speedup) while maintaining superior visual quality and reducing artifacts in the face and hands compared to the causal student.

Quantitatively, the student model outperformed its teacher (MimicMotion) and other fast baselines like EchoMimicV2. Beyond the 13.1x speedup, the model showed a 10% improvement in lip synchronization (Sync-C) and a 2% gain in motion coherence, demonstrating that targeted distillation can actually enhance specific performance metrics while reducing latency.

Conclusion and Future Work

This research presents the first real-time diffusion-based co-speech avatar system capable of high-fidelity synthesis. While the results are promising, the current sparse attention mechanism is optimized for relatively static backgrounds and may require further adaptation for dynamic environments. Additionally, while hand gestures are significantly improved, fine-grained finger articulation remains a challenge for future iterations. Currently, the system requires high-end GPUs (H100/A100) to achieve real-time rates, suggesting that further optimization for consumer-grade edge devices is a valuable direction for subsequent research.

Summary updated

BibTeX
@inproceedings{lu2025input,
  author = {Beijia Lu and Ziyi Chen and Jing Xiao and Jun-Yan Zhu},
  title = {{Input-Aware Sparse Attention for Real-Time Co-Speech Video Generation}},
  booktitle = {SIGGRAPH Asia},
  year = {2025},
}
Figure