Music Transformer: Generating Music with Long-Term Structure

By Cheng-Zhi Anna Huang, Ashish Vaswani, Jakob Uszkoreit, Noam Shazeer, Ian Simon, Curtis Hawthorne, Andrew M. Dai, Matthew D. Hoffman, Monica Dinculescu, Douglas Eck. 2018

598 citations recorded by the source corpus.

Music relies heavily on repetition to build structure and meaning. Self-reference occurs on multiple timescales, from motifs to phrases to reusing of entire sections of music, such as in pieces with ABA structure. The Transformer (Vaswani et al., 2017), a sequence model based on self-attention, has achieved compelling results in many generation tasks that require maintaining long-range coherence. This suggests that self-attention might also be well-suited to modeling music. In musical composition and performance, however, relative timing is critically important. Existing approaches for representing relative positional information in the Transformer modulate attention based on pairwise distance (Shaw et al., 2018). This is impractical for long sequences such as musical compositions since their memory complexity for intermediate relative information is quadratic in the sequence length. We propose an algorithm that reduces their intermediate memory requirement to linear in the sequence length. This enables us to demonstrate that a Transformer with our modified relative attention mechanism can generate minute-long compositions (thousands of steps, four times the length modeled in Oore et al., 2018) with compelling structure, generate continuations that coherently elaborate on a given motif, and in a seq2seq setup generate accompaniments conditioned on melodies. We evaluate the Transformer with our relative attention mechanism on two datasets, JSB Chorales and Piano-e-Competition, and obtain state-of-the-art results on the latter.

Subfields: Cognitive Neuroscience, Computer Vision and Pattern Recognition, Generative Models, Multimodal Learning, Signal Processing

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Cognitive Neuroscience

  1. Jesse Engel
  2. Yi-Hsuan Yang
  3. Yu-Siang Huang
  4. Derya Soydaner
  5. Monica Dinculescu
  6. Curtis Hawthorne
  7. Ian Simon
  8. Adam Roberts

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Dacheng Tao
  3. Ming-Hsuan Yang
  4. Trevor Darrell
  5. Xiaogang Wang
  6. Jitendra Malik
  7. Alan L. Yuille
  8. Andrew Zisserman

In Generative Models

  1. Jesse Engel
  2. Stefano Ermon
  3. Yoshua Bengio
  4. Yu-Siang Huang
  5. Yi-Hsuan Yang
  6. Arash Vahdat
  7. Prafulla Dhariwal
  8. Adam Roberts

In Multimodal Learning

  1. Yu-Siang Huang
  2. Jianfeng Gao
  3. Yi-Hsuan Yang
  4. Ruslan Salakhutdinov
  5. Jesse Engel
  6. Louis-philippe Morency
  7. Trevor Darrell
  8. Zhe Gan

In Signal Processing

  1. Jesse Engel
  2. Gabriel Synnaeve
  3. Yi-Hsuan Yang
  4. Yu-Siang Huang
  5. Neil Zeghidour
  6. Adam Roberts
  7. Ronan Collobert
  8. Yossi Adi

Citations in the corpus