Dancing to Music

  • 2019-11-05 18:56:15
  • Hsin-Ying Lee, Xiaodong Yang, Ming-Yu Liu, Ting-Chun Wang, Yu-Ding Lu, Ming-Hsuan Yang, Jan Kautz
  • 37


Dancing to music is an instinctive move by humans. Learning to model themusic-to-dance generation process is, however, a challenging problem. Itrequires significant efforts to measure the correlation between music and danceas one needs to simultaneously consider multiple aspects, such as style andbeat of both music and dance. Additionally, dance is inherently multimodal andvarious following movements of a pose at any moment are equally likely. In thispaper, we propose a synthesis-by-analysis learning framework to generate dancefrom music. In the analysis phase, we decompose a dance into a series of basicdance units, through which the model learns how to move. In the synthesisphase, the model learns how to compose a dance by organizing multiple basicdancing movements seamlessly according to the input music. Experimentalqualitative and quantitative results demonstrate that the proposed method cansynthesize realistic, diverse,style-consistent, and beat-matching dances frommusic.


Quick Read (beta)

Dancing to Music

Hsin-Ying Lee1  Xiaodong Yang2  Ming-Yu Liu2  Ting-Chun Wang2
Yu-Ding Lu1Ming-Hsuan Yang1Jan Kautz2
1University of California, Merced  2NVIDIA

Dancing to music is an instinctive move by humans. Learning to model the music-to-dance generation process is, however, a challenging problem. It requires significant efforts to measure the correlation between music and dance as one needs to simultaneously consider multiple aspects, such as style and beat of both music and dance. Additionally, dance is inherently multimodal and various following movements of a pose at any moment are equally likely. In this paper, we propose a synthesis-by-analysis learning framework to generate dance from music. In the analysis phase, we decompose a dance into a series of basic dance units, through which the model learns how to move. In the synthesis phase, the model learns how to compose a dance by organizing multiple basic dancing movements seamlessly according to the input music. Experimental qualitative and quantitative results demonstrate that the proposed method can synthesize realistic, diverse, style-consistent, and beat-matching dances from music.


Dancing to Music

  Hsin-Ying Lee1  Xiaodong Yang2  Ming-Yu Liu2  Ting-Chun Wang2 Yu-Ding Lu1Ming-Hsuan Yang1Jan Kautz2 1University of California, Merced  2NVIDIA


noticebox[b]33rd Conference on Neural Information Processing Systems (NeurIPS 2019), Vancouver, Canada.\[email protected]

1 Introduction

Does this sound familiar? Upon hearing certain genres of music, you cannot help but clap your hands, tap your feet, or swing you hip accordingly. Indeed, music inspires dances in daily life. Via spontaneous and elementary movements, people compose body movements into dances Madison et al. (2011); Schellenberg et al. (2000). However, it is only through proper training and constant practice, professional choreographers learn to compose the dance moves in a way that is both artistically elegant and rhythmic. Therefore, dance to music is a creative process that is both innate and acquired. In this paper, we propose a computational model for the music-to-dance creation process. Inspired by the above observations, we use prior knowledge to design the music-to-dance framework and train it with a large amount of paired music and dance data. This is a challenging but interesting generative task with the potential to assist and expand content creations in arts and sports, such as theatrical performance, rhythmic gymnastics, and figure skating. Furthermore, modeling how we human beings match our body movements to music can lead to better understanding of cross-modal synthesis.

Existing methods Fan et al. (2012); Lee et al. (2013); Ofli et al. (2012) convert the task into a similarity-based retrieval problem, which shows limited creativity. In contrast, we formulate the task from the generative perspective. Learning to synthesize dances from music is a highly challenging generative problem for several reasons. First, to synchronize dance and music, the generated dance movements, beyond realism, need to be aligned well with the given musical style and beats. Second, dance is inherently multimodal, i.e., a dancing pose at any moment can be followed by various possible movements. Third, the long-term spatio-temporal structures of body movements in dancing result in high kinematic complexity.

In this paper, we propose to synthesize dance from music through a decomposition-to-composition framework. It first learns how to move (i.e., produce basic movements) in the decomposition/analysis phase, and then how to compose (i.e., organize basic movements into a sequence) in the composition/synthesis phase. In the top-down decomposition phase, analogous to audio beat tracking of music Ellis (2007), we develop a kinematic beat detector to extract movement beats from a dancing sequence. We then leverage the extracted movement beats to temporally normalize each dancing sequence into a series of dance units. Each dance unit is further disentangled into an initial pose space and a movement space by the proposed dance unit VAE (DU-VAE). In the bottom-up composition phase, we propose a music-to-movement GAN (MM-GAN) to generate a sequence of movements conditioned on the input music. At run time given an input music clip, we first extract the style and beat information, then sequentially generate a series of dance units based on the music style, and finally warp the dance units by the extracted audio beats, as illustrated in Figure 1.

To facilitate this cross-modal audio-to-visual generation task, we collect over 360K video clips totaling 71 hours. There are three representative dancing categories in the data: “Ballet”, “Zumba” and “Hip-Hop”. For performance evaluation, we compare with strong baselines using various metrics to analyze realism, diversity, style consistency, and beat matching. In addition to the raw pose representation, we also visualize our results with the vid2vid model Wang et al. (2018) to translate the synthesized pose sequences to photo-realistic videos. See our supplementary material for more details.

