mlsanityData to 7 Oct 2026

Music Transformer

arXiv 1809.04281 ↗First posted 12 Sep 2018cs.LG cs.SD eess.AScited by 207

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 207 papers in the map (data through 7 Oct 2026). First posted on arXiv 12 Sep 2018.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 46; 2022: 34; 2023: 28; 2024: 39; 2025: 30; 2026: 30.

207 papers.

Sort:

By area:

  1. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  2. 2021DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharingcited by 1,219
  3. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
  4. 2023MusicLM: Generating Music From Textcited by 442
  5. 2024OLMoE: Open Mixture-of-Experts Language Modelscited by 291
  6. 2021TransGAN: Two Pure Transformers Can Make One Strong GAN, and That Can Scale Upcited by 162
  7. 2021Symbolic Music Generation with Diffusion Modelscited by 152
  8. 2022Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapsecited by 136
  9. 2021Compound Word Transformer: Learning to Compose Full-Song Music over Dynamic Directed Hypergraphscited by 109
  10. 2021MusicBERT: Symbolic Music Understanding with Large-Scale Pre-Trainingcited by 89
  11. 2024ChatMusician: Understanding and Generating Music Intrinsically with LLMcited by 67
  12. 2021Combiner: Full Attention Transformer with Sparse Computation Costcited by 64
38 more
  1. 2021Implicit Deep Adaptive Design: Policy-Based Experimental Design without Likelihoodscited by 61
  2. 2022General-purpose, long-context autoregressive modeling with Perceiver ARcited by 60
  3. 2021Continuous 3D Multi-Channel Sign Language Production via Progressive Transformers and Mixture Density Networkscited by 50
  4. 2021Attention, please! A survey of Neural Attention Models in Deep Learningcited by 50
  5. 2022Museformer: Transformer with Fine- and Coarse-Grained Attention for Music Generationcited by 48
  6. 2021CAPE: Encoding Relative Positions with Continuous Augmented Positional Embeddingscited by 47
  7. 2021H-Transformer-1D: Fast One-Dimensional Hierarchical Attention for Sequencescited by 47
  8. 2023PhysFormer++: Facial Video-based Physiological Measurement with SlowFast Temporal Difference Transformercited by 46
  9. 2022Discrete Contrastive Diffusion for Cross-Modal Music and Image Generationcited by 44
  10. 2023Multi-resolution Time-Series Transformer for Long-term Forecastingcited by 41
  11. 2021MuseMorphose: Full-Song and Fine-Grained Piano Music Style Transfer with One Transformer VAEcited by 39
  12. 2021FLAT: An Optimized Dataflow for Mitigating Attention Bottleneckscited by 38
  13. 2022Quantized GAN for Complex Music Generation from Dance Videoscited by 37
  14. 2022Symphony Generation with Permutation Invariant Language Modelcited by 35
  15. 2023Anticipatory Music Transformercited by 35
  16. 2024Foundation Models for Music: A Surveycited by 34
  17. 2022Attention Mechanism in Neural Networks: Where it Comes and Where it Goescited by 29
  18. 2025SongGen: A Single Stage Auto-regressive Transformer for Text-to-Song Generationcited by 29
  19. 2022Multitrack Music Transformercited by 28
  20. 2022Video Background Music Generation: Dataset, Method and Evaluationcited by 28
  21. 2023Using Sequences of Life-events to Predict Human Livescited by 27
  22. 2021FMMformer: Efficient and Flexible Transformer via Decomposed Near-field and Far-field Attentioncited by 26
  23. 2024Whole-Song Hierarchical Generation of Symbolic Music Using Cascaded Diffusion Modelscited by 24
  24. 2021Transflower: probabilistic autoregressive dance generation with multimodal attentioncited by 22
  25. 2024Beyond Language Models: Byte Models are Digital World Simulatorscited by 21
  26. 2021DadaGP: A Dataset of Tokenized GuitarPro Songs for Sequence Modelscited by 20
  27. 2024textttdattri: A Library for Efficient Data Attributioncited by 18
  28. 2021Generating Lead Sheets with Affect: A Novel Conditional seq2seq Frameworkcited by 17
  29. 2022MusIAC: An extensible generative framework for Music Infilling Applications with multi-level Controlcited by 17
  30. 2022Compose & Embellish: Well-Structured Piano Performance Generation via A Two-Stage Approachcited by 17
  31. 2023Building Blocks for a Complex-Valued Transformer Architecturecited by 16
  32. 2024Bass Accompaniment Generation via Latent Diffusioncited by 16
  33. 2024Geometry of Lightning Self-Attention: Identifiability and Dimensioncited by 16
  34. 2021Multi-head or Single-head? An Empirical Comparison for Transformer Trainingcited by 15
  35. 2021Variable-Length Music Score Infilling via XLNet and Musically Specialized Positional Encodingcited by 14
  36. 2023ChiroDiff: Modelling chirographic data with Diffusion Modelscited by 14
  37. 2021BERT-like Pre-training for Symbolic Piano Music Classification Taskscited by 12
  38. 2021Music Composition with Deep Learning: A Reviewcited by 12

50 most cited of 207 All 207 (JSON)