mlsanityData to 14 Oct 2026

Musical Attention Transformer: Music Generation Using a Music-Specific Attention Model

arXiv 2605.21081 ↗First posted 20 May 2026cs.SD cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

This study aims to enhance the quality of music generation using Transformers by incorporating meta-information. While Transformer-based approaches are effective at capturing long-term dependencies in musical compositions, the music they generate often suffers from issues such as excessive repetition or duplication of notes, leading to unnatural melodies. To address these limitations, we propose Musical Attention, a mechanism that incorporates meta-information such as bar numbers, key, signatures, and tempos into the attention process. Musical Attention explicitly leverages both the structural properties of music and its associated metadata, enabling the Transformer's attention mechanism to operate more effectively and thereby improving the quality of the generated output. In our framework, each musical note is represented as a combination of five events-pitch, bar number, onset, duration, and velocity in addition to the three metadata elements. The attention mechanism is then modified to reflect the correlations among these eight features, allowing the model to better capture the inherent characteristics of musical composition. Experimental results demonstrate that the model incorporating Musical Attention outperforms prior methods, such as Full Attention and Strided Attention, in terms of musical coherence, variation, and overall quality. Notably, it significantly reduces repetition and enhances the model's ability to generate diverse, harmonically consistent melodies. Musical Attention thus represents a meaningful advancement in AI-driven music generation, facilitating the creation of more natural and expressive compositions.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 19 of its 24 references that are in the map. First posted on arXiv 20 May 2026.

Builds on

19 of 24 references.

References · 19

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2022Training language models to follow instructions with human feedbackcited by 15,971
  5. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
  6. 2018Self-Attention with Relative Position Representationscited by 1,120
  7. 2021SoundStream: An End-to-End Neural Audio Codeccited by 771
  8. 2022AudioLM: a Language Modeling Approach to Audio Generationcited by 616
  9. 2023Simple and Controllable Music Generationcited by 488
  10. 2023MusicLM: Generating Music From Textcited by 448
  11. 2021W2v-BERT: Combining Contrastive Learning and Masked Language Modeling for Self-Supervised Speech Pre-Trainingcited by 347
  12. 2018Music Transformercited by 211
7 more
  1. 2017MuseGAN: Multi-track Sequential Generative Adversarial Networks for Symbolic Music Generation and Accompanimentcited by 151
  2. 2021MusicBERT: Symbolic Music Understanding with Large-Scale Pre-Trainingcited by 89
  3. 2022MuLan: A Joint Embedding of Music Audio and Natural Languagecited by 87
  4. 2017MidiNet: A Convolutional Generative Adversarial Network for Symbolic-domain Music Generationcited by 72
  5. 2021MuseMorphose: Full-Song and Fine-Grained Piano Music Style Transfer with One Transformer VAEcited by 40
  6. 2018MIDI-VAE: Modeling Dynamics and Instrumentation of Music with Applications to Style Transfercited by 33
  7. 2018Symbolic Music Genre Transfer with CycleGANcited by 28

Built on by

Not cited yet.