mlsanityData to 7 Oct 2026

Exploring Sampling Techniques for Generating Melodies with a Transformer Language Model

arXiv 2308.09454 ↗First posted 18 Aug 2023cs.SD cs.CL eess.AScited by 3

Not on the map. Why?

Abstract (arXiv)

Research in natural language processing has demonstrated that the quality of generations from trained autoregressive language models is significantly influenced by the used sampling strategy. In this study, we investigate the impact of different sampling techniques on musical qualities such as diversity and structure. To accomplish this, we train a high-capacity transformer model on a vast collection of highly-structured Irish folk melodies and analyze the musical qualities of the samples generated using distribution truncation sampling techniques. Specifically, we use nucleus sampling, the recently proposed "typical sampling", and conventional ancestral sampling. We evaluate the effect of these sampling strategies in two scenarios: optimal circumstances with a well-calibrated model and suboptimal circumstances where we systematically degrade the model's performance. We assess the generated samples using objective and subjective evaluations. We discover that probability truncation techniques may restrict diversity and structural patterns in optimal circumstances, but may also produce more musical samples in suboptimal circumstances.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 10 of its 24 references that are in the map. First posted on arXiv 18 Aug 2023.

Builds on

10 of 24 references.

References · 10

  1. 2017Attention Is All You Needcited by 59,932
  2. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  3. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  4. 2019The Curious Case of Neural Text Degenerationcited by 2,881
  5. 2018Self-Attention with Relative Position Representationscited by 1,112
  6. 2016C-RNN-GAN: Continuous recurrent neural networks with adversarial trainingcited by 132
  7. 2021Compound Word Transformer: Learning to Compose Full-Song Music over Dynamic Directed Hypergraphscited by 109
  8. 2022Museformer: Transformer with Fine- and Coarse-Grained Attention for Music Generationcited by 48
  9. 2016Music transcription modelling and composition using deep learningcited by 36
  10. 2022On the Typicality of Musical Sequencescited by 2

Built on by

Cited by year

Citing papers per year: 2024: 1; 2025: 2.

3 papers.