Dance Your Latents: Consistent Dance Generation through Spatial-temporal Subspace Attention Guided by Motion Flow

Haipeng Fang, Zhihao Sun, Ziyao Huang, Fan Tang, Juan Cao, Sheng TangarXiv 2023 · DOI · arXiv

Abstract

Generating high-fidelity human dance videos from a single image and a pose sequence remains a significant challenge due to spatiotemporal inconsistencies such as flickering and "ghosting" artifacts. We present Dance-Your-Latents, a framework that leverages motion flow to guide Spatial-Temporal Subspace-Attention (STSA). By partitioning the video into local 3D subspaces and aligning irregular motion using pose-derived flow, our model maintains structural and textural consistency across frames even during rapid movement. Evaluated on the TikTok dataset, Dance-Your-Latents achieves a state-of-the-art Fréchet Video Distance (FVD) of 334.81, significantly outperforming existing baselines in both visual realism and temporal stability.

Introduction

The task of pose-to-video generation—creating a video of a person dancing based on a single reference photo and a sequence of skeletal poses—is a frontier in generative AI. While diffusion models excel at static image synthesis, they often struggle with spatiotemporal consistency. Standard temporal attention mechanisms typically look at the same spatial coordinates across different time steps. However, in dynamic scenes like dancing, a hand or limb moves rapidly across the frame. When a model looks at a fixed "spot" where a hand used to be, it fails to find the relevant features, leading to incoherent motion, blurred limbs, and flickering backgrounds.

Methodology: Motion-Aware Subspaces

To address these challenges, Dance-Your-Latents introduces a framework centered on intelligent, motion-aware "subspaces" rather than global frame-wide attention.

Spatial-Temporal Subspace-Attention (STSA)

Instead of calculating attention across the entire video frame—which is computationally expensive and introduces noise from distant, unrelated pixels—the model divides the video into small 3D "subspaces" (cuboids of space and time). This local focus ensures that the model prioritizes consistency within relevant spatial neighborhoods. To prevent these blocks from becoming isolated, a Subspace Shifting operation allows information to propagate across boundaries, similar to the mechanism in Swin Transformers.

Motion Flow Guided Alignment

The core innovation is the Subspace Align & Restore mechanism. Since human movement is irregular, the framework uses the input pose sequence to calculate a motion flow. This flow guides the model to "warp" or align irregular moving areas (e.g., a swinging arm) into regular subspaces before calculating attention. After processing, the features are "restored" to their original positions. This ensures the attention mechanism is always tracking the correct body part as it moves through the temporal dimension.

The Dance-Your-Latents architecture, featuring the STSA 3DBlock and the Subspace Align & Restore mechanism.

Experimental Results

The model was trained and evaluated on the TikTok dataset, a benchmark featuring 335 training videos with diverse clothing and complex choreography.

Quantitative Performance

Dance-Your-Latents demonstrates a significant lead over current state-of-the-art models like DreamPose and DisCo. The model achieved a Fréchet Video Distance (FVD) of 334.81, a substantial improvement over DisCo (562.01) and DreamPose (671.50). A lower FVD indicates higher video realism and superior temporal smoothness.

Method FID (Image Quality ↓) FVD (Video Consistency ↓)
DreamPose 72.62 671.50
DisCo 30.75 562.01
Ours (Full) 29.30 334.81

Qualitative Analysis

Visual results confirm that the model maintains sharp facial features and stable clothing textures. Unlike previous methods where hands might disappear or morph during fast movements, Dance-Your-Latents preserves limb integrity and fine details like clothing logos across the entire sequence, even for unseen persons and poses.

Qualitative results showing consistent generation for both seen and unseen persons and poses.

Conclusion and Future Work

Dance-Your-Latents represents a significant step forward in consistent video generation. By moving from global to local, motion-aligned attention, the framework effectively mitigates the common artifacts of AI-generated video. While the model currently relies on the accuracy of input pose estimation, future work could explore applying this subspace alignment technique to broader video tasks, such as general object animation and advanced video editing.

Summary updated

Abstract

The advancement of generative AI has extended to the realm of Human Dance Generation, demonstrating superior generative capacities. However, current methods still exhibit deficiencies in achieving spatiotemporal consistency, resulting in artifacts like ghosting, flickering, and incoherent motions. In this paper, we present Dance-Your-Latents, a framework that makes latents dance coherently following motion flow to generate consistent dance videos. Firstly, considering that each constituent element moves within a confined space, we introduce spatial-temporal subspace-attention blocks that decompose the global space into a combination of regular subspaces and efficiently model the spatiotemporal consistency within these subspaces. This module enables each patch pay attention to adjacent areas, mitigating the excessive dispersion of long-range attention. Furthermore, observing that body part's movement is guided by pose control, we design motion flow guided subspace align & restore. This method enables the attention to be computed on the irregular subspace along the motion flow. Experimental results in TikTok dataset demonstrate that our approach significantly enhances spatiotemporal consistency of the generated videos.
BibTeX
@misc{fang2023dance,
  author = {Haipeng Fang and Zhihao Sun and Ziyao Huang and Fan Tang and Juan Cao and Sheng Tang},
  title = {{Dance Your Latents: Consistent Dance Generation through Spatial-temporal Subspace Attention Guided by Motion Flow}},
  year = {2023},
  eprint = {2310.14780},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.14780},
}
Figure