Our contributions of this work are summarized as follows. First, we introduce a new cross-modality generative task from music to dance. Second, we propose a novel decomposition-to-composition framework to dismantle and assemble between complex dances and basic movements conditioned on music. Third, our model renders realistic and diverse dances that match well to musical styles and beats. Finally, we provide a large-scale paired music and dance dataset, which is available along with the source code and models at our website.

Figure 1: A schematic overview of the decomposition-to-composition framework. In the top-down decomposition phase (Section 3.1), we normalize the dance units that are segmented from a real dancing sequence using a kinematic beat detector. We then train the DU-VAE to model the dance units. In the bottom-up composition phase (Section 3.2), given a pair of music and dance, we leverage the MM-GAN to learn how to organize the dance units conditioned on the given music. In the testing phase (Section 3.3), we extract style and beats from the input music, then synthesize a sequence of dance units in a recurrent manner, and in the end, apply the beat warper to the generated dance unit sequence to render the output dance.

2 Related Work

Cross-Modality Generation. This task explores the association among different sensory modes and leads to better understanding of human perception Karpathy and Fei-Fei (2015); Karras et al. (2017); Lee et al. (2018); Owens et al. (2016a); Reed et al. (2016); Vinyals et al. (2015); Zhang et al. (2017). Generations between texts and images have been extensively studied, including image captioning Karpathy and Fei-Fei (2015); Vinyals et al. (2015) and text-to-image synthesis Reed et al. (2016); Zhang et al. (2017). On the contrary, audio data is much less structured and thus more difficult to model its correlation with visual data. Several approaches have been developed to map vision to audio by taking visual cues to provide sound effects to videos or predict what sounds target objects can produce Davis et al. (2014); Owens et al. (2016a); Zhou et al. (2018). However, the generation problem from audio to visual is much less explored. Several methods focus on speech lip synchronization to predict movements of mouth landmarks from audio Karras et al. (2017); Suwajanakorn et al. (2017). Recent work employs LSTM based autoencoders to learn the music-to-dance mapping Tang et al. (2018), and uses LSTM to animate the instrument-playing avatars given an audio input of violin or piano Shlizerman et al. (2018).

Audio and Vision. The recent years have seen growing interests in cross-modal learning between audio and vision. Although hearing and sight are two distinct sensory systems, the information perceived from the two modalities is highly correlated. The correspondence between audio and vision serves as natural supervisory signals for self-supervised learning, which aims to learn feature representations by solving surrogate tasks defined from the structure of raw data Arandjelovic and Zisserman (2017); Aytar et al. (2016); Doersch et al. (2015); Lee et al. (2017); Owens et al. (2016b). Aside from representation learning, audio and visual information can be jointly used to localize the sound sources in images Arandjelović and Zisserman (2018); Harwath et al. (2018); Senocak et al. (2018), predict spatial-audio from videos Lu et al. (2019), and separate different audio-visual sources Ephrat et al. (2018); Gao et al. (2018); Owens and Efros (2018). In addition, an audio-visual synchronization model is developed in Davis and Agrawala (2018) by utilizing the visual rhythm with its musical counterpart to manipulate videos.

Human Motion Modeling. It is challenging to model human motion dynamics due to the stochastic nature and spatio-temporal complexity. A large family of the existing work Chao et al. (2017); Walker et al. (2017); Yan et al. (2018); Yang and Tian (2014) formulates motion dynamics as a sequence of 2D or 3D body keypoints, thanks to the success of human pose estimation Cao et al. (2017). Most of these approaches use recurrent neural networks to generate a motion sequence from a static image or a short video snippet. Some other methods consider this problem as a video generation task. Early work applies mean square loss Srivastava et al. (2015) or perceptual loss Mathieu et al. (2016) on raw image sequences for training. Recent methods disentangle motion and content Denton and Birodkar (2017); Tulyakov et al. (2018); Vondrick et al. (2016) to alleviate the issues with holistic video generation. Another active research line is motion retargeting, which performs motion transfer between source and target subjects Aberman et al. (2019).

3 Music-to-Dance Generation

Our goal is to generate a sequence of dancing poses conditioned on the input music. As illustrated in Figure 1, the training process is realized by the decomposition-to-composition framework. In the top-down decomposition phase, we aim to learn how to perform basic dancing movements. For this purpose, we define and extract dance units, and introduce DU-VAE for encoding and decoding dance units. In the bottom-up composition phase, we target learning how to compose multiple basic movements to a dance, which conveys high-level motion semantics according to different music. So we propose MM-GAN for music conditioned dancing movement generation. Finally, in the testing phase, we use the components of DU-VAE and MM-GAN to recurrently synthesize a long-term dance in accordance with the given music.

3.1 Learning How to Move

In the music theory, beat tracking is usually derived from onset Ellis (2007), which can be defined as the start of a music note, or more formally, the beginning of an acoustic event. Current audio beat detection algorithms are mostly based on detecting onset using a spectrogram S to capture the frequency domain information. We can measure the change in different frequencies by Sdiff(t,k)=|S(t,k)|-|S(t-1,k)|, where t and k indicate the time step and quantized frequency, respectively. More details on music beat tracking can be found in Ellis (2007). Unlike music, the kinematic beat of human movement is not well defined. We usually perceive the sudden motion deceleration or offset as a kinematic beat. A similar observation is also recently noted in Davis and Agrawala (2018).

