Lune

AAAI2021Top-tier venue

Compound Word Transformer: Learning to Compose Full-Song Music over Dynamic Directed Hypergraphs

Wen-Yi Hsiao, Jen-Yu Liu, Yin-Cheng Yeh, Yi-Hsuan Yang

Abstract

To apply neural sequence models such as the Transformers to music generation tasks, one has to represent a piece of music by a sequence of tokens drawn from a finite set of pre-defined vocabulary. Such a vocabulary usually involves tokens of various types. For example, to describe a musical note, one needs separate tokens to indicate the note’s pitch, duration, velocity (dynamics), and placement (onset time) along the time grid. While different types of tokens may possess different properties, existing models usually treat them equally, in the same way as modeling words in natural languages. In this paper, we present a conceptually different approach that explicitly takes into account the type of the tokens, such as note types and metric types. And, we propose a new Transformer decoder architecture that uses different feed-forward heads to model tokens of different types. With an expansion-compression trick, we convert a piece of music to a sequence of compound words by grouping neighboring tokens, greatly reducing the length of the token sequences. We show that the resulting model can be viewed as a learner over dynamic directed hypergraphs. And, we employ it to learn to compose expressive Pop piano music of full-song length (involving up to 10K individual tokens per song), both conditionally and unconditionally. Our experiment shows that, compared to state-of-the-art models, the proposed model converges 5 to 10 times faster at training (i.e., within a day on a single GPU with 11 GB memory), and with comparable quality in the generated music

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

28 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Relative Positional Encoding for Transformers with Linear Complexity cites Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
  • Relative Positional Encoding for Transformers with Linear Complexity cites Rethinking Positional Encoding in Language Pre-training
  • Relative Positional Encoding for Transformers with Linear Complexity cites The Curious Case of Neural Text Degeneration
  • Video Background Music Generation with Controllable Music Transformer cites Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
  • Video Background Music Generation with Controllable Music Transformer cites Pop Music Transformer: Beat-based Modeling and Generation of Expressive Pop Piano Compositions
  • Video Background Music Generation with Controllable Music Transformer cites The Curious Case of Neural Text Degeneration
  • FLAT: An Optimized Dataflow for Mitigating Attention Bottlenecks cites Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
  • FLAT: An Optimized Dataflow for Mitigating Attention Bottlenecks cites Compressive Transformers for Long-Range Sequence Modelling
  • Museformer: Transformer with Fine- and Coarse-Grained Attention for Music Generation cites Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
  • Museformer: Transformer with Fine- and Coarse-Grained Attention for Music Generation cites Compressive Transformers for Long-Range Sequence Modelling
  • Museformer: Transformer with Fine- and Coarse-Grained Attention for Music Generation cites Pop Music Transformer: Beat-based Modeling and Generation of Expressive Pop Piano Compositions
  • Video Background Music Generation: Dataset, Method and Evaluation cites Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
  • Video Background Music Generation: Dataset, Method and Evaluation cites Video Background Music Generation with Controllable Music Transformer
  • Video Background Music Generation: Dataset, Method and Evaluation cites Pop Music Transformer: Beat-based Modeling and Generation of Expressive Pop Piano Compositions
  • Video Background Music Generation: Dataset, Method and Evaluation cites The Curious Case of Neural Text Degeneration
  • Compressive Transformers for Long-Range Sequence Modelling cites The Curious Case of Neural Text Degeneration
  • Pop Music Transformer: Beat-based Modeling and Generation of Expressive Pop Piano Compositions cites Compressive Transformers for Long-Range Sequence Modelling
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers28

  1. Museformer: Transformer with Fine- and Coarse-Grained Attention for Music GenerationBotao Yu, Peiling Lu, Rui Wang, Wei Hu et al.NeurIPS 2022 · 104 citations
  2. Video Background Music Generation with Controllable Music TransformerShangzhe Di, Zeren Jiang, Si Liu, Zhaokai Wang et al.ACM MM 2021 · 87 citations
  3. FLAT: An Optimized Dataflow for Mitigating Attention BottlenecksSheng-Chun Kao, Suvinay Subramanian, Gaurav Agrawal, Amir Yazdanbakhsh et al.ASPLOS 2023 · 68 citations
  4. Relative Positional Encoding for Transformers with Linear ComplexityAntoine Liutkus, Ondrej Cífka, Shih-Lun Wu, Umut Simsekli et al.ICML 2021 · 63 citations
  5. Video Background Music Generation: Dataset, Method and EvaluationLe Zhuo, Zhaokai Wang, Baisen Wang, Yue Liao et al.ICCV 2023 · 51 citations

Builds on6

  1. The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes et al.ICLR 2020 · 4,112 citations
  2. Transformers are RNNs: Fast Autoregressive Transformers with Linear AttentionAngelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, François FleuretICML 2020 · 2,665 citations
  3. Compressive Transformers for Long-Range Sequence ModellingJack W. Rae, Anna Potapenko, Siddhant M. Jayakumar, Chloe Hillier et al.ICLR 2020 · 833 citations
  4. Rethinking Positional Encoding in Language Pre-trainingGuolin Ke, Di He, Tie-Yan LiuICLR 2021 · 358 citations
  5. Pop Music Transformer: Beat-based Modeling and Generation of Expressive Pop Piano CompositionsYu-Siang Huang, Yi-Hsuan YangACM MM 2020 · 265 citations

Related papers

  1. BEAT: Tokenizing and Generating Symbolic Music by Uniform Temporal StepsLekai Qian, Haoyu Gu, Jingwei Zhao, Ziyu WangICML 2026 · 3 citations
  2. N-gram Unsupervised Compoundation and Feature Injection for Better Symbolic Music UnderstandingJinhao Tian, Zuchao Li, Jiajia Li, Ping WangAAAI 2024
  3. PiRhDy: Learning Pitch-, Rhythm-, and Dynamics-aware Embeddings for Symbolic MusicHongru Liang, Wenqiang Lei, Paul Yaozhu Chan, Zhenglu Yang et al.ACM MM 2020 · 23 citations
  4. Pianist Transformer: Towards Expressive Piano Performance Rendering via Scalable Self-Supervised Pre-TrainingHong-Jie You, Jie-Jing Shao, Xiao-Wen Yang, Lin-Han Jia et al.ICML 2026 · 3 citations
  5. Simple and Controllable Music GenerationJade Copet, Felix Kreuk, Itai Gat, Tal Remez et al.NeurIPS 2023 · 843 citations
Dusk over the sea between two cliffs drawn in fine vertical lines