Controllable 3D Dance Generation Using Diffusion-Based Transformer U-Net

Puyuan Guo, Tuo Hao, Wenxin Fu, Yingming Gao, Ya LiAAAI 2025

TL;DR

This paper introduces a novel framework for generating controllable 3D dance motions from music and 2D keypoint sequences. By adapting the ControlNet architecture to a diffusion-based Transformer U-Net, they enable fine-grained control over dance generation, allowing users to guide movements with specific poses. This approach significantly enhances the practical applicability of AI-driven dance generation.

What Problem Does This Paper Address?

Generating realistic and engaging 3D dance motions from music has been a growing area of research, fueled by advancements in generative models like diffusion models and Transformers. However, a significant limitation of existing methods is their lack of controllability. While these models can produce high-quality dance sequences, users have little ability to influence the generated movements beyond providing music. This makes it difficult to create dances that adhere to specific choreography or stylistic requirements, limiting their use in applications like film, gaming, and virtual reality where precise control is paramount. This paper aims to bridge this gap by introducing a method that allows users to control 3D dance generation using 2D keypoint sequences.

Methods

The core of this work lies in a two-stage training process for a controllable dance generation framework.

Stage 1: Transformer U-Net Training The foundation is a Transformer U-Net architecture designed for high-quality dance motion generation. Unlike traditional U-Nets that use convolutional layers, this model replaces them with Transformer decoder layers. This choice leverages the power of Transformers for sequence modeling and allows for the fusion of music features and dance data. The U-Net is trained on a large dataset of music-dance pairs, with music serving as the sole conditioning input.

Stage 2: Controllable Generation Framework Inspired by ControlNet, the authors freeze the parameters of the trained U-Net. They then create a "control network" by replicating the U-Net's "downsampling" layers. This control network takes 2D keypoint sequences as input, along with the music condition and timestep. The outputs from the control network's layers are then fed through zero-convolution layers and added to the corresponding "upsampling" layers of the frozen U-Net. This mechanism allows the control network to inject guidance from the 2D keypoints into the U-Net's generation process, influencing the final 3D dance output. During inference, the framework uses both music and 2D keypoints to generate controlled dance movements.

The model also incorporates several auxiliary loss functions (position loss, velocity loss, and foot-ground contact consistency loss) to improve the physical realism of the generated motions. Classifier-free guidance is used during training to enhance the model's ability to handle conditional generation.

Datasets

  • PhantomDance: Used for training the initial Transformer U-Net. This dataset contains manually created 3D motion data in SMPL format, covering over 13 genres and approximately 9.42 hours of content at 30 fps.
  • AIST++: Used for training the controllable generation framework. This dataset provides 2D keypoint data corresponding to 3D motions, totaling 5.19 hours at 60 fps. The 2D keypoints are derived from the C09 camera angle and are stored in COCO format.

Key Insights and Ideas

  • ControlNet Adaptation for Dance: The successful adaptation of the ControlNet paradigm, originally for image generation, to the domain of 3D dance generation is a significant contribution. This demonstrates the versatility of the ControlNet architecture for conditioning complex sequential data.
  • Transformer U-Net for Dance: Replacing convolutional layers with Transformer decoder layers in a U-Net architecture proves effective for dance generation, enhancing rhythm consistency and capturing fine details through skip connections.
  • 2D Keypoints as a Control Signal: Using readily available 2D keypoint sequences as a control mechanism is a practical and accessible way to guide 3D dance generation, making the technology more user-friendly.
  • BAS Metric Limitations: The authors highlight potential issues with the Beat Alignment Score (BAS) metric, suggesting it may lose effectiveness for rhythmically aligned dances where one beat corresponds to multiple music beats, or when generated motions are very similar to ground truth. This points to the ongoing challenge of accurately evaluating music-dance synchronization.

Key Results

  • Quantitative Performance: The proposed Transformer U-Net achieved competitive results on the AIST++ dataset, showing good rhythm consistency. The full controllable framework demonstrated excellent performance, with generated motions closely resembling ground truth when guided by 2D keypoints (low davg scores, e.g., 0.22 for the control network vs. 0.24 for ground truth).
  • Qualitative Results: The framework successfully generated dance movements that resembled the provided 2D keypoints, even when using the same music. Experiments on "in-the-wild" data (from platforms like TikTok) also showed promising results, generating dance movements similar to those in the original videos.

Limitations and Future Work

  • Dependence on Keypoint Quality: The paper acknowledges that the framework's performance is sensitive to the quality of the input 2D keypoints. Poor quality keypoints can lead to unrealistic generated movements.
  • Displacement Information: The framework currently struggles to effectively generate displacement information, which is crucial for realistic motion.
  • Unstable Results: In some cases, especially with "in-the-wild" data, the framework can produce unstable generated results.
  • Future Directions: The authors suggest addressing the dependence on keypoint quality and improving the generation of displacement information. Further research into simulating physical properties could also enhance realism.

Summary updated

BibTeX
@inproceedings{guo2025controllable,
  author = {Puyuan Guo and Tuo Hao and Wenxin Fu and Yingming Gao and Ya Li},
  title = {{Controllable 3D Dance Generation Using Diffusion-Based Transformer U-Net}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=U59dxKs1GD},
}
Figure