We develop a kinematic beat detector to detect when a movement drastically slows down. In practice, we compute the motion magnitude and angle of each keypoint between neighboring poses, and track the magnitude and angle trajectories to spot when a dramatic decrease in the motion magnitude or a substantial change in the motion angle happens. Analogous to the spectrogram S, we can construct a matrix D to capture the motion changes in different angles. For a pose p of frame t, the difference in a motion angle bin θ is summed over all joints:

D(t,θ)=i|pti-pt-1i|Q(pti,pt-1i,θ), (1)

where Q is an indicator function to quantize the motion angles. Then, the changes in different motion angles can be computed by:

Ddiff(t,θ)=|D(t,θ)|-|D(t-1,θ)|. (2)

This measurement captures abrupt magnitude decrease in the same direction, as well as dramatic change of motion direction. Finally, the kinematic beats can be detected by thresholding Ddiff.

However, in reality, people do not dance to every musical beat. Namely, each kinematic beat needs to align with a musical beat, yet it is unnecessary to fit every musical beat while dancing. Figure 2(a) shows the correspondence between the extracted musical beats by a standard audio beat tracking algorithm Ellis (2007) and the kinematic beats by our kinematic beat detector. Most of our detected kinematic beats match the musical beats accurately.

Leveraging the extracted kinematic beats, we define the dance unit in this work. As illustrated in Figure 2(b), a dance unit is a temporally standardized short snippet, consisting of a fixed number of poses, whose kinematic beats are normalized to several specified beat times with a constant beat interval. A dance unit captures basic motion patterns and serves as atomic movements, which can be used to constitute a complete dancing sequence. Another benefit of introducing the dance unit is that, with temporal normalization of beats, we can alleviate the beat factor and simplify the generation to focus on musical style. In the testing phase, we incorporate the music beats to warp or stretch the synthesized sequence of dance units.

Figure 2: (a) Extraction of beats from music and dance. For music, periodical beats are extracted by the onset strength. For dance, we compute the offset strength and extract kinematic beats. We illustrate three example frames corresponding to the aligned music and kinematic beats: lateral arm raising (red), hand raising (yellow), and elbow pushing out (purple). (b) Examples of dance units. Every dance unit is of the same length and with kinematic beats assigned in the specific beat times.

After normalizing a dance into a series of dance units, the model learns how to perform basic movements. As shown in the decomposition phase of Figure 1, we propose to disentangle a dance unit into two latent spaces: an initial pose space 𝒵ini capturing the single initial pose, and a movement space 𝒵mov encoding the motion that is agnostic of the initial pose. This disentanglement is designed to facilitate the long-term sequential generation, i.e., the last pose of a current dance unit can be used as the initial pose of the next one, so that we can continuously synthesize a full long-term dance. We adopt the proposed DU-VAE to perform the disentangling. It consists of an initial-pose encoder Eini, a movement encoder Emov, and a dance unit decoder Guni. Given a dance unit u𝒰, we exploit Eini and Emov to encode it into the two latent codes zini𝒵ini and zmov𝒵mov: {zini,zmov}={Eini(u),Emov(u)}. As Guni should be able to reconstruct the two latent codes back to u^, we enforce a reconstruction loss on u and a KL loss on the initial pose space and movement space to enable the reconstruction after encoding and decoding:

Lreconu=𝔼[Guni(zini,zmov)-u1],LKLu=𝔼[KL(𝒵iniN(0,I))]+𝔼[KL(𝒵movN(0,I))], (3)

where KL(pq)=-p(z)logp(z)q(z)dz. We apply the KL loss on 𝒵ini for random sampling of the initial pose at test time, and the KL loss on 𝒵mov to stabilize the composition training in the next section. With the intention to encourage Emov to disregard the initial pose and focus on the movement only, we design a shift-reconstruction loss:

Lreconshift=𝔼[Guni(zini,Emov(u))-u1], (4)

where u is a spatially shifted u. Overall, we jointly train the two encoders Eini, Emov, and one decoder Guni of DU-VAE to optimize the total objective in the decomposition:

Ldecomp=Lreconu+λKLuLKLu+λreconshiftLreconshift, (5)

where λKLu and λreconshift are the weights to control the importance of KL and shift-reconstruction terms.

3.2 Learning How to Compose

Since a dance consists of a sequence of movement units in a particular arrangement, different combinations can represent different expressive semantics. Based on the movement space 𝒵mov disentangled from the aforementioned decomposition, the composition model learns how to meaningfully compose a sequence of basic movements into a dance conditioned on the input music.

