mlsanityData to 7 Oct 2026

Fusing Memory and Attention: A study on LSTM, Transformer and Hybrid Architectures for Symbolic Music Generation

arXiv 2603.21282 ↗First posted 22 Mar 2026cs.LG cs.AI cs.SDcited by 0

Not on the map. Why?

Abstract (arXiv)

Machine learning techniques, such as Transformers and Long Short-Term Memory (LSTM) networks, play a crucial role in Symbolic Music Generation (SMG). Existing literature indicates a difference between LSTMs and Transformers regarding their ability to model local melodic continuity versus maintaining global structural coherence. However, their specific properties within the context of SMG have not been systematically studied. This paper addresses this gap by providing a fine-grained comparative analysis of LSTMs versus Transformers for SMG, examining local and global properties in detail using 17 musical quality metrics on the Deutschl dataset. We find that LSTM networks excel at capturing local patterns but fail to preserve long-range dependencies, while Transformers model global structure effectively but tend to produce irregular phrasing. Based on this analysis and leveraging their respective strengths, we propose a Hybrid architecture combining a Transformer Encoder with an LSTM Decoder and evaluate it against both baselines. We evaluated 1,000 generated melodies from each of the three architectures on the Deutschl dataset. The results show that the hybrid method achieves better local and global continuity and coherence compared to the baselines. Our work highlights the key characteristics of these models and demonstrates how their properties can be leveraged to design superior models. We also supported the experiments with ablation studies and human perceptual evaluations, which statistically support the findings and provide robust validation for this work.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 13 of its 34 references that are in the map. First posted on arXiv 22 Mar 2026.

Builds on

13 of 34 references.

References · 13

  1. 2017Attention Is All You Needcited by 59,932
  2. 2019Gradient Descent with Early Stopping is Provably Robust to Label Noise for Overparameterized Neural Networkscited by 158
  3. 2023Multi-Source Diffusion Models for Simultaneous Music Generation and Separationcited by 63
  4. 2022Multi-instrument Music Synthesis with Spectrogram Diffusioncited by 42
  5. 2021Theme Transformer: Symbolic Music Generation with Theme-Conditioned Transformercited by 40
  6. 2019Conditional LSTM-GAN for Melody Generation from Lyricscited by 31
  7. 2020Contextual Temperature for Language Modelingcited by 25
  8. 2021MELONS: generating melody with long-term structure using transformers and structure graphcited by 18
  9. 2023Composer Style-specific Symbolic Music Generation Using Vector Quantized Discrete Diffusion Modelscited by 8
  10. 2023A Comprehensive Survey for Evaluation Methodologies of AI-Generated Musiccited by 6
  11. 2024Explainable Deep Learning Analysis for Raga Identification in Indian Art Musiccited by 6
  12. 2022Challenges in creative generative models for music: a divergence maximization perspectivecited by 3
1 more
  1. 2022Music Generation Using an LSTMcited by 1

Built on by

Not cited yet.