As demonstrated in the composition phase of Figure 1, the proposed MM-GAN is utilized to bridge the semantic gap between low-level movements and high-level music semantics. Given a dance, we first normalize it into a sequence of n dance units {ui}i=1n, and then encode them to the latent movement codes {zmovi}i=1n, as described in the decomposition phase. In this context, {} denotes a temporally ordered sequence, for notational simplicity, we skip the temporal number n in the following. We encode {zmovi} to a dancing space 𝒵dan with a movement-to-dance encoder Emtd: {zmovi}zdan, and reconstruct zdan back to {z^movi} with a recurrent dance decoder Gdan. For the corresponding music, we employ a music style extractor to extract the style feature s from the audio feature a. Since there exists no robust style feature extractor given our particular needs, we train a music style classifier on the collected music for this task. We encode s along with a noise vector ϵ to a latent dance code z~dan𝒵dan using a style-to-dance encoder Estd: (s,ϵ)z~dan, and then make use of Gdan to decode z~dan to a latent movement sequence {z~movi}.

It is of great importance to ensure the alignments among movement distributions and among dance distributions that are respectively produced by real dance and corresponding music. To this end, we use adversarial training to match the distributions between {z^movi} encoded and reconstructed from the real dance units and {z~movi} generated from the associated music. As the audio feature a contains low-level musical properties, we make the decision conditioned on a to further encourage the correspondence between music and dance:

Ladvm=𝔼[logDmov({z^movi},a)+log(1-Dmov({z~movi},a))], (6)

where Dmov is the discriminator that tries to distinguish between the movement sequences that are generated from real dance and music. Compared to the distribution of raw data, such as poses, it is more difficult to model the distribution of latent code sequences, or, {zmovi} in our case. We thus adopt an auxiliary reconstruction task on the latent movement sequences to facilitate training:

Lreconm=𝔼[{z^movi}-{zmovi}1]. (7)

For the alignment between latent dance codes, we apply a discriminator Ddan to differentiate the dance codes encoded from real dance and music, and enforce a KL loss on the latent dance space:

Ladvd=𝔼[logDdan(zdan)+log(1-Ddan(z~dan))],LKLd=𝔼[KL(𝒵danN(0,I))]. (8)

As the style feature s embodies high-level musical semantics that should be reflected in the dance code zdan, we therefore use a style regressor Esty on the latent dance codes to reconstruct s to further encourage the alignment between the styles of music and dance:

Lrecons=𝔼[Esty(zdan)-s1+Esty(z~dan)-s1]. (9)

Overall, we jointly train the three encoders Emtd, Estd, Esty, one decoder Gdan, and two discriminators Dmov, Ddan of MM-GAN to optimize the full objective in the composition:

Lcomp=Lreconm+λreconsLrecons+λadvmLadvm+λadvdLadvd+λKLdLKLd, (10)

where λrecons, λadvm, λadvd, and λKLd are the weights to control the importance of related loss terms.

3.3 Testing Phase

As shown in the testing phase of Figure 1, the final network at run time consists of Eini, Guni learned in the decomposition and Esty, Gdan trained in the composition. Given a music clip, we first track the beats and extract the style feature s. We encode s with a noise ϵ into a latent dance code z~dan by Estd and then decode z~dan to a movement sequence {z~movi} by Gdan. To compose a complete dance, we randomly sample an initial pose code zini0 from the prior distribution, and then recurrently generate a full sequence of dance units using zini0 and {z~movi}. The initial pose code zinii of the next dance unit can be encoded from the last frame of the current dance unit:

ui=Guni(zinii-1,zmovi),zinii=Eini(ui(-1)), (11)

where ui(-1) is the last frame of the ith dance unit. With these steps, we can continuously and seamlessly generate a long-term dancing sequence fitting into the input music. Since the beat times are normalized in each dance unit, we in the end warp the generated sequence of dance units by aligning their kinematic beats with the extracted music beats to produce the final full dance.

4 Experimental Results

We conduct extensive experiments to evaluate the proposed decomposition-to-composition framework. We qualitatively and quantitatively compare our method with several baselines on various metrics including motion realism, style consistency, diversity, multimodality, and beat coverage and hit rate. Experimental results reveal that our method can produce more realistic, diverse, and music-synchronized dances. More comparisons are provided in the supplementary material. Note that we could not include music in the embedded animations of this PDF, but the complete results with music can be found in the supplementary video.

4.1 Data Collection and Processing

Since there exists no large-scale music-dance dataset, we collect videos of three representative dancing categories from the Internet with the keywords: “Ballet”, “Zumba”, and “Hip-Hop”. We prune the videos with low quality and few motion, and extract clips in 5 to 10 seconds with full pose estimation results. In the end, we acquire around 68K clips for “Ballet”, 220K clips for “Zumba”, and 73K clips for “Hip-Hop”. The total length of all the clips is approximately 71 hours. We extract frames with 15 fps and audios with 22 kHz. We randomly select 300 music clips for testing and the rest used for training.

Pose Processing. OpenPose Cao et al. (2017) is applied to extract 2D body keypoints. We observe that in practice some keypoints are difficult to be consistently extracted in the wild web videos and some are less related to dancing movements. So we finally choose 14 most relevant keypoints to represent the dancing poses, i.e., nose, neck, left and right shoulders, elbows, wrists, hips, knees, and ankles. We interpolate the missing detected keypoints from the neighboring frames so that there are no missing keypoints in all extracted clips.

Audio Processing. We use the standard MFCC as the music feature representation. The audio volume is normalized using root mean square with FFMPEG. We then extract the 13-dimensional MFCC feature, and concatenate it with its first temporal derivatives and log mean energy of volume into the final 28-dimensional audio feature.

4.2 Implementation Details

Our model is implemented in PyTorch. We use the gated recurrent unit (GRU) to build encoders Emov, Emtd and decoders Guni, Gdan. Each of them is a single-layer GRU with 1024 hidden units. Eini, Estd, and Esty are encoders consisting of 3 fully-connected layers. Ddan and Dmov are discriminators containing 5 fully-connected layers with layer normalization. We set the latent code dimensions to ziniR10, zmovR512, and zdanR512. In the decomposition phase, we set the length of a dance unit as 32 frames and the number of beat times within a dance unit as 4. In the composition phase, each input sequence contains 3 to 5 dance units. For training, we use the Adam optimizer Kingma and Ba (2015) with batch size of 512, learning rate of 0.0001, and exponential decay rates (β1,β2)=(0.5,0.999). In all experiments, we set the hyper-parameters as follows: λKLu=λKLd=0.01, λreconshift=1, λadvd=λadvm=0.1, and λrecons=1. Our data, code and models are publicly available at our website.

4.3 Baselines

Generating dance from music is a relatively new task from the generative perspective and thus few methods have been developed. In the following, we compare the proposed algorithm to the several strong baseline methods. As our comparisons mainly target generative models, we present the results of traditional retrieval-based method in the supplementary material.

LSTM. We use LSTM as our deterministic baseline. Similar to the recent work on mapping audio to arm and hand dynamics Shlizerman et al. (2018), the model takes audio features as inputs and produces pose sequences.

Aud-MoCoGAN. MoCoGAN Tulyakov et al. (2018) is a video generation model, which maps a sequence of random vectors containing the factors of fixed content and stochastic motion to a sequence of video frames. We modify this model to take extracted audio features on style and beat as inputs in addition to noise vectors. To improve the quality, we use multi-scale discriminators and apply curriculum learning to gradually increase the dance sequence length.

Ours w/o L𝐜𝐨𝐦𝐩. This model ablates the composition phase and relies on the decomposition phase. In addition to the original DU-VAE for decomposition, we enforce the paired music and dance unit to stay close when mapped in the latent movement space. At test time, we map a music clip into the movement space, and then recurrently generate a sequence of dance units by using the last pose of one dance unit as the first pose of the next one.

w/o Lcomp
\animategraphics[width=0.11]10Videos/b1/frame_001060 \animategraphics[width=0.11]10Videos/b2/frame_001060 \animategraphics[width=0.11]10Videos/b3/frame_001060 \animategraphics[width=0.11]10Videos/ours/frame_001060
\animategraphics[width=0.11]10Videos/div_ballet_v2/frame_001060 \animategraphics[width=0.11]10Videos/div_ballet2_v2/frame_001060 \animategraphics[width=0.11]10Videos/div_zumba_v2/frame_001060 \animategraphics[width=0.11]10Videos/div_hiphop_v2/frame_001060
(a) (b)
Figure 3: (a) Comparison of the generated dances. LSTM produces dances that tend to collapse to static poses. Aud-MoCoGAN generates jerking dances that are prone to repeating the same movements. Ours w/o Lcomp produces realistic movements, yet the combinations of movements are often unnatural. Compared to the baselines, our results are realistic and coherent. (b) Examples of multimodal generation. Dances in each column are generated by our method using the same music clip and initial pose. This figure is best viewed via Acrobat Reader. Click each column to play.

4.4 Qualitative Comparisons

We first compare the quality of synthesized dances by different methods. Figure 3(a) shows the dances generated from different input music. We observe that the dances generated by LSTM tend to collapse to certain poses regardless of the input music or initial pose. The deterministic nature of LSTM hinders it from learning the desired mapping to the highly unconstrained dancing movements. For Aud-MoCoGAN, the generated dances contain apparent artifacts such as twitching or jerking in an unnatural way. Furthermore, the synthesized dances tend to be repetitive, i.e., performing the same movement throughout a whole sequence. This may be explained by the fact that Aud-MoCoGAN takes all audio information including style and beat as input, of which correlation with dancing movements is difficult to learn via a single model. Ours w/o Lcomp can generate smoother dances compared to the above two methods. However, since the dance is simply formed by a series of independent dance units, it is easy to observe incoherent movements. For instance, the third column in Figure 3(a) demonstrates the incoherent examples, such as mixing dance with different styles (top), an abrupt transition between movements (middle), and unnatural combination of movements (bottom). In contrast, the dances generated by our full model are more realistic and coherent. As demonstrated in the fourth column in Figure 3(a), the synthesized dances consist of smooth movements (top), consecutive similar movements (middle), and a natural constitution of raising the left hand, raising the right hand, and raising both hands (bottom).

Figure 4: Examples of beat matching between music and generated dances. We show two generated dances with the extracted kinematic offsets as well as music onsets from input music. The red dashes on the onset and offset graphs indicate the extracted musical beats and kinematic beats. The consecutive matched beats correspond to clapping hands on left and right alternatively (left), and squatting down repetitively (right).

We also analyze two other important properties for the music-to-dance generation: multimodality and beat matching. For multimodality, our approach is able to generate diverse dances given the same music. As shown in Figure 3(b), each column shows various dances that are synthesized from the same music and the same initial pose. For beat matching, we compare the kinematic beats extracted from the generated dances and their corresponding input music beats. Most kinematic beats of our generated dances occur at musical beat times. Figure 4 visualizes two short dancing snippets which align with their musical beats, including clapping hands to left and right alternatively, and squatting down repetitively. More demonstrations with music, such as long-term generation, mixing styles and photo-realistic translation, are available in the supplementary video.

4.5 Quantitative Comparisons

Motion Realism and Style Consistency. Here we perform a quantitative evaluation of the realism of generated movements and the style consistency of synthesized dances to the input music. We conduct a user study using a pairwise comparison scheme. Specifically, we evaluate generated dances from the four methods as well as real dances on 60 randomly selected testing music clips. Given a pair of dances with the same music clip, each user is asked to answer two questions: “Which dance is more realistic regardless of music?” and “Which dance matches the music better?”. We ask each user to compare 20 pairs and collect results from a total of 50 subjects.

Figure 5 shows the user study results, where our approach outperforms the baselines on both motion realism and style consistency. It is consistently found that LSTM and Aud-MoCoGAN generate dances with obvious artifacts and result in low preferences. Although ours w/o Lcomp can produce high-quality dance units, the simple concatenation of independent dance units usually makes the synthesized dance look unnatural. This is also reflected in the user study, where 61.2% prefer the full solution in term of motion realism, and 68.3% in style consistency. Compared to the real dances, 35.7% of users prefer our approach in term of motion realism and 28.6% in style consistency. Note that the upper bound is 50.0% when comparing to the real dances. The performance of our method can be further improved with more training data.

In addition to the subjective test, we evaluate the visual quality following Fréchet Inception Distance (FID) Heusel et al. (2017) by measuring how close the distribution of generated dances is to the real. As there exists no standard feature extractor for pose sequences, we train an action classifier on the collected data of three categories as the feature extractor. Table 1 shows the average results of 10 trials. Overall, the FID of our generated dances is much closer to the real ones than the other evaluated methods.

Beat Coverage and Hit Rate. In addition to realism and consistency, we evaluate how well the kinematic beats of generated dances match the input music beats. Given all input music and generated dances, we gather the number of total musical beats Bm, the number of total kinematic beats Bk, and the number of kinematic beats that are aligned with musical beats Ba. We use two metrics for evaluation: (i) beat coverage Bk/Bm measures the ratio of kinematic beats to musical beats, (ii) beat hit rate Ba/Bk is the ratio of aligned kinematic beats to total kinematic beats.

As shown in Table 1, our approach generates very similar beat coverage as real dances, indicating our synthesized dances can naturally align with the musical rhythm. Note that for beat coverage, it is not the higher the better, but depends on the different dancing styles. Ours w/o Lcomp has a higher beat hit rate than our full model as the latter takes coherence between movements into account, which may sacrifice beat hit rate of individual movements. There are two main reasons for the relatively low beat hit rate of real dances. First, the data is noisy due to automatic collection process and imperfect pose extraction. Second, our kinematic beat detector is an approximation, which may not be able to capture all subtle motions that can be viewed as beat points by human beings.

Diversity and Multimodality. We evaluate the diversity among dances generated by various music and the multimodality among dances generated from the same music. We use the average feature distance similar to Zhang et al. (2018) as the measurement. In addition, we use the same feature extractor as used in measuring FID. For diversity, we generate 50 dances from different music on each trial, then compute the average feature distance between 200 random combinations of them. For multimodality, it compares the ability to generate diverse dances conditioned on the same music. We measure the average distance between all combinations of 5 dances generated from the same music.

Table 1 shows the average results of 10 trials for diversity and 500 trials for multimodality. The multimodality score of LSTM is not reported since LSTM is a deterministic model and incapable of multimodal generation. Our generated dances achieve comparable diversity score to real dances and outperform Aud-MoCoGAN on both diversity and multimodality scores. Ours w/o Lcomp obtains a higher score on multimodality since it disregards the correlation between consecutive movements and is free to combine them with the hurt to motion realism and style consistency. However, the proposed full model performs better in diversity, suggesting that the composition phase in training enforces movement coherence at no cost of diversity.

Figure 5: Preference results on motion realism and style consistency. We conduct a user study to ask subjects to select the dances that are more realistic regardless of music and better match the style of music through pairwise comparisons. Each number denotes the percentage of preference on the corresponding comparison pair.
Method FID Beat Coverage Beat Hit Rate Diversity Multimodality
Real Dacnes 5.9±0.4 39.3 % 51.6 % 53.5 ± 1.9 -
LSTM 73.8±4.1 1.4 % 0.8 % 24.5 ± 1.4 -
Aud-MoCoGAN 21.7±0.8 23.9 % 54.8 % 45.8 ± 1.3 27.3 ± 1.3
Ours w/o Lcomp 14.8±1.1 37.8 % 72.4 % 49.7 ± 2.0 51.4 ± 0.8
Ours 12.8 ± 0.8 39.4 % 65.1 % 53.2 ± 2.5 47.8 ± 0.9
Table 1: Comparison of realism. FID evaluates the visual quality by measuring the distance between the distributions of real and synthesized dances. Comparison of beat coverage and hit rate. We quantify the correspondence between input music beats and generated kinematic beats. Beat coverage measures the ratio of total kinematic beats to total musical beats. Beat hit rate measures the ratio of kinematic beats that are aligned with musical beats to total kinematic beats. Comparison of diversity and multimodality. We evaluate the diversity and multimodality using average feature distances. We use diversity to refer to the variations among a set of dances, while multimodality to reflect the variations of generated dances given the same input music.

5 Conclusions

In this work, we have proposed to synthesize dances from music through a decomposition-to-composition learning framework. In the top-down decomposition phase, we teach the model how to generate and disentangle the elementary dance units. In the bottom-up composition phase, we direct the model to meaningfully compose the basic dancing movements conditioned on the input music. We make use of the kinematic and musical beats to temporally align generated dances with accompanying music. Extensive qualitative and quantitative evaluations demonstrate that the synthesized dances by the proposed method are not only realistic and diverse, but also style-consistent and beat-matching. In the future work, we will continue to collect and incorporate more dancing styles, such as pop dance and partner dance.


  • K. Aberman, R. Wu, D. Lischinski, B. Chen, and D. Cohen-Or (2019) Learning character-agnostic motion for motion retargeting in 2D. ACM Transactions on Graphics. Cited by: §2.
  • R. Arandjelovic and A. Zisserman (2017) Look, listen and learn. In IEEE International Conference on Computer Vision, Cited by: §2.
  • R. Arandjelović and A. Zisserman (2018) Objects that sound. In European Conference on Computer Vision, Cited by: §2.
  • Y. Aytar, C. Vondrick, and A. Torralba (2016) SoundNet: learning sound representations from unlabeled video. In Neural Information Processing Systems, Cited by: §2.
  • Z. Cao, T. Simon, S. Wei, and Y. Sheikh (2017) Realtime multi-person 2D pose estimation using part affinity fields. In IEEE Conference on Computer Vision and Pattern Recognition, Cited by: §2, §4.1.
  • Y. Chao, J. Yang, B. L. Price, S. Cohen, and J. Deng (2017) Forecasting human dynamics from static images.. In IEEE Conference on Computer Vision and Pattern Recognition, Cited by: §2.
  • A. Davis and M. Agrawala (2018) Visual rhythm and beat. ACM Transactions on Graphics. Cited by: §2, §3.1.
  • A. Davis, M. Rubinstein, N. Wadhwa, G. Mysore, F. Durand, and W. Freeman (2014) The visual microphone: passive recovery of sound from video. ACM Transactions on Graphics. Cited by: §2.
  • E. Denton and V. Birodkar (2017) Unsupervised learning of disentangled representations from video. In Neural Information Processing Systems, Cited by: §2.
  • C. Doersch, A. Gupta, and A. A. Efros (2015) Unsupervised visual representation learning by context prediction. In IEEE International Conference on Computer Vision, Cited by: §2.
  • D. Ellis (2007) Beat tracking by dynamic programming. Journal of New Music Research. Cited by: §1, §3.1, §3.1.
  • A. Ephrat, I. Mosseri, O. Lang, T. Dekel, K. Wilson, A. Hassidim, W. Freeman, and M. Rubinstein (2018) Looking to listen at the cocktail party: a speaker-independent audio-visual model for speech separation. ACM Transactions on Graphics. Cited by: §2.
  • R. Fan, S. Xu, and W. Geng (2012) Example-based automatic music-driven conventional dance motion synthesis. IEEE Transactions on Visualization and Computer Graphics. Cited by: §1.
  • R. Gao, R. Feris, and K. Grauman (2018) Learning to separate object sounds by watching unlabeled video. In European Conference on Computer Vision, Cited by: §2.
  • D. Harwath, A. Recasens, D. Surís, G. Chuang, A. Torralba, and J. Glass (2018) Jointly discovering visual objects and spoken words from raw sensory input. In European Conference on Computer Vision, Cited by: §2.
  • M. Heusel, H. Ramsauer, T. Unterthiner, B. Nessler, and S. Hochreiter (2017) GANs trained by a two time-scale update rule converge to a local nash equilibrium. In Neural Information Processing Systems, Cited by: §4.5.
  • A. Karpathy and L. Fei-Fei (2015) Deep visual-semantic alignments for generating image descriptions. In IEEE Conference on Computer Vision and Pattern Recognition, Cited by: §2.
  • T. Karras, T. Aila, S. Laine, A. Herva, and J. Lehtinen (2017) Audio-driven facial animation by joint end-to-end learning of pose and emotion. ACM Transactions on Graphics. Cited by: §2.
  • D. Kingma and J. Ba (2015) Adam: a method for stochastic optimization. In International Conference on Learning Representations, Cited by: §4.2.
  • H. Lee, J. Huang, M. Singh, and M. Yang (2017) Unsupervised representation learning by sorting sequences. In IEEE International Conference on Computer Vision, Cited by: §2.
  • H. Lee, H. Tseng, J. Huang, M. K. Singh, and M. Yang (2018) Diverse image-to-image translation via disentangled representations. In European Conference on Computer Vision, Cited by: §2.
  • M. Lee, K. Lee, and J. Park (2013) Music similarity-based approach to generating dance motion sequence. Multimedia Tools and Applications. Cited by: §1.
  • Y. Lu, H. Lee, H. Tseng, and M. Yang (2019) Self-supervised audio spatialization with correspondence classifier. In IEEE International Conference on Image Processing, Cited by: §2.
  • G. Madison, F. Gouyon, F. Ullen, and K. Hornstrom (2011) Modeling the tendency for music to induce movement in humans: first correlations with low-level audio descriptors across music genres. Journal of Experimental Psychology: Human Perception and Performance. Cited by: §1.
  • M. Mathieu, C. Couprie, and Y. LeCun (2016) Deep multi-scale video prediction beyond mean square error. In International Conference on Learning Representations, Cited by: §2.
  • F. Ofli, E. Erzin, Y. Yemez, and M. Tekalp (2012) Learn2Dance: learning statistical music-to-dance mappings for choreography synthesis. IEEE Transactions on Multimedia. Cited by: §1.
  • A. Owens and A. Efros (2018) Audio-visual scene analysis with self-supervised multisensory features. In European Conference on Computer Vision, Cited by: §2.
  • A. Owens, P. Isola, J. McDermott, A. Torralba, E. Adelson, and W. Freeman (2016a) Visually indicated sounds. In IEEE Conference on Computer Vision and Pattern Recognition, Cited by: §2.
  • A. Owens, J. Wu, J. McDermott, W. Freeman, and A. Torralba (2016b) Ambient sound provides supervision for visual learning. In European Conference on Computer Vision, Cited by: §2.
  • S. Reed, Z. Akata, X. Yan, L. Logeswaran, B. Schiele, and H. Lee (2016) Generative adversarial text to image synthesis. In International Conference on Machine Learning, Cited by: §2.
  • G. Schellenberg, A. Krysciak, and J. Campbell (2000) Perceiving emotion in melody: interactive effects of pitch and rhythm. Music Perception. Cited by: §1.
  • A. Senocak, T. Oh, J. Kim, M. Yang, and I. Kweon (2018) Learning to localize sound source in visual scenes. In IEEE Conference on Computer Vision and Pattern Recognition, Cited by: §2.
  • E. Shlizerman, L. Dery, H. Schoen, and I. Kemelmacher-Shlizerman (2018) Audio to body dynamics. In IEEE Conference on Computer Vision and Pattern Recognition, Cited by: §2, §4.3.
  • N. Srivastava, E. Mansimov, and R. Salakhudinov (2015) Unsupervised learning of video representations using LSTMs. In International Conference on Machine Learning, Cited by: §2.
  • S. Suwajanakorn, S. M. Seitz, and I. Kemelmacher-Shlizerman (2017) Synthesizing Obama: learning lip sync from audio. ACM Transactions on Graphics. Cited by: §2.
  • T. Tang, J. Jia, and H. Mao (2018) Dance with melody: an LSTM-autoencoder approach to music-oriented dance synthesis. In ACM Multimedia, Cited by: §2.
  • S. Tulyakov, M. Liu, X. Yang, and J. Kautz (2018) MoCoGAN: decomposing motion and content for video generation. In IEEE Conference on Computer Vision and Pattern Recognition, Cited by: §2, §4.3.
  • O. Vinyals, A. Toshev, S. Bengio, and D. Erhan (2015) Show and tell: a neural image caption generator. In IEEE Conference on Computer Vision and Pattern Recognition, Cited by: §2.
  • C. Vondrick, H. Pirsiavash, and A. Torralba (2016) Generating videos with scene dynamics. In Neural Information Processing Systems, Cited by: §2.
  • J. Walker, K. Marino, A. Gupta, and M. Hebert (2017) The pose knows: video forecasting by generating pose futures. In IEEE International Conference on Computer Vision, Cited by: §2.
  • T. Wang, M. Liu, J. Zhu, G. Liu, A. Tao, J. Kautz, and B. Catanzaro (2018) Video-to-video synthesis. In Neural Information Processing Systems, Cited by: §1.
  • X. Yan, A. Rastogi, R. Villegas, K. Sunkavalli, E. Shechtman, S. Hadap, E. Yumer, and H. Lee (2018) MT-VAE: learning motion transformations to generate multimodal human dynamics. In European Conference on Computer Vision, Cited by: §2.
  • X. Yang and Y. Tian (2014) Effective 3d action recognition using eigenjoints. Journal of Visual Communication and Image Representation. Cited by: §2.
  • H. Zhang, T. Xu, H. Li, S. Zhang, X. Huang, X. Wang, and D. Metaxas (2017) StackGAN: text to photo-realistic image synthesis with stacked generative adversarial networks. In IEEE International Conference on Computer Vision, Cited by: §2.
  • R. Zhang, P. Isola, A. Efros, E. Shechtman, and O. Wang (2018) The unreasonable effectiveness of deep networks as a perceptual metric. In IEEE Conference on Computer Vision and Pattern Recognition, Cited by: §4.5.
  • Y. Zhou, Z. Wang, C. Fang, T. Bui, and T. Berg (2018) Visual to sound: generating natural sound for videos in the wild. In IEEE Conference on Computer Vision and Pattern Recognition, Cited by: §2.